:root {
      --red: #ee2029;
      --deep-red: #8c0006;
      --dark: #130405;
      --gold: #ffd45c;
      --gold-2: #ffad1f;
      --line: rgba(238, 32, 41, .22);
      --text: #23120d;
      --muted: #745d57;
      --max: 1220px;
    }

    * { box-sizing: border-box; }

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: #fff7f1;
    }

    a { color: inherit; text-decoration: none; }

    .top {
      background: #fff;
      border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .top-inner {
      width: min(var(--max), calc(100% - 36px));
      min-height: 86px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--red);
      font-weight: 900;
      letter-spacing: 0;
      font-size: 44px;
      line-height: 1;
    }

    .brand-mark {
      width: 58px;
      height: 58px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 20px;
      background: linear-gradient(145deg, #ff343b, #ac0007);
      box-shadow: 0 12px 24px rgba(238,32,41,.28);
    }

    .top-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: flex-end;
      min-width: 0;
    }

    .btn {
      min-width: 0;
      min-height: 42px;
      padding: 0 28px;
      border-radius: 6px;
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 800;
      text-transform: uppercase;
      box-shadow: 0 14px 24px rgba(238,32,41,.22);
    }

    .btn.red {
      color: #fff;
      background: linear-gradient(180deg, #ff4b52, #d40610);
    }

    .btn.dark {
      color: #fff;
      background: #191919;
      border-color: rgba(255,255,255,.16);
      box-shadow: none;
    }

    .nav {
      background: linear-gradient(180deg, #ff3b42, #de0a13);
      color: #fff;
      box-shadow: inset 0 -1px 0 rgba(255,255,255,.2);
    }

    .nav-inner {
      width: min(var(--max), calc(100% - 36px));
      margin: 0 auto;
      display: flex;
      gap: 0;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .nav-inner a {
      flex: 0 0 auto;
      padding: 16px 17px;
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .nav-inner a:first-child {
      background: rgba(128, 0, 0, .22);
    }

    .hero {
      background: #b30008;
      min-height: 438px;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(90deg, rgba(117,0,0,.72), rgba(148,0,0,.25) 48%, rgba(148,0,0,.02)), url("jin88-hero.png");
      background-size: cover;
      background-position: center;
      filter: saturate(1.04) contrast(1.04);
    }

    .hero-inner {
      position: relative;
      width: min(var(--max), calc(100% - 36px));
      min-height: 438px;
      margin: 0 auto;
      display: flex;
      align-items: center;
    }

    .hero-copy {
      width: min(600px, 100%);
      min-width: 0;
      color: #fff;
      padding: 30px 0;
      text-shadow: 0 4px 16px rgba(0,0,0,.35);
    }

    .hero-copy h1 {
      margin: 0 0 16px;
      font-size: 96px;
      line-height: .86;
      font-weight: 900;
      color: #fff;
      letter-spacing: 0;
      text-transform: uppercase;
      overflow-wrap: break-word;
    }

    .hero-copy h1 span {
      color: var(--gold);
      display: block;
      font-size: .58em;
      line-height: 1.03;
      margin-top: 8px;
    }

    .hero-copy p {
      margin: 0 0 28px;
      max-width: 560px;
      font-size: 20px;
      line-height: 1.55;
      font-weight: 700;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .btn.gold {
      background: linear-gradient(180deg, #ffe277, #ffb21e);
      color: #5a1300;
      box-shadow: 0 12px 30px rgba(255, 190, 48, .32);
    }

    .marquee {
      width: min(var(--max), calc(100% - 36px));
      margin: 16px auto 0;
      border: 2px solid var(--red);
      border-radius: 999px;
      background: #fff;
      color: #0377d8;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 0 22px;
      font-weight: 700;
      overflow: hidden;
    }

    .categories {
      width: min(var(--max), calc(100% - 36px));
      margin: 18px auto 0;
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      gap: 10px;
    }

    .cat {
      aspect-ratio: 16 / 10;
      min-height: 0;
      border-radius: 8px;
      background-size: cover;
      background-position: center;
      border: 1px solid rgba(255, 212, 92, .36);
      color: #fff;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      text-align: center;
      padding: 8px;
      box-shadow: 0 14px 28px rgba(100,0,0,.18);
      position: relative;
      overflow: hidden;
    }

    .cat::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.72)),
        radial-gradient(circle at 50% 0%, rgba(255,212,92,.25), transparent 42%);
    }

    .cat strong {
      position: relative;
      z-index: 1;
      display: block;
      width: 100%;
      padding: 9px 6px;
      border-radius: 6px;
      background: rgba(135, 0, 7, .72);
      border: 1px solid rgba(255,255,255,.16);
      font-size: 12px;
      line-height: 1.25;
      text-transform: uppercase;
      text-shadow: 0 2px 6px rgba(0,0,0,.45);
    }

    .cat.live { background-image: url("jin88-cat-live.png"); }
    .cat.slots { background-image: url("jin88-cat-slots.png"); }
    .cat.fish { background-image: url("jin88-cat-fish.png"); }
    .cat.cards { background-image: url("jin88-cat-cards.png"); }
    .cat.esport { background-image: url("jin88-cat-esport.png"); }
    .cat.sports { background-image: url("jin88-cat-sports.png"); }
    .cat.arena { background-image: url("jin88-cat-arena.png"); }
    .cat.promo-cat { background-image: url("jin88-cat-promo.png"); }

    .section {
      width: min(var(--max), calc(100% - 36px));
      margin: 42px auto 0;
    }

    .section-title {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 18px;
      margin-bottom: 22px;
      color: var(--red);
      text-align: center;
      text-transform: uppercase;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 900;
      letter-spacing: 0;
    }

    .section-title::before,
    .section-title::after {
      content: "";
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(238,32,41,.45));
    }

    .section-title::after {
      background: linear-gradient(90deg, rgba(238,32,41,.45), transparent);
    }

    .intro {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 24px;
      align-items: stretch;
    }

    .intro-card,
    .side-panel {
      min-width: 0;
      background: #fff;
      border-radius: 8px;
      border: 1px solid rgba(238,32,41,.16);
      box-shadow: 0 20px 44px rgba(90, 0, 0, .08);
    }

    .intro-card {
      padding: 30px;
      border-left: 5px solid var(--red);
    }

    .intro-card h2 {
      margin: 0 0 14px;
      color: var(--red);
      font-size: 30px;
      line-height: 1.15;
      text-transform: uppercase;
      overflow-wrap: break-word;
    }

    .intro-card p,
    .side-panel p,
    .article-card p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.7;
      overflow-wrap: break-word;
    }

    .proofs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 24px;
    }

    .proof {
      border-radius: 8px;
      background: #fff4e5;
      border: 1px solid rgba(255, 173, 31, .4);
      padding: 14px;
    }

    .proof strong {
      display: block;
      color: var(--deep-red);
      font-size: 24px;
      margin-bottom: 4px;
    }

    .proof span {
      color: #806156;
      font-size: 13px;
      font-weight: 700;
    }

    .side-panel {
      padding: 22px;
      background:
        radial-gradient(circle at 88% 18%, rgba(255, 212, 92, .28), transparent 26%),
        linear-gradient(145deg, #fff, #fff0e4);
    }

    .step-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

    .step {
      min-height: 138px;
      padding: 18px;
      border-radius: 8px;
      color: #fff;
      background: linear-gradient(145deg, #19100f, #e4111b);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .step b {
      color: var(--gold);
      font-size: 26px;
    }

    .step span {
      font-weight: 800;
      line-height: 1.35;
    }

    .feature-grid,
    .article-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .feature {
      min-width: 0;
      background: #fff;
      border: 1px solid rgba(238,32,41,.18);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 16px 34px rgba(90, 0, 0, .08);
    }

    .feature-media {
      aspect-ratio: 16 / 9;
      background:
        radial-gradient(circle at 72% 38%, rgba(255,212,92,.9), transparent 18%),
        radial-gradient(circle at 22% 38%, rgba(255,255,255,.35), transparent 18%),
        linear-gradient(135deg, #5a0004, #f32731);
      position: relative;
      overflow: hidden;
    }

    .feature-media::before,
    .feature-media::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      border: 10px solid rgba(255, 225, 128, .55);
      width: 96px;
      height: 96px;
      right: 18px;
      bottom: -32px;
    }

    .feature-media::after {
      width: 58px;
      height: 58px;
      right: 92px;
      bottom: 22px;
      border-width: 8px;
      border-color: rgba(255,255,255,.35);
    }

    .feature-body {
      padding: 18px;
    }

    .feature h3,
    .article-card h3 {
      margin: 0 0 9px;
      color: var(--deep-red);
      font-size: 18px;
      line-height: 1.35;
    }

    .promo {
      border-radius: 8px;
      overflow: hidden;
      min-height: 232px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      background:
        linear-gradient(90deg, rgba(70,0,0,.9), rgba(70,0,0,.22)),
        url("jin88-hero.png") center / cover;
      color: #fff;
      box-shadow: 0 24px 50px rgba(90,0,0,.18);
      border: 1px solid rgba(255,212,92,.4);
    }

    .promo-copy {
      padding: 30px;
      align-self: center;
    }

    .promo-copy h2 {
      margin: 0 0 12px;
      color: var(--gold);
      font-size: 32px;
      line-height: 1.12;
      text-transform: uppercase;
    }

    .promo-copy p {
      margin: 0;
      max-width: 500px;
      color: #fff5d9;
      line-height: 1.7;
      font-weight: 700;
    }

    .article-card {
      background: #fff;
      border: 1px solid rgba(238,32,41,.16);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 14px 30px rgba(90,0,0,.08);
    }

    .article-thumb {
      aspect-ratio: 16 / 9;
      background:
        linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.34)),
        linear-gradient(135deg, #ff2a33, #5d0004);
      position: relative;
    }

    .article-thumb::before {
      content: "JIN88";
      position: absolute;
      left: 16px;
      top: 14px;
      color: #fff;
      font-size: 20px;
      font-weight: 900;
      text-shadow: 0 2px 8px rgba(0,0,0,.35);
    }

    .article-thumb::after {
      content: "";
      position: absolute;
      right: 18px;
      bottom: 16px;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: radial-gradient(circle, #fff2a8 0 18%, #ffc12d 19% 44%, #a80008 45% 100%);
      box-shadow: 0 10px 24px rgba(0,0,0,.22);
    }

    .article-body {
      padding: 18px;
    }

    .date {
      width: 52px;
      height: 58px;
      margin-top: -48px;
      margin-bottom: 12px;
      position: relative;
      z-index: 2;
      border: 2px solid var(--red);
      border-radius: 6px;
      background: #fff;
      color: var(--red);
      display: grid;
      place-items: center;
      font-weight: 900;
      line-height: 1;
    }

    .date small {
      display: block;
      color: #777;
      font-size: 11px;
      margin-top: 4px;
      text-transform: uppercase;
    }

    footer {
      margin-top: 48px;
      background: #1a0506;
      color: #fff4d6;
      padding: 30px 0;
    }

    .footer-inner {
      width: min(var(--max), calc(100% - 36px));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: center;
      flex-wrap: wrap;
      font-size: 14px;
    }

    @media (max-width: 980px) {
      .top-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
      .hero-copy h1 { font-size: 76px; }
      .hero-inner { min-height: 520px; align-items: flex-end; }
      .hero::before { background-position: 66% center; }
      .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .intro { grid-template-columns: 1fr; }
      .feature-grid,
      .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .promo { grid-template-columns: 1fr; }
    }

    @media (max-width: 620px) {
      .top-inner,
      .hero-inner,
      .marquee,
      .categories,
      .section,
      .footer-inner {
        width: calc(100% - 28px);
      }
      .brand { font-size: 32px; }
      .brand-mark { width: 48px; height: 48px; }
      .top-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .top-actions .btn {
        width: 100%;
        padding: 0 8px;
        font-size: 13px;
      }
      .nav-inner { width: 100%; padding: 0 14px; }
      .nav-inner a { padding: 14px 12px; font-size: 13px; }
      .hero,
      .hero-inner { min-height: 560px; }
      .hero::before { background-position: 74% center; }
      .hero-copy {
        margin-bottom: 24px;
        padding: 18px;
        border: 1px solid rgba(255, 212, 92, .32);
        border-radius: 8px;
        background: rgba(54,0,0,.68);
      }
      .hero-copy h1 { font-size: 42px; line-height: .95; }
      .hero-copy h1 span { font-size: .56em; line-height: 1.12; }
      .hero-copy p { font-size: 16px; }
      .hero-actions .btn { flex: 1 1 100%; }
      .marquee { justify-content: flex-start; font-size: 13px; }
      .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .proofs,
      .step-grid,
      .feature-grid,
      .article-grid { grid-template-columns: 1fr; }
      .intro-card h2 { font-size: 26px; }
      .section-title { font-size: 24px; grid-template-columns: 1fr; }
      .section-title::before,
      .section-title::after { display: none; }
      .promo-copy,
      .intro-card,
      .side-panel { padding: 22px; }
    }

    .detail-hero {
      background: linear-gradient(135deg, #7d0005, #ee2029 58%, #ffbe39);
      color: #fff;
      position: relative;
      overflow: hidden;
    }

    .detail-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(90deg, rgba(60,0,0,.82), rgba(120,0,0,.38)), url("jin88-hero.png");
      background-size: cover;
      background-position: center;
      opacity: .92;
    }

    .detail-hero-inner {
      position: relative;
      width: min(var(--max), calc(100% - 36px));
      margin: 0 auto;
      min-height: 340px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 48px 0;
    }

    .detail-hero h1 {
      margin: 0;
      max-width: 820px;
      color: #fff;
      font-size: 54px;
      line-height: 1.06;
      font-weight: 900;
      text-transform: uppercase;
    }

    .detail-meta {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      color: #ffe7a2;
      font-weight: 800;
    }

    .detail-meta span {
      border: 1px solid rgba(255,255,255,.24);
      border-radius: 6px;
      padding: 8px 10px;
      background: rgba(0,0,0,.22);
    }

    .detail-shell {
      width: min(var(--max), calc(100% - 36px));
      margin: 34px auto 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 24px;
      align-items: start;
    }

    .detail-card,
    .detail-side {
      background: #fff;
      border: 1px solid rgba(238,32,41,.16);
      border-radius: 8px;
      box-shadow: 0 20px 44px rgba(90,0,0,.08);
    }

    .detail-card { padding: 34px; }
    .detail-side { padding: 24px; }

    .detail-label {
      color: var(--red);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .detail-body {
      color: #4d3730;
      font-size: 17px;
      line-height: 1.85;
    }

    .detail-body h2,
    .detail-body h3 {
      color: var(--deep-red);
      line-height: 1.2;
    }

    .detail-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 18px 0 24px;
      font-size: 15px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(238,32,41,.16);
    }

    .detail-body th,
    .detail-body td {
      padding: 12px 14px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid rgba(238,32,41,.16);
    }

    .detail-body th {
      color: #fff;
      background: var(--deep-red);
      font-weight: 900;
    }

    .detail-body tr:last-child td {
      border-bottom: 0;
    }

    .detail-body img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
    }

    .detail-nextprev {
      margin-top: 28px;
      padding-top: 18px;
      border-top: 1px solid rgba(238,32,41,.16);
      display: grid;
      gap: 10px;
      color: var(--deep-red);
      font-weight: 800;
    }

    .detail-actions {
      margin-top: 20px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .detail-actions a {
      border-radius: 6px;
      padding: 10px 14px;
      color: #fff;
      background: linear-gradient(180deg, #ff4b52, #d40610);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .detail-side h2 {
      margin: 0 0 14px;
      color: var(--red);
      font-size: 24px;
      text-transform: uppercase;
    }

    .detail-side a {
      display: block;
      padding: 12px 0;
      border-top: 1px solid rgba(238,32,41,.16);
      color: var(--deep-red);
      font-weight: 800;
    }

    .detail-side a:first-of-type { border-top: 0; }

    @media (max-width: 980px) {
      .detail-shell { grid-template-columns: 1fr; }
      .detail-hero h1 { font-size: 42px; }
    }

    @media (max-width: 620px) {
      .detail-hero-inner,
      .detail-shell { width: calc(100% - 28px); }
      .detail-hero h1 { font-size: 30px; }
      .detail-card,
      .detail-side { padding: 20px; }
      .detail-body { font-size: 16px; }
    }
