:root {
  --amg-site-url: "https://amghk.cc";
}

:root {
  --background: #ffffff;
  --foreground: #111111;
  --border: #e5e7eb;
  --ring: #94a3b8;
  --amg-icon-sprite: url("../images/icon.png");
  --amg-btn-play: url("../images/btn-play.png");
}


  * {
    border-color: var(--border);
  }

  body {
    margin: 0;
    background: #061d17;
    color: #111;
    font-family: STHeiti, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", sans-serif;
  }

  html {
    min-width: 320px;
    scroll-behavior: smooth;
  }



  .amg-page {
    min-height: 100vh;
    background: #061d17;
    overflow-x: hidden;
  }

  .amg-shell {
    width: min(1235px, 100%);
    margin: 0 auto;
  }

  .amg-header {
    background: #061d17;
  }

  .amg-static-bar {
    background: #14805e;
    color: #d9e8f6;
  }

  .amg-logo {
    width: 250px;
    height: 61px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .amg-input-wrap {
    position: relative;
  }

  .amg-input {
    width: 139px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    padding: 0 8px 0 37px;
    font-size: 12px;
    line-height: 30px;
    color: #249cf4;
  }

  .amg-input-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 25px;
    height: 22px;
    transform: translateY(-50%);
    background-image: var(--amg-icon-sprite);
    background-repeat: no-repeat;
  }

  .amg-input-icon-user {
    background-position: 0 0;
  }

  .amg-input-icon-lock {
    background-position: -25px 0;
  }

  .amg-input-icon-shield {
    background-position: -50px 0;
  }

  .amg-auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .amg-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  }

  .amg-auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }

  .amg-auth-btn-register {
    background: linear-gradient(180deg, #f0654a 0%, #df4f37 52%, #c7432e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(223, 79, 55, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .amg-auth-btn-login {
    background: linear-gradient(180deg, #35b4ff 0%, #1992ea 52%, #1578c4 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(25, 146, 234, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .amg-login-btn {
    width: 80px;
    height: 30px;
    border: 0;
    border-radius: 3px;
    background: #1992ea;
    color: #fff;
    font-size: 15px;
    line-height: 30px;
    cursor: pointer;
  }

  .amg-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 98px;
    height: 30px;
    border-radius: 3px;
    background: #df4f37;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
  }

  .amg-register-icon {
    width: 25px;
    height: 25px;
    background-image: var(--amg-icon-sprite);
    background-position: -100px 0;
    background-repeat: no-repeat;
  }

  .amg-nav {
    position: relative;
    z-index: 20;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #dfe7f0;
  }

  .amg-nav-item {
    position: relative;
  }

  .amg-nav-link {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 18px;
    color: #22c982;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .amg-nav-link:hover,
  .amg-nav-link-active {
    color: #14805e;
    background: #eef7f3;
  }

  .amg-nav-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 720px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dfe7f0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .amg-nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .amg-nav-dropdown-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .amg-nav-dropdown-link:hover {
    background: #eef7f3;
    color: #14805e;
  }

  .amg-hero-wrap {
    background: #061d17;
  }

  .amg-hero-shell {
    width: min(1235px, 100%);
    margin: 0 auto;
    padding: 0;
  }

  .amg-hero {
    height: 389px;
    position: relative;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    touch-action: pan-y;
    cursor: grab;
  }

  .amg-hero:active {
    cursor: grabbing;
  }

  .amg-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    translate: 0 -50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .amg-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
  }

  .amg-hero-arrow-prev {
    left: 12px;
  }

  .amg-hero-arrow-next {
    right: 12px;
  }

  .amg-hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease;
  }

  .amg-hero-slide {
    flex: 0 0 100%;
    height: 100%;
  }

  .amg-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .amg-hero-pagination {
    position: absolute;
    left: 50%;
    bottom: 52px;
    z-index: 12;
    display: flex;
    translate: -50% 0;
    gap: 8px;
  }

  .amg-hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
  }

  .amg-hero-dot-active {
    width: 24px;
    background: #007aff;
  }

  .amg-news {
    background: rgba(0, 0, 0, 0.72);
    color: #dfeaf6;
    height: 40px;
    font-size: 14px;
  }

  .amg-news-bar {
    background: #14805e;
    color: #fff;
    position: relative;
  }

  .amg-news-bar .amg-news-icon {
    filter: brightness(10);
  }

  .amg-news-icon {
    width: 75px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: left center;
  }

  .amg-news-marquee {
    flex: 1;
  }

  .amg-news-marquee-inner {
    display: inline-block;
    padding-left: 100%;
    animation: amg-marquee 28s linear infinite;
  }

  .amg-section {
    position: relative;
    overflow: hidden;
  }

  .amg-sports,
  .amg-casino,
  .amg-mobile {
    background-position: center top;
    background-size: cover;
  }

  .amg-index-title {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .amg-title {
    color: #fff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  }

  .amg-sport-card {
    background-repeat: no-repeat;
    background-size: cover;
  }

  .amg-play-btn,
  .amg-star-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    background-image: var(--amg-btn-play);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #442600;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }

  .amg-play-btn-sm {
    min-width: 120px;
    height: 48px;
    font-size: 16px;
  }

  .amg-star-btn {
    margin-top: 24px;
    min-width: 142px;
    height: 56px;
    background-image: var(--amg-btn-play);
  }

  .amg-slide-tab {
    width: 180px;
    height: 100px;
    border: 0;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: left;
    padding: 18px 20px;
    cursor: pointer;
  }

  .amg-slide-tab h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
  }

  .amg-slide-tab span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.85;
  }

  .amg-slide-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  .amg-slide-panel-active {
    opacity: 1;
    pointer-events: auto;
  }

  .amg-slide-copy {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding: 72px 0 0 48px;
    color: #fff;
  }

  .amg-slide-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
  }

  .amg-slide-en {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #ffd721;
  }

  .amg-slide-desc {
    margin-top: 18px;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
  }

  .amg-slide-layer {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
  }

  .amg-slide-live-people {
    left: 475px;
    top: 70px;
    width: 680px;
    height: 389px;
  }

  .amg-slide-live-bottom {
    left: 275px;
    top: 324px;
    width: 760px;
    height: 272px;
  }

  .amg-slide-casino-people {
    left: 295px;
    top: 0;
    width: 805px;
    height: 494px;
  }

  .amg-slide-casino-bg1 {
    left: 328px;
    top: 0;
    width: 728px;
    height: 489px;
  }

  .amg-slide-casino-bg2 {
    left: 300px;
    top: 190px;
    width: 760px;
    height: 272px;
  }

  .amg-slide-lottery-item {
    left: 444px;
    top: 0;
    width: 686px;
    height: 498px;
  }

  .amg-slide-lottery-bg {
    left: 278px;
    top: 324px;
    width: 760px;
    height: 272px;
  }

  .amg-slide-fish-1 {
    left: 455px;
    top: 45px;
    width: 645px;
    height: 415px;
  }

  .amg-slide-fish-2 {
    left: 606px;
    top: 269px;
    width: 94px;
    height: 238px;
  }

  .amg-slide-fish-4 {
    left: 294px;
    top: 301px;
    width: 736px;
    height: 159px;
  }

  .amg-slide-fish-bg {
    left: 272px;
    top: 324px;
    width: 760px;
    height: 272px;
  }

  .amg-advantages {
    background: #f5f7fb;
  }

  .amg-service-stat {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    align-items: center;
    min-height: 120px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .amg-service-stat-icon {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
  }

  .amg-service-stat-copy {
    min-width: 0;
  }

  .amg-service-stat-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
  }

  .amg-service-stat-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #777;
  }

  .amg-service-stat-value {
    grid-column: 2;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #11c087;
  }

  .amg-service-stat-unit {
    margin-left: 4px;
    font-size: 22px;
    font-weight: 700;
  }

  .amg-footer {
    background: #0a1c17;
    color: #aeb9b5;
  }

  .amg-internal-links {
    background: #0a2920;
    color: #d9e8f6;
  }

  .amg-internal-links-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
  }

  .amg-internal-links-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .amg-internal-links-item {
    display: inline-block;
    padding: 6px 0;
    color: #b8cfc6;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .amg-internal-links-item:hover {
    color: #11c087;
  }

  .amg-internal-links-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 16px;
    color: #d9e8f6;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  }

  .amg-internal-links-chip:hover {
    border-color: #11c087;
    background: rgba(17, 192, 135, 0.08);
    color: #fff;
  }

  .amg-service-stat:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }

  .amg-partner-logo {
    height: 50px;
    background-repeat: no-repeat;
  }

  .amg-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 24px;
    overflow-y: auto;
  }

  .amg-modal-box {
    position: relative;
    width: min(800px, 100%);
  }

  .amg-modal-close-wrap {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
  }

  .amg-modal-close-btn {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .amg-modal-close-btn img {
    display: block;
    width: 36px;
    height: 36px;
  }

  .amg-modal-panel {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  }

  .amg-modal-banner-img {
    display: block;
    width: 100%;
    height: auto;
  }

  .amg-modal-body {
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding: 20px 32px 28px;
    color: #000;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
  }

  .amg-modal-section + .amg-modal-section {
    margin-top: 24px;
  }

  .amg-modal-section-left {
    text-align: left;
  }

  .amg-modal-heading {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
  }

  .amg-modal-lead {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
  }

  .amg-modal-highlight {
    margin-top: 12px;
    font-weight: 600;
  }

  .amg-modal-body a {
    margin: 0 6px;
    color: #0066cc;
    text-decoration: underline;
  }

  .amg-modal-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
  }

  .amg-modal-footer {
    margin-top: 14px;
    text-align: center;
  }

  .amg-modal-confirm {
    min-width: 160px;
    height: 42px;
    border: 0;
    border-radius: 4px;
    background: #14805e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }

  .amg-inner-page {
    min-height: 420px;
    background: #f5f7fb;
  }

  .amg-breadcrumbs {
    margin-bottom: 12px;
    color: #667;
    font-size: 14px;
  }

  .amg-breadcrumbs a {
    color: #14805e;
    text-decoration: none;
  }

  .amg-inner-title {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: #17372c;
  }

  .amg-inner-desc {
    margin-top: 10px;
    color: #666;
    font-size: 16px;
  }

  .amg-inner-card {
    margin-top: 24px;
    border-radius: 12px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #444;
    line-height: 1.8;
  }

  .amg-inner-back {
    display: inline-block;
    margin-top: 18px;
    color: #14805e;
    font-weight: 700;
    text-decoration: none;
  }

  .amg-article-sidebar {
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .amg-article-sidebar-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    color: #17372c;
  }

  .amg-article-sidebar-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .amg-article-sidebar-link:hover,
  .amg-article-sidebar-link-active {
    background: #eef7f3;
    color: #14805e;
    font-weight: 700;
  }

  .amg-content-card,
  .amg-form-card {
    border-radius: 12px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .amg-content-body {
    margin-top: 20px;
    color: #444;
    line-height: 1.85;
  }

  .amg-content-heading {
    margin: 24px 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #17372c;
  }

  .amg-content-paragraph {
    margin: 0 0 14px;
  }

  .amg-content-list {
    margin: 0 0 16px;
    padding-left: 20px;
  }

  .amg-content-list li + li {
    margin-top: 8px;
  }

  .amg-content-qa {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f5;
  }

  .amg-content-question {
    margin: 0 0 8px;
    font-weight: 800;
    color: #17372c;
  }

  .amg-content-answer {
    margin: 0;
    color: #555;
  }

  .amg-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #333;
  }

  .amg-form-field input,
  .amg-form-select {
    height: 40px;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
  }

  .amg-form-submit,
  .amg-form-secondary {
    height: 40px;
    border: 0;
    border-radius: 4px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  .amg-form-submit {
    background: #14805e;
    color: #fff;
  }

  .amg-form-secondary {
    background: #eef3f8;
    color: #333;
  }

  .amg-provider-tab,
  .amg-promo-tab {
    border: 1px solid #d8dee6;
    border-radius: 999px;
    background: #fff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
  }

  .amg-provider-tab-active,
  .amg-promo-tab-active {
    border-color: #14805e;
    background: #14805e;
    color: #fff;
  }

  .amg-game-panel,
  .amg-sport-frame,
  .amg-deposit-card,
  .amg-promo-card {
    border-radius: 12px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .amg-sport-frame {
    min-height: 280px;
    display: grid;
    place-content: center;
    padding: 40px;
  }

  .amg-game-card {
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    text-align: center;
  }

  .amg-game-card-cover {
    height: 140px;
    overflow: hidden;
    background: #e8edf3;
  }

  .amg-game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .amg-game-card-cover-text {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #14805e, #22c982);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .amg-game-card-title {
    margin: 12px 0 0;
    font-weight: 700;
    color: #333;
  }

  .amg-game-card-btn {
    display: inline-block;
    margin: 12px 0 16px;
    color: #14805e;
    font-weight: 700;
    text-decoration: none;
  }

  .amg-promo-badge {
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef7f3;
    padding: 4px 10px;
    color: #14805e;
    font-size: 12px;
    font-weight: 700;
  }

  .amg-line-test-item {
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    background: #fff;
    padding: 16px 18px;
    text-align: left;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }

  .amg-line-test-item:hover {
    border-color: #14805e;
    background: #eef7f3;
  }

  .amg-seo-section {
    background: #fff;
    border-top: 1px solid #e8edf3;
  }

  .amg-seo-main-title {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    color: #17372c;
    line-height: 1.3;
  }

  .amg-seo-lead {
    margin-top: 16px;
    max-width: 920px;
    color: #555;
    font-size: 16px;
    line-height: 1.85;
  }

  .amg-seo-article-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #17372c;
  }

  .amg-seo-paragraph {
    margin: 0 0 12px;
    color: #444;
    font-size: 15px;
    line-height: 1.85;
  }

  .amg-seo-link {
    color: #14805e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .amg-seo-link:hover {
    color: #0f6b4f;
  }

  .amg-seo-intro,
  .amg-seo-outro {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #14805e;
    background: #f7fbf9;
    color: #444;
    line-height: 1.8;
  }

  .amg-service-stat-text {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
  }

  .amg-service-stat-text .amg-service-stat-value {
    grid-column: 1;
  }

  .amg-float-promo {
    position: fixed;
    top: 200px;
    right: 16px;
    z-index: 30;
    width: 125px;
    height: 180px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  @keyframes amg-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  @media (max-width: 900px) {
    .amg-shell {
      width: 100%;
    }

    .amg-nav {
      height: auto;
      overflow-x: auto;
      white-space: nowrap;
    }

    .amg-nav-dropdown {
      display: none;
    }

    .amg-hero-shell {
      width: 100%;
    }

    .amg-hero {
      height: 260px;
    }

    .amg-hero-pagination {
      bottom: 46px;
    }

    .amg-hero-arrow {
      width: 34px;
      height: 34px;
      font-size: 22px;
    }

    .amg-slide-copy {
      padding: 32px 20px;
      max-width: none;
    }

    .amg-slide-layer {
      opacity: 0.35;
    }

    .amg-modal-backdrop {
      padding-top: 60px;
    }

    .amg-live-cards-wrap {
      height: auto;
      flex-wrap: wrap;
      justify-content: center;
    }

    .amg-live-card {
      width: 46% !important;
      margin: 0 2% 16px !important;
    }

    .amg-sport-provider-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .amg-category-page {
    background: #f5f7fb;
  }

  .amg-category-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .amg-sport-category-body {
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
  }

  .amg-sport-provider-shell {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 12px;
    align-items: center;
  }

  .amg-sport-provider-arrow {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 55, 44, 0.08);
    color: #17372c;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  .amg-sport-provider-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .amg-sport-provider-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .amg-sport-provider-btn:hover,
  .amg-sport-provider-btn-active {
    transform: translateY(-2px);
  }

  .amg-sport-provider-btn-image {
    width: 100%;
    max-width: 165px;
    margin: 0 auto;
    display: block;
  }

  .amg-sport-panel {
    position: relative;
    margin-top: 28px;
    min-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

  .amg-sport-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

  .amg-sport-panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px;
  }

  .amg-sport-panel-logo {
    max-width: min(100%, 420px);
    height: auto;
  }

  .amg-sport-panel-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .amg-sport-panel-entry img {
    width: 120px;
    height: auto;
  }

  .amg-sport-panel-entry span {
    position: absolute;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  }

  .amg-live-category-body {
    background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
  }

  .amg-live-cards-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    min-height: 420px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .amg-live-card {
    position: relative;
    width: 9.5%;
    min-width: 92px;
    margin: 0 -8px;
    transition: transform 0.25s ease, filter 0.25s ease, z-index 0.25s ease;
    filter: grayscale(0.85);
    transform: scale(0.92);
  }

  .amg-live-card-active,
  .amg-live-card:hover {
    filter: none;
    transform: scale(1.08);
    z-index: 20 !important;
  }

  .amg-live-card-link {
    display: block;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .amg-live-name-box {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 2;
    translate: -50% 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
  }

  .amg-live-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .amg-live-card-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .amg-live-card-action {
    display: block;
    background: #14805e;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
  }

  .amg-lottery-category-body {
    background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
  }

  .amg-lottery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .amg-lottery-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 20px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .amg-lottery-tab-active {
    border-color: #14805e;
    background: #14805e;
    box-shadow: 0 8px 20px rgba(20, 128, 94, 0.25);
  }

  .amg-lottery-tab-active .amg-lottery-tab-image {
    filter: brightness(0) invert(1);
  }

  .amg-lottery-tab-image {
    max-height: 28px;
    width: auto;
    object-fit: contain;
  }

  .amg-lottery-panel {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }

  .amg-lottery-panel-header {
    padding: 18px 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #14805e;
  }

  .amg-lottery-panel-banner-wrap {
    position: relative;
    padding: 16px 24px 24px;
  }

  .amg-lottery-panel-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .amg-lottery-panel-entry {
    position: absolute;
    left: 50%;
    bottom: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    text-decoration: none;
  }

  .amg-lottery-panel-entry img {
    width: 120px;
    height: auto;
  }

  .amg-lottery-panel-entry span {
    position: absolute;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  }


/* Layout helpers for WordPress templates (replaces Tailwind utilities from Next.js) */

.amg-flex { display: flex; }
.amg-flex-wrap { flex-wrap: wrap; }
.amg-flex-center { display: flex; align-items: center; justify-content: center; }
.amg-flex-between { display: flex; align-items: center; justify-content: space-between; }
.amg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.amg-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.amg-gap-4 { gap: 16px; }
.amg-gap-6 { gap: 24px; }
.amg-mt-4 { margin-top: 16px; }
.amg-mt-6 { margin-top: 24px; }
.amg-mt-8 { margin-top: 32px; }
.amg-mt-10 { margin-top: 40px; }
.amg-mb-8 { margin-bottom: 32px; }
.amg-py-10 { padding-top: 40px; padding-bottom: 40px; }
.amg-py-14 { padding-top: 56px; padding-bottom: 56px; }
.amg-px-6 { padding-left: 24px; padding-right: 24px; }
.amg-text-center { text-align: center; }
.amg-no-underline { text-decoration: none; }

/* Header */
.amg-header-inner {
  display: flex;
  min-height: 81px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* Nav — horizontal bar + hidden dropdown until hover */
.amg-nav-inner {
  display: flex;
  flex-wrap: nowrap;
}

.amg-nav-item-has-submenu .amg-nav-dropdown {
  display: none;
}

.amg-nav-item-open .amg-nav-dropdown {
  display: block;
}

/* News ticker */
.amg-news-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

/* Sports section */
.amg-sports-grid {
  display: grid;
  gap: 32px;
  padding: 40px 24px;
  grid-template-columns: 430px 1fr;
  align-items: center;
}

.amg-sports-visual {
  position: relative;
  min-height: 402px;
}

.amg-sports-bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 278px;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.amg-sports-people-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 378px;
  height: 402px;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.amg-sports-txt-layer {
  position: absolute;
  right: 0;
  bottom: 96px;
  width: 298px;
  height: 138px;
  background-size: contain;
  background-repeat: no-repeat;
}

.amg-sports-play-btn {
  position: absolute;
  right: 16px;
  bottom: 8px;
}

.amg-sports-content .amg-index-title {
  display: flex;
  height: 54px;
  margin-bottom: 32px;
  align-items: center;
  justify-content: center;
}

.amg-sports-content .amg-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
}

.amg-sports-content .amg-title-en {
  font-size: 24px;
}

.amg-sports-brand-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amg-sport-card {
  display: flex;
  height: 112px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.amg-sport-card-logo-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  text-decoration: none;
}

.amg-sport-card-logo {
  height: 53px;
  width: 171px;
  object-fit: contain;
}

/* Game slider */
.amg-casino-grid {
  display: grid;
  min-height: 460px;
  grid-template-columns: 180px 1fr;
}

.amg-slide-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
}

.amg-slide-panels {
  position: relative;
  min-height: 498px;
  overflow: hidden;
}

/* Advantages */
.amg-advantages {
  padding-top: 56px;
  padding-bottom: 56px;
}

.amg-advantages-shell {
  padding-left: 24px;
  padding-right: 24px;
}

.amg-advantages-title {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  color: #17372c;
}

.amg-advantages-title-link {
  color: inherit;
  text-decoration: none;
}

.amg-advantages-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amg-advantage-card {
  display: flex;
  gap: 16px;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.amg-advantage-card:hover {
  transform: translateY(-2px);
}

.amg-advantage-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

.amg-advantage-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #11c087;
}

.amg-advantage-card-text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #666;
}

.amg-service-advantages {
  background: #eef3f8;
  padding-top: 56px;
  padding-bottom: 56px;
}

.amg-service-advantages-shell {
  padding-left: 24px;
  padding-right: 24px;
}

.amg-service-stats-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amg-service-stat {
  text-decoration: none;
}

/* Legacy aliases */
.amg-home-grid { display: grid; gap: 32px; }
.amg-home-sports { display: grid; grid-template-columns: 430px 1fr; align-items: center; }
.amg-home-sports-left { position: relative; min-height: 402px; }
.amg-article-layout { display: grid; gap: 32px; grid-template-columns: 220px 1fr; }
.amg-deposit-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.amg-footer-link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.amg-partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 944px; margin: 32px auto 0; }
.amg-slide-stage { position: relative; min-height: 498px; overflow: hidden; }
.amg-service-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amg-news-row { display: flex; align-items: center; height: 40px; padding: 0 16px; }

@media (max-width: 1024px) {
  .amg-sports-grid,
  .amg-home-sports { grid-template-columns: 1fr; }
  .amg-casino-grid { grid-template-columns: 1fr; }
  .amg-article-layout { grid-template-columns: 1fr; }
  .amg-service-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .amg-advantages-grid,
  .amg-sports-brand-grid,
  .amg-deposit-grid,
  .amg-grid-2,
  .amg-grid-4,
  .amg-service-stats-grid,
  .amg-game-card-grid { grid-template-columns: 1fr; }
}

/* Hero carousel — hide off-screen slides */
.amg-hero {
  overflow: hidden;
}

.amg-hero-slide-link {
  display: block;
  height: 100%;
  width: 100%;
}

.amg-hero-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* News ticker on hero */
.amg-news-hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
}

.amg-news-label {
  flex-shrink: 0;
  font-weight: 700;
}

.amg-news-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.amg-news-marquee-inner {
  color: inherit;
  text-decoration: none;
}

/* Internal links block */
.amg-internal-links-shell {
  padding: 48px 24px;
}

.amg-internal-links-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amg-internal-links-list-columns {
  columns: 2;
  column-gap: 24px;
}

.amg-internal-links-list-columns li {
  break-inside: avoid;
}

.amg-internal-links-services {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.amg-internal-links-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Inner pages */
.amg-inner-page-shell {
  padding: 40px 24px;
}

.amg-provider-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

a.amg-provider-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

a.amg-provider-tab-active {
  color: #fff;
}

.amg-game-panel {
  margin-top: 24px;
}

.amg-game-panel-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #14805e;
}

.amg-game-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .amg-internal-links-grid { grid-template-columns: 1fr; }
  .amg-game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Footer partners */
.amg-footer-partners-wrap {
  background: #0a1c17;
  padding: 40px 0;
}

.amg-footer-partners-shell {
  padding: 0 24px;
  text-align: center;
}

.amg-footer-partners-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.amg-footer-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 944px;
  margin: 32px auto 0;
}

.amg-footer-inner {
  padding: 40px 24px;
  text-align: center;
}

.amg-footer-subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.amg-footer-games {
  margin-top: 40px;
}

.amg-footer-link {
  color: #aeb9b5;
  text-decoration: none;
  transition: color 0.15s ease;
}

.amg-footer-link:hover {
  color: #fff;
}

.amg-footer-copy {
  margin-top: 24px;
  font-size: 14px;
}

.amg-casino {
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: contain, cover;
}
