
    :root {
      --ivory: #F3EBE3;
      --espresso: #2A1F1C;
      --rose: #C45B6A;
      --blush: #E8B4B8;
      --sage: #3D5A4C;
      --card: #FBF6F1;
      --line: #E5D6CC;
      --safe-b: env(safe-area-inset-bottom);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { background: #F7D6DC; color: var(--espresso); font-family: "Source Sans 3", sans-serif; min-height: 100%; }
    body { padding-bottom: calc(76px + var(--safe-b)); }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: 0; background: none; }

    .wrap { width: min(1120px, 100%); margin: 0 auto; padding: 16px 18px 24px; position: relative; z-index: 2; }

    .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
    .brand h1 { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; letter-spacing: .04em; font-weight: 600; line-height: 1; }
    .brand em { display: block; font-style: italic; color: var(--rose); font-size: .95rem; margin-top: 4px; font-family: "Cormorant Garamond", serif; }
    .lang { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
    .lang button { min-width: 36px; height: 28px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--espresso); }
    .lang button.on { background: var(--rose); color: #fff; }

    .hero { display: grid; gap: 16px; margin-bottom: 22px; }
    .home-collage { display: none; }
    .home-collage img {
      width: 100%; height: 100%; object-fit: cover; object-position: center top;
      opacity: .7;
    }
    .home-collage::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(20,14,16,.55), rgba(20,14,16,.72) 40%, rgba(20,14,16,.82));
    }
    .brand h1, h2.sec { color: #6B1E2C; text-shadow: none; }
    .hero-copy { color: #4A0E18; text-shadow: none; }
    .hero-photo {
      aspect-ratio: 16/10; max-height: 520px; border-radius: 18px;
      background: #1a1214;
      position: relative; overflow: hidden;
    }
    .hero-photo img {
      width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
      background: #1a1214;
    }
    .hero-photo .hero-ev-btn {
      position: absolute; right: 10px; top: 10px; z-index: 3;
      border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .82rem;
      background: #8B1E2C; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
    }
    .hero-photo .hero-ev-btn[hidden] { display: none; }
    .box-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
    .box-langs button { border: 1px solid #8B1E2C; background: #fff; color: #8B1E2C; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .78rem; cursor: pointer; }
    .box-langs button.on { background: #8B1E2C; color: #fff; }
    .hero-photo span {
      position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
      padding: 28px 14px 12px;
      background: linear-gradient(transparent, rgba(20,10,12,.72));
      font-family: "Cormorant Garamond", serif; font-size: 1.15rem; line-height: 1.2;
      font-weight: 600;
    }
    .pills { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pills-sm { gap: 6px; }
    .pill { border-radius: 999px; padding: 10px 14px; font-size: .86rem; font-weight: 700; border: 1px solid var(--line); background: #fff; color: #4A0E18; white-space: nowrap; flex: 0 0 auto; }
    .pills-sm .pill { padding: 5px 10px; font-size: .72rem; font-weight: 700; }
    .pill.ig { background: var(--blush); border-color: transparent; }
    .pill.tk { background: #111; color: #fff; border-color: transparent; }
    .pill.wb { background: #E6162D; color: #fff; border-color: transparent; }
    .pill.fb { background: #1877F2; color: #fff; border-color: transparent; }
    .empire-mini { margin: 14px 0 6px; font-size: .95rem; letter-spacing: .06em; text-transform: none; font-weight: 900; color: #C45B6A; text-shadow: 0 0 0 #C45B6A; }
    .gal-wrap { position: relative; background: #1a1012; overflow: hidden; }
    .gal-wrap img { width: 100%; height: 320px; object-fit: cover; object-position: center 20%; display: block; }
    .gal-nav { display: none; }
    .gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #2a1518; color: #f7e8e4; font-size: .82rem; font-weight: 700; position: relative; z-index: 5; }
    .gal-bar .gctrl { display: flex; align-items: center; gap: 8px; }
    .gal-bar button.gbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; color: #4A0E18; font-size: 1.4rem; font-weight: 900; cursor: pointer; line-height: 1; }
    .gal-bar a, .gal-bar button.save { background: #C45B6A; color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
    .row-btns { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; }
    .row-btns .btn { flex: 0 0 auto; white-space: nowrap; }
    .profile-hero { overflow: hidden; padding: 0; }
    .profile-hero img { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: center; display: block; background: #1a1214; }
    .profile-hero .ph-meta { padding: 14px 16px 16px; }
    .profile-hero h3 { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; margin: 0 0 2px; }
    .profile-hero .th-name { color: #8B1E2C; font-weight: 700; margin-bottom: 10px; }
    .fact-row { display: flex; flex-wrap: wrap; gap: 6px; }
    .fact { background: #F6D5C8; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 700; color: #4A0E18; }
    .prof-sec { margin-top: 12px; padding: 14px 16px; }
    .prof-sec h4 { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; margin: 0 0 8px; color: #6B1E2C; }
    .prof-sec ul { margin: 0; padding-left: 18px; line-height: 1.55; }
    .core-box { background: linear-gradient(180deg,#FBE4DC,#F3EBE3); border: 1px dashed #C45B6A; }
    .core-box p { margin: 0 0 8px; line-height: 1.55; }

    h2.sec { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; margin: 8px 0 12px; }
    .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
    .event { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
    .event .date { text-align: center; color: var(--rose); }
    .event .date b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2rem; line-height: 1; }
    .event .date small { font-size: .72rem; letter-spacing: .08em; }
    .event h3 { font-size: 1.02rem; margin-bottom: 4px; }
    .event p { font-size: .82rem; opacity: .75; }
    .btn { display: inline-flex; align-items: center; margin-top: 8px; background: var(--rose); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 600; }

    .yt-row { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: center; }
    .yt-thumb { height: 72px; border-radius: 12px; background: linear-gradient(135deg, #8A3D48, #3D5A4C); position: relative; }
    .yt-thumb i { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .7rem; }

    .page { display: none; }
    .page.on { display: block; }
    #page-watch { display: block !important; }
    #page-watch:not(.on) { height: 0; overflow: hidden; margin: 0; padding: 0; }
    #page-watch:not(.on) .nf-page { background: transparent; margin: 0; padding: 0; }
    #page-watch:not(.on) .nf-page > :not(.watch-layout) { display: none; }
    #page-watch:not(.on) .ep-list { display: none; }
    #page-watch:not(.on) .watch-layout { display: none; }
    /* Prevent layout shift on all pages */
    
    .player-wrap { aspect-ratio: 16/9; min-height: 210px; background: #000; }
    .ep-list { min-height: 120px; }
    .fund-stage { min-height: 180px; }
    body.player-on #page-watch:not(.on) .watch-layout {
      position: fixed; left: 10px; bottom: calc(72px + var(--safe-b));
      width: min(46vw, 210px); z-index: 22; display: block; gap: 0;
    }
    body.player-on #page-watch:not(.on) .ep-list { display: none; }
    body.player-on #page-watch:not(.on) .player-wrap { border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.45); display: block; }
    .ot-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
    .ot-row button { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer; }
    #otRow .ot-iq, .ot-box a.ot-iq, button.ot-iq, a.ot-iq {
      background: #c9f3ea !important; color: #21564c !important; border: 0 !important;
    }
    #otRow .ot-nf, button.ot-nf, a.ot-nf {
      background: #f7c4c8 !important; color: #7a2a32 !important; border: 0 !important;
    }
    .ot-box { background: #1a1214; color: #f6ece8; border-radius: 14px; overflow: hidden; margin: 0 0 14px; }
    .ot-box iframe { width: 100%; height: 220px; border: 0; background: #000; pointer-events: none; }
    .ot-frame { position: relative; overflow: hidden; height: 220px; background: #111; }
    .ot-freeze { position: absolute; inset: 0; z-index: 2; background: transparent; }
    .ot-meta { padding: 14px 16px; }
    .ot-meta h4 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; }
    .ot-meta p { margin: 0 0 10px; color: #f0ddd6; }
    .ot-meta a { color: #ffd4c8; font-weight: 800; }
    .watch-layout .player-wrap { display: none; position: relative; }
    body.player-on .watch-layout .player-wrap { display: block; }
    .yt-close { position: absolute; top: 6px; right: 6px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; line-height: 28px; }

    .filters, .chips { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; padding-bottom: 8px; width: 100%; }
    .filters .chip, .chips .chip, .chip { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 2px solid #E8B4B8; border-radius: 999px; padding: 6px 6px; font-size: .68rem; font-weight: 700; color: #F3EBE3; background: rgba(42,31,28,.45); }
    .chip.on { background: var(--rose); color: #fff; border-color: #fff; box-shadow: 0 0 0 2px rgba(196,91,106,.35); }

    .timeline { display: grid; gap: 10px; }
    .t-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
    .t-card .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #ddd; }
    #page-events .t-card { grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
    #page-events .t-card .thumb { width: 120px; height: 120px; border-radius: 14px; }
    .home-next { display: grid; gap: 8px; margin-top: 10px; }
    .home-next .t-card .thumb { width: 44px; height: 44px; }
    .badge { width: 64px; height: 64px; border-radius: 14px; background: var(--rose); color: #fff; display: grid; place-items: center; text-align: center; font-size: .72rem; line-height: 1.15; }
    .badge.sage { background: var(--sage); }
    .badge.blush { background: var(--blush); color: var(--espresso); }

    .player-wrap { border-radius: 16px; overflow: hidden; background: #111; aspect-ratio: 16/9; box-shadow: 0 18px 40px rgba(42,31,28,.28); }
    .player-wrap iframe { width: 100%; height: 100%; border: 0; }
    .watch-layout { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: start; }
    body.player-on .watch-layout .player-wrap {
      width: 100%; aspect-ratio: 16 / 9; min-height: 210px; background: #000;
    }
    body.player-on .watch-layout .player-wrap iframe,
    body.player-on .watch-layout .player-wrap #ytHost { width: 100%; height: 100%; }
    .yt-fs { position: absolute; top: 6px; right: 38px; z-index: 3; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; line-height: 28px; }
    .player-wrap:fullscreen, .player-wrap:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; border-radius: 0; }
    .player-wrap:fullscreen iframe, .player-wrap:-webkit-full-screen iframe,
    .player-wrap:fullscreen #ytHost, .player-wrap:-webkit-full-screen #ytHost { width: 100%; height: 100%; }
    .ot-span { grid-column: 1 / -1; }
    .nf-page { background: #0d0b0c; margin: -8px -16px 0; padding: 12px 16px 28px; min-height: 100%; color: #f3ebe3; }
    .nf-page .sec { color: #E8B4B8; font-size: 2rem; font-weight: 700; }
    .nf-row { margin-top: 22px; }
    .nf-row h3 { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; letter-spacing: 0; text-transform: none; color: #E8B4B8; margin-bottom: 12px; font-weight: 700; }
    .nf-rail { display: flex; flex-direction: row; justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .nf-rail::-webkit-scrollbar { height: 8px; }
    .nf-rail::-webkit-scrollbar-thumb { background: #6a4a4e; border-radius: 99px; }
    .nf-card { flex: 0 0 210px; scroll-snap-align: start; background: #110c0b; border: 0; padding: 0; border-radius: 12px; overflow: hidden; text-align: left; color: #f3ebe3; position: relative; }
    .nf-card img { width: 210px; height: 122px; object-fit: cover; display: block; background: #222; }
    .nf-card .nf-meta { display: block; padding: 8px 8px 10px; }
    .nf-card b { display: block; font-size: .72rem; line-height: 1.25; font-weight: 700; }
    .nf-card small { display: block; margin-top: 3px; opacity: .65; font-size: .62rem; }
    .nf-card.on { outline: 2px solid var(--rose); }
    .nf-card:hover { transform: translateY(-2px); }
    .series-row { display: none; }
    .ep-list { max-height: 280px; overflow: auto; display: grid; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 8px; }
    .ep { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid transparent; color: #f3ebe3; }
    .ep img { width: 88px; height: 50px; object-fit: cover; border-radius: 8px; background: #222; }
    .ep b { display: block; font-size: .72rem; color: #E8B4B8; }
    .ep span { display: block; font-size: .72rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ep div { min-width: 0; overflow: hidden; }
    .ep-list { max-height: 240px; overflow: auto; }
    .ep.on { border-color: var(--rose); background: rgba(196,91,106,.35); }
    .plist { margin-top: 14px; display: grid; gap: 8px; }
    .plist button, .plist a { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; }
    .plist small { color: var(--sage); font-weight: 600; }
    .hint { font-size: .8rem; opacity: .7; margin: 10px 0; }
    .btn-ticket { display: block; text-align: center; background: #C45B6A !important; color: #fff !important; border: 0 !important; font-size: 1.05rem; padding: 14px 16px; margin: 12px 0 8px; box-shadow: 0 8px 18px rgba(196,91,106,.35); }
    .btn-ticket:hover { filter: brightness(1.06); }
    .credit-bar { margin: 14px 0 8px; padding: 12px 14px; border-radius: 12px; background: #F6D5C8; border: 2px solid #C45B6A; color: #4A0E18; font-weight: 800; font-size: .95rem; line-height: 1.5; text-shadow: none; }
    .credit-bar a { color: #8B1E2C; text-decoration: underline; font-weight: 900; }
    .credit-line { margin-top: 10px; font-size: .82rem; font-weight: 800; color: #6B1E2C; }
    .admin-row { display: flex; gap: 8px; margin-top: 10px; }
    .admin-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; }
    .admin-row button { background: var(--espresso); color: #fff; border-radius: 10px; padding: 0 14px; font-weight: 600; }

    .social-grid { display: grid; gap: 10px; }
    .social-grid a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; align-items: center; }
    .feeds { display: grid; gap: 14px; }
    .feed { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
    .feed header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 700; font-size: .88rem; }
    .feed header a { color: var(--rose); font-size: .75rem; font-weight: 600; }
    .feed-scroll { height: 460px; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
    .feed-scroll iframe { width: 100%; height: 900px; border: 0; display: block; }
    .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .cal .dow { text-align: center; font-size: .78rem; letter-spacing: .04em; padding: 4px 0; font-weight: 900; color: #6B1E2C; }
    .cal .day { min-height: 54px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; display: flex; flex-direction: column; align-items: stretch; }
    .cal .cal-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#E8B4B8; margin:2px; vertical-align:middle; }
    .day.empty { background: transparent; border-color: transparent; }
    .cal .day b { display: block; font-size: .88rem; color: #6B1E2C; line-height: 1.2; font-weight: 900; }
    .cal .day.has { outline: 2px solid #C45B6A; cursor: pointer; }
    .cal .day img { width: 100%; height: 34px; object-fit: contain; object-position: center; border-radius: 5px; cursor: pointer; display: block; margin: 2px 0 0; flex: 0 0 auto; background: #24181a; }
    .cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .cal-nav select, .cal-nav button { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; background: #fff; font-weight: 800; color: #1a1210; min-width: 44px; }
    .cal-nav button { font-size: 1.25rem; }
    .media-search { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; margin: 0 0 10px; }
    .media-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; margin-top: 10px; }
    .ext-box { position: fixed; inset: 0; z-index: 80; background: rgba(12,8,10,.72); display: none; align-items: center; justify-content: center; padding: 16px; }
    .ext-box.on { display: flex; }
    .ext-card { width: min(920px, 100%); background: #1a1214; border-radius: 16px; overflow: hidden; color: #f3ebe3; }
    .ext-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
    .ext-card header strong { font-size: .95rem; }
    .ext-card .ext-close { width: 36px; height: 36px; border-radius: 999px; background: #C45B6A; color: #fff; font-size: 1.3rem; font-weight: 700; }
    .ext-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
    .ext-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .ext-card footer { padding: 10px 12px 14px; }
    #watchMedia .card, #watchMedia .t-card { color: #2A1F1C; }
    #watchMedia .t-card strong { color: #2A1F1C; font-weight: 800; }
    #watchMedia .hint { color: #6B1E2C; opacity: 1; font-weight: 700; }
    #watchMedia .cal .dow, #watchMedia .cal .day b { color: #6B1E2C; font-weight: 900; }
    .cal-leg { display: flex; gap: 6px; overflow: auto; padding: 6px 0 0; }
    .cal-leg button { flex: 0 0 44px; }
    .cal-leg img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
    .headline { overflow: hidden; padding: 0; }
    .headline img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center top; display: block; background: #1a1210; }
    .headline .hl-body { padding: 14px; }
    .headline h3 { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; line-height: 1.15; margin-bottom: 6px; }
    .modal-bg { position: fixed; inset: 0; background: rgba(42,31,28,.55); z-index: 40; display: grid; place-items: end center; padding: 12px 12px calc(18px + var(--safe-b)); }
        .ig-slider { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #1a1210; margin: 0 0 10px; }
    .ig-track { display: flex; width: 100%; touch-action: pan-y pinch-zoom; }
    .ig-track .ig-slide { min-width: 100%; max-height: 420px; }
    .ig-track img { width: 100%; height: 420px; object-fit: contain; display: block; background: #1a1210; }
    .ig-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #1a1210; font-size: 18px; font-weight: 700; z-index: 2; }
    .ig-nav.prev { left: 8px; }
    .ig-nav.next { right: 8px; }
    .ig-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; z-index: 2; }
    .ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); display: block; }
    .ig-dots i.on { background: #fff; width: 7px; height: 7px; }
    
    .ig-vid-crop { position: absolute; inset: 0; overflow: hidden; background: #000; }
    .ig-vid-crop iframe {
      position: absolute; top: 50%; left: 50%;
      width: 180%; height: 180%;
      min-height: 0 !important;
      transform: translate(-50%, -52%) scale(1.22);
      pointer-events: auto;
    }
    .ig-stage { position: relative; }
    .ig-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; z-index: 2; }
    .modal { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--card); border-radius: 18px; padding: 42px 14px 14px; position: relative; -webkit-overflow-scrolling: touch; }
    #mediaPlayHost, #mediaPlayHost iframe, #boxYt { pointer-events: auto !important; touch-action: manipulation; position: relative; z-index: 5; }
    #mediaPlayHost { min-height: 200px; }
    .ver-row { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
    /* hộp chi tiết sự kiện / video: bố cục mới */
    .modal.evx h3 { font-size: 1.5rem; line-height: 1.15; margin: 10px 0 6px; }
    .evx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
    .evx-chip { background: #fff; border: 1px solid var(--line); color: #6B1E2C; border-radius: 999px; padding: 3px 10px; font-size: .76rem; font-weight: 700; }
    /* v49: giờ địa phương, đếm ngược, thêm vào lịch */
    .evx-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
    .evx-time { flex: 1 1 100%; font-weight: 700; color: #3D5A4C; font-size: .9rem; }
    .cd-chip { display: inline-block; background: #FFF1E8; color: #A3402E; border: 1px solid #F3C9B5; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
    .cd-chip.big { font-size: .86rem; padding: 4px 12px; }
    .cd-chip.sm { margin-left: 4px; }
    .up-row-t .cd-chip.sm { margin: 4px 0 0; display: inline-block; }
    .up-meta .cd-chip { margin-left: 6px; }
    .evx-cal { position: relative; }
    .evx-calmenu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .evx-calmenu[hidden] { display: none; }
    .cal-follow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
    .cal-follow.compact { padding: 8px 0 0; border: 0; background: none; margin: 8px 0 0; }
    .cal-follow strong { display: block; color: #6B1E2C; margin-bottom: 2px; }
    .cal-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .arch-n { margin-left: auto; }
    .cal-btns .btn, .evx-calmenu .btn, .evx-cal > .btn { margin-top: 0; }
    #archCat { margin-left: 6px; }
    .evx-player:empty { display: none; }
    .modal.evx > .evx-player, .modal.evx > .evg, .modal.evx > .evv { clear: both; }
    .evx-player { margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background: #000; }
    .evx-player > p { background: var(--card); margin: 0 !important; padding: 8px 0; }
    .evx-blurb { white-space: pre-line; line-height: 1.55; margin: 4px 0 12px; }
    .evx-sec { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9E3D4C; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
    .evx-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
    .evx-x iframe.xpost { width: 100%; height: 360px; border: 0; border-radius: 12px; background: #fff; margin: 0 0 10px; display: block; }
    .lk-list { display: grid; gap: 8px; margin: 0 0 6px; }
    .lk { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--espresso); transition: border-color .15s, transform .15s; }
    .lk:hover { border-color: var(--rose); }
    .lk:active { transform: scale(.99); }
    .lk.on { border-color: #6B1E2C; box-shadow: 0 0 0 2px rgba(107,30,44,.15); }
    .lk-ic, .modal img.lk-ic { width: 28px; height: 28px; border-radius: 8px; flex: none; background: var(--card); object-fit: contain; }
    .lk-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
    .lk-tx b { font-size: .92rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .lk-tx small { font-size: .74rem; color: #8a6f76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lk-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: #6B1E2C; font-size: .8rem; }
    .lk.v .lk-go { background: var(--rose); color: #fff; }
    .evx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .evx-actions .btn { margin-top: 0; }
    .evx-fans { display: flex; flex-wrap: wrap; gap: 8px; }
    .ver-row .btn.on { background:#6B1E2C; color:#fff; }
    #syeDock { position:fixed; right:12px; bottom:calc(64px + var(--safe-b)); width:min(320px,46vw); z-index:55; display:none; background:#1a1210; border-radius:14px; overflow:hidden; box-shadow:0 8px 28px rgba(0,0,0,.35); }
    #syeDock.on { display:block; }
    #syeDock iframe { width:100%; aspect-ratio:16/9; border:0; background:#000; }
    #syeDock .dock-bar { display:flex; justify-content:space-between; align-items:center; padding:6px 8px; color:#fff; font-size:.75rem; }
    .modal-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; background: #C45B6A; color: #fff; font-size: 1.15rem; font-weight: 800; line-height: 36px; text-align: center; cursor: pointer; z-index: 3; border: 0; }
    .modal video, .modal img { width: 100%; border-radius: 12px; background: #111; }
    .modal h3 { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; margin: 8px 0; }
    .modal p { font-size: .88rem; line-height: 1.55; white-space: pre-wrap; }
    .modal .xsrc { font-size: .75rem; opacity: .65; margin: 6px 0 10px; }
    .lang-mini { display: flex; gap: 6px; margin: 8px 0; }
    .lang-mini button { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .75rem; background: #fff; }
    .lang-mini button.on { background: var(--rose); color: #fff; border-color: var(--rose); }

    .info p { line-height: 1.6; margin-bottom: 10px; }
    .info .links { display: grid; gap: 8px; margin-top: 12px; }

    nav.tab {
      position: fixed; left: 0; right: 0; bottom: 0;
      background: rgba(243,235,227,.94); backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      display: grid; grid-template-columns: repeat(7, 1fr);
      padding: 8px 6px calc(8px + var(--safe-b));
      z-index: 20;
    }
    nav.tab button { display: grid; gap: 2px; place-items: center; font-size: .58rem; color: #7a6a64; }
    nav.tab button.on { color: var(--rose); font-weight: 700; }
    nav.tab svg { width: 18px; height: 18px; }

    #page-game .ggate.hide { display:none !important; }
#page-game .glock { position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; background:rgba(247,213,224,.92); border-radius:16px; }
    #page-game .glock b { font-size:22px; letter-spacing:.04em; color:#8a4b55; }
    #page-game { position:relative; background:#f7d5e0; border-radius:16px; padding:12px; color:#776e65; }
    /* chọn game */
    .gpick { text-align:center; padding:6px 2px 4px; }
    .gpick-t { margin:4px 0 2px; font-size:26px; color:#8a4b55; }
    .gpick-s { margin:0 0 14px; font-size:14px; opacity:.85; }
    .gpick-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
    .gpick-card { display:flex; flex-direction:column; gap:6px; text-align:left; border:3px solid #e8b6c4; background:#fff8fa; border-radius:18px; padding:10px; cursor:pointer; font:inherit; color:#6b4e57; box-shadow:0 5px 0 #e8b6c4; transition:transform .15s; }
    .gpick-card:hover { transform:translateY(-2px); } .gpick-card:active { transform:translateY(3px); box-shadow:0 2px 0 #e8b6c4; }
    .gpick-card img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; image-rendering:pixelated; background:#f3dbe3; }
    .gpick-card b { font-size:19px; color:#8a4b55; } .gpick-card span { font-size:13px; line-height:1.45; }
    .gpick-card i { font-style:normal; font-weight:800; color:#c45b6a; margin-top:auto; }
    .gpick-back { border:2px solid #e8b6c4; background:#fff8fa; color:#8a4b55; border-radius:99px; padding:5px 14px; font:inherit; font-weight:700; cursor:pointer; margin-bottom:10px; }
    #page-game h2.gtitle { margin:0; font-size:32px; letter-spacing:-.5px; }
    #page-game .gsub { margin:4px 0 10px; font-size:13px; color:#8d6d78; }
    #page-game .grow { display:flex; justify-content:space-between; gap:8px; align-items:flex-end; }
    #page-game .gscores { display:flex; gap:6px; }
    #page-game .gbox { background:#bb5f78; color:#fff; border-radius:6px; min-width:70px; padding:6px 8px; text-align:center; }
    #page-game .gbox span { display:block; font-size:10px; text-transform:uppercase; }
    #page-game .gbox b { font-size:18px; }
    #page-game .gactions { display:flex; gap:8px; margin:10px 0; align-items:center; }
    #page-game .gactions button { border:0; background:#8f5a6b; color:#fff; border-radius:6px; padding:8px 12px; font-weight:700; }
    #page-game .gactions button:disabled { opacity:.45; }
    #page-game .gboard { position:relative; background:#e7b7c6; border-radius:8px; padding:6px; touch-action:none; }
    #page-game .ggrid { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; }
    #page-game .gcell { background:#f3d5df; border-radius:3px; aspect-ratio:1; }
    #page-game .gtiles { position:absolute; inset:6px; z-index:2; pointer-events:none; }
    #page-game .gtile { position:absolute; border-radius:3px; background:#f3d5df center/cover no-repeat; color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; font-size:22px; will-change:transform; transition:transform .12s cubic-bezier(.16,.84,.28,1); z-index:2; }
    #page-game .gactions { position:relative; z-index:2; } #page-game .grank { display:none; margin-top:8px; position:relative; z-index:1; padding-top:4px; clear:both; }
    #page-game .grank.on { display:block; }
    #page-game .grank input { width:100%; margin:6px 0; padding:8px; border-radius:8px; border:1px solid #e7c2c8; }
    #page-game .gicon { width:38px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
    #page-game .gicon.off { opacity:.4; }
    #page-game .gtile.pop { animation:gglow .42s linear; }
    @keyframes gglow { 0%{ box-shadow:0 0 0 0 rgba(255,255,255,0); filter:brightness(1);} 40%{ box-shadow:0 0 18px 5px rgba(255,236,246,.95); filter:brightness(1.28);} 100%{ box-shadow:0 0 0 0 rgba(255,255,255,0); filter:brightness(1);} }
    #page-game .gover { position:absolute; inset:0; z-index:5; background:rgba(255,236,242,.88); border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:12px; font-size:22px; font-weight:800; pointer-events:auto; }
    #page-game .gover div { display:flex; gap:8px; }
    #page-game .gover button { pointer-events:auto; min-width:72px; }
    #page-game .grank { margin-top:12px; background:rgba(255,255,255,.45); border-radius:8px; padding:10px; }
    #page-game .grank table { width:100%; border-collapse:collapse; font-size:13px; }
    #page-game .grank td { padding:4px 0; border-bottom:1px solid rgba(119,110,101,.12); }
    #page-game .grank td:last-child { text-align:right; font-weight:700; }
    #page-game .ggate { position:absolute; inset:0; background:rgba(247,213,224,.97); border-radius:16px; display:flex; align-items:center; justify-content:center; z-index:80; } #page-game .ggate.hide { display:none !important; }
    #page-game .gcard { background:#fff; border-radius:12px; padding:16px; width:min(320px,90%); }
    #page-game .gcard input { width:100%; border:1px solid #e7b7c6; border-radius:8px; padding:10px; margin:8px 0; }


    /* Desktop */
    @media (min-width: 880px) {
      body { padding-bottom: 0; }
      nav.tab { display: none; }
      .desk-nav { display: flex !important; }
      .wrap { width: 100%; max-width: none; margin: 0; padding: 22px 40px 48px; }
      .brand h1 { font-size: 2.35rem; }
      .brand em { font-size: 1.15rem; }
      .sec { font-size: 1.45rem; }
      .hint { font-size: .95rem; }
      .desk-nav { font-size: 1.18rem; margin: 4px 0 16px; }
      .desk-nav button { padding: 10px 18px; font-size: 1.05rem; }
      .hero { grid-template-columns: minmax(360px, 46%) 1fr; gap: 28px; align-items: stretch; max-width: none; width: 100%; }
      .hero-photo { max-height: none; height: min(62vh, 560px); aspect-ratio: auto; width: 100%; object-fit: cover; }
      .desk-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; width: 100%; }
      .cal-wrap, #page-home .card, #page-home .stat-box, #page-home iframe { max-width: none; width: 100%; }
      .cal { width: 100%; }
      .cal .day { min-height: 86px; font-size: .95rem; }
      .cal .day img { height: 48px; object-fit: contain; background: #1a1214; }
      .card strong { font-size: 1.08rem; }
      .player-wrap { max-height: none; }
      .watch-layout { grid-template-columns: 1.55fr .95fr; align-items: start; width: 100%; }
      .ep-list { max-height: min(56vw, 560px); }
      #page-watch:not(.on) { display: none !important; height: auto; }
      .nf-rail { gap: 14px; }
      .nf-rail img, .nf-card { min-width: 220px; }
    }
    @media (min-width: 1400px) {
      .wrap { padding: 28px 64px 56px; }
      .brand h1 { font-size: 2.7rem; }
      .hero { grid-template-columns: minmax(480px, 44%) 1fr; gap: 36px; }
      .hero-photo { height: min(68vh, 640px); }
      .desk-grid { grid-template-columns: 1.2fr .8fr; gap: 36px; }
      .cal .day { min-height: 96px; }
    }
    .desk-nav { display: none; gap: 10px; align-items: center; font-size: 1.08rem; margin-bottom: 8px; flex-wrap: wrap; }
    .desk-nav button { color: #F3EBE3; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: rgba(42,31,28,.35); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
    .desk-nav button.on { color: #fff; background: var(--rose); border-bottom: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
  
    @media (prefers-reduced-motion: no-preference) {
      .btn, .chip, .lang button, nav.tab button, .desk-nav button, .cal .day, .card, .modal-x {
        transition: transform .16s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
      }
      .btn:hover, .chip:hover { transform: translateY(-1px); }
      .btn:active, .chip:active, nav.tab button:active, .lang button:active, .cal .day:active {
        transform: scale(.97);
      }
      .page-enter { animation: seFade .28s ease; }
      .modal-bg { animation: seFade .2s ease; }
      .modal { animation: seUp .28s cubic-bezier(.22,.7,.3,1); }
    }
    @keyframes seFade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes seUp { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
    html, body {
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(196,91,106,.18), transparent 50%),
        radial-gradient(900px 500px at 100% 0%, rgba(232,180,184,.35), transparent 45%),
        linear-gradient(180deg, #F4C9D0 0%, #F3E6EA 42%, #F7EEF0 100%);
      background-attachment: fixed;
    }
    .btn, .chip { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset; }
    .chip.on, .lang button.on { box-shadow: 0 4px 12px rgba(196,91,106,.25); }
    .modal-x, #voteCloseX, #seClose {
      position: sticky; top: 8px; float: right; z-index: 30;
      pointer-events: auto;
    }
    .stat-box {
      margin-top: 16px; padding: 10px 12px; border-radius: 14px;
      background: rgba(251,246,241,.72); border: 1px solid var(--line);
      backdrop-filter: blur(8px);
    }
    .stat-box h3 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
    .stat-box .stat-total { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
    .stat-box table { width: 100%; border-collapse: collapse; font-size: .78rem; }
    .stat-box td { padding: 3px 0; border-bottom: 1px solid rgba(229,214,204,.6); }
    .stat-box td:last-child { text-align: right; font-weight: 700; }
    .stat-box .flag { margin-right: 6px; }
    .cal .day.has:hover { background: rgba(196,91,106,.08); }

  
    .ig-story-wrap { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; position: relative; z-index: 30; pointer-events: auto; }
    .ig-story {
      width: 86px; height: 86px; border-radius: 50%; padding: 3px;
      background: #ddd; border: 0; display: grid; place-items: center; cursor: pointer; pointer-events: auto; position: relative; z-index: 7;
    }
    .ig-story.has {
      cursor: pointer;
      background: conic-gradient(from 200deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
      box-shadow: 0 6px 16px rgba(238,42,123,.22);
    }
    .ig-story img {
      width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
      border: 3px solid #fff; display: block; background: #eee;
    }
    .ig-story-modal { max-width: min(460px, 96vw); padding-bottom: 12px; background: #FBF6F1; }
    /* v58: Story vuốt kiểu Headline */
    .ig-story-modal.igx { padding: 10px 10px 8px; background: #1a1210; color: #fff; width: min(440px, 96vw); }
    .igx-top { padding: 2px 4px 8px; }
    .igx-bars { display: flex; gap: 3px; margin: 0 0 8px; }
    .igx-bars i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.28); overflow: hidden; }
    .igx-bars i b { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
    .igx-head { display: flex; align-items: center; gap: 8px; }
    .igx-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; }
    .igx-head h3 { flex: 1; margin: 0; font: 700 .92rem "Source Sans 3", sans-serif; color: #fff; }
    .igx-x { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 1.5rem; line-height: 1; background: rgba(255,255,255,.12); }
    .igx-stage { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
    .igx-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
    .igx-track::-webkit-scrollbar { display: none; }
    .igx-track.drag { scroll-snap-type: none; cursor: grabbing; }
    .igx-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 9 / 16; max-height: 74vh; overflow: hidden; background: #000; display: grid; place-items: center; user-select: none; }
    .igx-media { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
    .igx-slide.fit .igx-media { object-fit: contain; }
    .igx-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.7); opacity: 0; }
    .igx-slide.fit .igx-bg { opacity: 1; }
    .igx-slide.is-vid .igx-media { object-fit: contain; background: #000; }
    .igx-wait { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
    .igx .ig-snd { z-index: 4; }
    .igx-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.88); color: #2a1f1c; font-size: 1.25rem; line-height: 34px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
    .igx-arrow.l { left: 8px; } .igx-arrow.r { right: 8px; }
    .igx-arrow[hidden] { display: none; }
    @media (hover: none) { .igx-arrow { display: none; } }
    .modal.igx img.igx-media, .modal.igx video.igx-media { background: transparent; border-radius: 0; width: 100%; height: 100%; }
    .modal.igx img.igx-bg { background: transparent; border-radius: 0; width: calc(100% + 40px); height: calc(100% + 40px); }
    .modal.igx .igx-head img { width: 30px; background: none; }
    .igx .ig-count { position: static; background: none; text-align: center; font-size: .78rem; padding: 0; color: rgba(255,255,255,.65); margin-top: 6px; }
    .ig-story-modal h3 { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; margin: 8px 0 8px; }
    .ig-stage { position: relative; background: #FBF6F1; border-radius: 12px; overflow: visible; height: auto; min-height: 0; }
    .ig-slide { width: 100%; background: #FBF6F1; }
    .ig-slide.slide-in-l { animation: seSlideL .28s ease; }
    .ig-slide.slide-in-r { animation: seSlideR .28s ease; }
    @keyframes seSlideL { from { opacity:.35; transform: translateX(-24px); } to { opacity:1; transform:none; } }
    @keyframes seSlideR { from { opacity:.35; transform: translateX(24px); } to { opacity:1; transform:none; } }
    .ig-slide img { width: 100%; height: auto; object-fit: contain; display: block; background: #FBF6F1; border-radius: 10px; }
    .ig-slide iframe { width: 100%; height: 42vh; min-height: 220px; border: 0; background: #111; display: block; border-radius: 10px; }
    .ig-slide { position: relative; }
    .ig-slide video.ig-vid { width: 100%; max-height: 70vh; display: block; border-radius: 10px; background: #111; object-fit: contain; }
    .ig-snd { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; display: grid; place-items: center; }
    .hs-snd { position: absolute; right: 10px; bottom: 34px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: .95rem; display: grid; place-items: center; }
    .ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); color: #2a1f1c; font-size: 1.15rem; line-height: 32px; text-align: center; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
    .ig-arrow.l { left: 6px; } .ig-arrow.r { right: 6px; }
    .ig-nav { position: absolute; inset: 0; display: flex; z-index: 3; pointer-events: none; }
    .ig-nav span { pointer-events: auto; width: 22%; flex: none; }
    .ig-nav span + span { margin-left: auto; }
    .fmt-pop { width: min(440px, 96vw); max-height: 92vh; overflow: auto; padding: 14px 12px 16px; }
    .fmt-pop h3 { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; line-height: 1.15; margin: 4px 36px 4px 0; }
    .fmt-pop .sub { margin: 0 0 4px; color: #6b534c; font-size: .92rem; }
    .fmt-pop .hint { margin: 0 0 10px; font-size: .82rem; }
    .fmt-stage { position: relative; background: #1a1210; border-radius: 12px; overflow: hidden; min-height: 220px; }
    .fmt-stage img, .fmt-stage video { width: 100%; max-height: 62vh; object-fit: contain; display: block; background: #111; }
    .fmt-stage iframe { width: 100%; height: min(62vh, 520px); border: 0; display: block; background: #111; }
    .fmt-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #2a1f1c; font-size: 1.25rem; line-height: 34px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .fmt-arrow.l { left: 8px; } .fmt-arrow.r { right: 8px; }
    .fmt-count { text-align: center; font-size: .78rem; margin-top: 8px; color: #7a6a64; }
    .ig-bars { display: flex; gap: 3px; margin: 0 0 8px; }
    .ig-bars i { flex: 1; height: 3px; border-radius: 99px; background: rgba(42,31,28,.18); }
    .ig-bars i.on { background: var(--rose); }
    .ig-count { text-align: center; font-size: .78rem; margin-top: 8px; color: #7a6a64; }
    .ig-nav { position: absolute; inset: 0; display: flex; z-index: 3; pointer-events: none; }
    .ig-nav span { flex: 1; }

  
    .fund-wrap { display: grid; gap: 12px; }
    .fund-top, .fund-list { background: #fff; border-radius: 14px; padding: 10px 12px; }
    .fund-top h3, .fund-list h3 { margin: 0 0 8px; font-size: .95rem; color: #7a3e48; }
    .fund-top ol, .fund-list ul { margin: 0; padding: 0; list-style: none; }
    .fund-top li, .fund-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0e6e1; font-size: .92rem; color: #8a4b55; }
    .fund-stage { position: relative; height: 420px; border-radius: 18px; overflow: hidden; background: #f6eee9; }
    .fund-stage img, .fund-vid { width: 100%; height: 420px; object-fit: contain; display: block; mix-blend-mode: multiply; }
    .fund-canvas { width: 100%; height: 420px; object-fit: contain; display: block; background: transparent; }
    .fund-fill { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
    .fund-fill .fund-vid { position: absolute; left: 0; bottom: 0; width: 100%; height: 420px; object-fit: contain; filter: none; }
    .fund-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; text-shadow: 0 1px 4px #000; font-weight: 700; }
    .fund-toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 8px; background: #2a1f1c; color: #fff; border-radius: 16px; padding: 6px 12px 6px 6px; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
    .fund-toast video { width: 72px; height: 96px; object-fit: cover; border-radius: 12px; mix-blend-mode: screen; background: transparent; }
    .fund-toast p { margin: 0; font-size: .86rem; line-height: 1.3; }

  
    .fund-rain { position: absolute; left: 18%; right: 18%; top: 0; height: 28%; overflow: hidden; pointer-events: none; z-index: 3; }
    .fund-coin { position: absolute; top: -16px; font-size: 16px; animation: coinFall 1.6s linear infinite; }
    @keyframes coinFall { to { transform: translateY(130px); opacity: .2; } }
    .fund-toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 8px; background: #2a1f1c; color: #fff; border-radius: 16px; padding: 6px 8px 6px 6px; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
    .fund-toast video { width: 72px; height: 96px; object-fit: cover; border-radius: 12px; mix-blend-mode: screen; background: transparent; }
    .fund-toast p { margin: 0; font-size: .86rem; line-height: 1.3; }
    .fund-toast button { border: 0; background: transparent; color: #fff; font-size: 1.2rem; line-height: 1; padding: 4px 6px; }

  
    .fund-stage { position: relative; height: auto; border-radius: 18px; overflow: hidden; background: #87c6ef; }
    .fund-vid-main { width: 100%; height: auto; display: block; }
    .fund-pixel { position: absolute; left: 0; right: 0; text-align: center; font-family: "Pixelify Sans", monospace; color: #fff; text-shadow: 2px 2px 0 #3a2418; letter-spacing: .3px; line-height: 1.45; }
    .fund-pixel.top { top: 10px; font-size: 16px; font-weight: 700; }
    .fund-pixel.bot { bottom: 10px; font-size: 15px; font-weight: 700; }
    .fund-head { font-family: "Pixelify Sans", monospace; font-size: 11px; line-height: 1.15; color: #7a3e48; text-align: center; white-space: nowrap; margin: 4px 0 8px; }

  
    .exp-bar { margin: 6px auto 0; width: 72%; height: 14px; border: 3px solid #3a2418; border-radius: 8px; background: #f4efe6; overflow: hidden; box-shadow: inset 0 2px 0 rgba(255,255,255,.7); }
    .exp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ff8fb8, #e85a8c); }

  
    /* professional pass */
    :root {
      --ivory: #F7F3EF;
      --espresso: #241C1A;
      --rose: #9E3D4C;
      --blush: #E7C4C8;
      --card: #FFFFFF;
      --line: #E8DDD6;
      --muted: #7A6A66;
    }
    html, body { background: #F6F1EC; color: var(--espresso); }
    body { background-image: radial-gradient(900px 320px at 50% -40px, #F8E4E7, transparent 70%); }
    .wrap { width: min(1080px, 100%); margin: 0 auto; }
    .topbar { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
    .brand h1 { font-size: 1.55rem; letter-spacing: .14em; font-weight: 600; color: #6B2430; }
    .brand em { letter-spacing: .08em; color: #A15A66; font-size: .92rem; }
    .lang { background: transparent; border-color: transparent; }
    .lang button.on { background: #6B2430; }
    .desk-nav { display: none; gap: 4px; margin-bottom: 8px; justify-content: flex-end; }
    .desk-nav button { color: var(--muted); font-weight: 650; border-radius: 999px; }
    .desk-nav button.on { background: #6B2430; color: #fff; }
    h2.sec { font-family: "Cormorant Garamond", serif; letter-spacing: .04em; color: #6B2430; }
    .hint { color: var(--muted); }
    .card, .t-card, .vote-card, .media-card {
      background: #fff; border: 1px solid var(--line); border-radius: 16px;
      box-shadow: 0 8px 24px rgba(70, 32, 40, .05);
    }
    .hero-photo { border-radius: 20px; box-shadow: 0 16px 40px rgba(70, 32, 40, .12); background: #1c1416; }
    nav.tab {
      background: rgba(255,255,255,.92); border-top: 1px solid var(--line);
      box-shadow: 0 -8px 24px rgba(70,32,40,.04);
    }
    nav.tab button.on { color: #6B2430; }
    button, .btn { transition: transform .15s ease, background .15s ease; }
    button:active { transform: scale(.98); }
    img { background: #f3ebe8; }
    #fbEditBtn { background: #6B2430 !important; }
    @media (min-width: 880px) {
      .wrap { width: min(1120px, calc(100% - 64px)); max-width: 1120px; margin: 0 auto; padding: 28px 0 64px; }
      .brand h1 { font-size: 1.8rem; }
      .desk-nav { gap: 6px; }
      .hero { max-width: 1120px; }
    }

    /* ===== performance pass ===== */
    /* blur nền rất tốn GPU khi cuộn (nhất là máy yếu) – nền đã gần như đục nên bỏ blur */
    nav.tab, .stat-box { backdrop-filter: none; -webkit-backdrop-filter: none; }
    nav.tab { background: rgba(255,255,255,.97); }
    /* danh sách dài: trình duyệt bỏ qua layout/paint các thẻ ngoài màn hình */
    .timeline > .t-card, .media-list > .t-card { content-visibility: auto; contain-intrinsic-size: auto 132px; }
    .nf-row { content-visibility: auto; contain-intrinsic-size: auto 230px; }
    .feed { content-visibility: auto; contain-intrinsic-size: auto 520px; }
    .card, .t-card, .vote-card, .media-card { box-shadow: 0 3px 12px rgba(70, 32, 40, .05); }
    .fund-vid-main { aspect-ratio: 1 / 1; background: #87c6ef; }
    .ot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
    @media (hover: none) { .nf-card:hover, .btn:hover, .chip:hover { transform: none; } }
    @media (min-width: 880px) {
      /* PC: bàn cờ 2048 và video quỹ không bị kéo giãn cả màn hình */
      .fund-wrap, #page-donate .fund-head { max-width: 640px; margin-left: auto; margin-right: auto; }
      .nf-card:hover { transform: translateY(-2px); }
    }
    /* ===== Trang Xem ===== */
    .watch-layout .ep-list { display: none; }
    .ot-row:empty { display: none; }
    body:not(.player-on) .watch-layout { gap: 0; }
    body.player-on .watch-layout .ep-list { display: grid; }
    body.player-on #watchHero { display: none; }
    .wh { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 480px; width: 100%; background: #1a1012; margin: 4px 0 18px; }
    .wh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1a1012; }
    .wh-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,11,12,.92) 0%, rgba(13,11,12,.5) 45%, rgba(13,11,12,.05) 80%), linear-gradient(0deg, rgba(13,11,12,.9), transparent 55%); }
    .wh-body { position: absolute; left: 0; bottom: 0; padding: 18px; max-width: 560px; }
    .wh-kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #E8B4B8; font-weight: 800; }
    .wh h3 { font-family: "Cormorant Garamond", serif; font-size: clamp(1.7rem, 4.2vw, 3.2rem); line-height: 1.02; color: #fff; margin: 6px 0 4px; }
    .wh-sub { color: #e6d6d1; font-size: .9rem; margin: 0 0 12px; }
    .wh-btns, .yt-fail-btns { display: flex; flex-wrap: wrap; gap: 8px; }
    .wh-btns > *, .yt-fail-btns > * { border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: .86rem; background: rgba(255,255,255,.16); color: #fff; border: 0; }
    .wh-btns .wh-play { background: #fff; color: #1a1012; }
    @media (max-width: 879px) { .wh { aspect-ratio: 4 / 3; } .wh-body { padding: 14px; } }
    .nf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .nf-head h3 { margin-bottom: 0; }
    .nf-arrows { display: none; gap: 6px; }
    .nf-arrows button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: #f3ebe3; font-size: 1.3rem; line-height: 1; }
    .nf-arrows button:hover { background: rgba(255,255,255,.22); }
    .nf-rail { scrollbar-width: none; scroll-padding-left: 2px; }
    .nf-rail::-webkit-scrollbar { display: none; }
    .nf-card { flex: 0 0 220px; border-radius: 14px; background: #17110f; transition: transform .2s ease, box-shadow .2s ease; }
    .nf-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .nf-card .nf-meta { padding: 8px 10px 11px; }
    .nf-card b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nf-card.on { outline: 2px solid #E8B4B8; outline-offset: -2px; }
    .nf-card:focus-visible, .nf-arrows button:focus-visible, .wh-btns > *:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    .yt-fail { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; background: rgba(13,11,12,.94); color: #f3ebe3; text-align: center; align-items: center; }
    .yt-fail p { max-width: 420px; font-size: .92rem; line-height: 1.45; }
    .hero-photo img[hidden] { display: none; }
    .hero-photo:has(img[hidden]) { background: radial-gradient(120% 90% at 30% 20%, #6B2430, #1c1416 70%); }
    @media (min-width: 880px) {
      .nf-arrows { display: flex; }
      .nf-card { flex-basis: 250px; }
      .nf-rail img, .nf-card { min-width: 0; }
      .nf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
      .wh-body { padding: 32px; }
    }
    /* ===== Sonya's 2048 – v4 ===== */
    #page-game { background: transparent; padding: 0; color: #3a2a2e; max-width: none; }
    .g2 { --g2-gap: 8px; --g2-accent: #9E3D4C; --g2-ink: #3a2a2e; --g2-muted: #8a6f76; position: relative; max-width: 520px; margin: 0 auto; padding: 4px 0 12px; }
    .g2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .g2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .g2-title { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; line-height: 1; color: #6B2430; margin: 0; }
    .g2-hint { font-size: .82rem; color: var(--g2-muted); margin: 6px 0 0; }
    .g2-user { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; padding: 7px 12px; background: #fff; border: 1px solid #ead9dd; color: var(--g2-ink); font-weight: 700; font-size: .82rem; }
    .g2-user::after { content: " ▾"; color: var(--g2-muted); }
    .g2-menu { position: absolute; right: 0; top: 44px; z-index: 40; background: #fff; border: 1px solid #ead9dd; border-radius: 12px; box-shadow: 0 10px 30px rgba(70,32,40,.15); padding: 6px; }
    .g2-menu button { display: block; width: 100%; padding: 10px 16px; border-radius: 8px; font-weight: 700; color: var(--g2-accent); text-align: left; }
    .g2-menu button:hover { background: #fbf1f3; }
    .g2-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
    .g2-sc { position: relative; background: #fff; border: 1px solid #ead9dd; border-radius: 14px; padding: 8px 10px; text-align: center; min-width: 0; }
    .g2-sc span { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--g2-muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .g2-sc b { display: block; font-size: 1.15rem; color: var(--g2-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .g2-plus { position: absolute; left: 0; right: 0; top: 4px; font-style: normal; font-weight: 800; font-size: .8rem; color: var(--g2-accent); opacity: 0; pointer-events: none; }
    .g2-plus.go { animation: g2plus .7s ease-out; }
    @keyframes g2plus { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
    .g2-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
    .g2-sp { flex: 1; }
    .g2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid #ead9dd; color: var(--g2-ink); font-weight: 700; font-size: .84rem; touch-action: manipulation; transition: background .15s, border-color .15s; }
    .g2-btn:hover { background: #fbf1f3; }
    .g2-btn:disabled { opacity: .4; cursor: default; }
    .g2-btn:focus-visible, .g2-board:focus-visible { outline: 2px solid var(--g2-accent); outline-offset: 2px; }
    .g2-icon { width: 40px; padding: 0; }
    .g2-icon.off { color: #b9a3a8; }
    .g2-new { color: var(--g2-accent); }
    .g2-primary { background: var(--g2-accent); border-color: var(--g2-accent); color: #fff; }
    .g2-primary:hover { background: #8a3241; }
    .g2-danger { color: #a3243a; border-color: #e8c0c8; }
    .g2-wide { width: 100%; min-height: 46px; font-size: .95rem; }
    @media (max-width: 420px) { .g2-bar .g2-btn span { display: none; } .g2-bar .g2-btn { width: 44px; padding: 0; } .g2-bar .g2-new span { display: inline; } .g2-bar .g2-new { width: auto; padding: 0 12px; } }
    /* bàn cờ: luôn vừa màn hình, không cần zoom */
    .g2-board { position: relative; width: max(260px, min(100%, calc(100dvh - 330px))); margin: 0 auto; aspect-ratio: 1; padding: var(--g2-gap); border-radius: 16px; background: #e9d3da; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
    .g2-grid, .g2-tiles { position: absolute; inset: var(--g2-gap); }
    .g2-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: var(--g2-gap); }
    .g2-grid i { background: #f6e8ec; border-radius: 8px; }
    .g2-tile { position: absolute; left: 0; top: 0; width: calc((100% - 4 * var(--g2-gap)) / 5); height: calc((100% - 4 * var(--g2-gap)) / 5);
      transform: translate3d(calc(var(--c) * (100% + var(--g2-gap))), calc(var(--r) * (100% + var(--g2-gap))), 0); transition: transform 95ms cubic-bezier(.2,.75,.3,1); z-index: 2; will-change: transform; backface-visibility: hidden; }
    .g2-face { width: 100%; height: 100%; border-radius: 8px; background-color: #c98a97; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: clamp(.7rem, 3.4vw, 1.2rem); box-shadow: 0 1px 2px rgba(70,32,40,.12); }
    .g2-tile:not(.img) .g2-face { background-image: none !important; }
    .g2-tile.img .g2-face span { display: none; }
    .g2-face.new { animation: g2new 180ms cubic-bezier(.3,1.4,.6,1) both; }
    .g2-face.pop { animation: g2pud 300ms ease-out both; z-index: 3; }
    .g2-tile:has(.pop) { z-index: 3; }
    @keyframes g2new { from { transform: scale(.6); opacity: .3; } to { transform: scale(1); opacity: 1; } }
    @keyframes g2pop { 0% { transform: scale(1); } 50% { transform: scale(1.07); } 100% { transform: scale(1); } }
    /* pudding: phồng ngang - dẹt - nảy lại, rất nhẹ */
    @keyframes g2pud { 0% { transform: scale(1, 1); } 28% { transform: scale(1.14, .88); } 52% { transform: scale(.94, 1.08); } 72% { transform: scale(1.04, .97); } 88% { transform: scale(.99, 1.01); } 100% { transform: scale(1, 1); } }
    @media (prefers-reduced-motion: reduce) { .g2-tile { transition: none; } .g2-face.new, .g2-face.pop, .g2-plus.go { animation: none; } }
    .g2-over { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; background: rgba(251,244,246,.9); text-align: center; padding: 16px; }
    .g2-over-t { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; color: #6B2430; font-weight: 700; }
    .g2-over-s { color: var(--g2-muted); font-weight: 700; margin-bottom: 8px; }
    .g2-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .g2-status { min-height: 18px; margin: 8px 0 0; text-align: center; font-size: .74rem; color: var(--g2-muted); }
    /* đăng nhập */
    .g2-gate { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; background: rgba(246,241,236,.97); border-radius: 16px; }
    .g2-gate[hidden], .g2-modal[hidden], .g2-menu[hidden], .g2-over[hidden], .g2-card label[hidden] { display: none !important; }
    .g2-card { width: min(380px, 100%); background: #fff; border: 1px solid #ead9dd; border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(70,32,40,.14); }
    .g2-card h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--g2-ink); }
    .g2-card p { font-size: .88rem; color: #6f585e; line-height: 1.45; margin: 0 0 14px; }
    .g2-card label { display: block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--g2-muted); }
    .g2-card label > span:first-child { display: block; margin-bottom: 5px; }
    /* 16px: iPhone không tự zoom khi chạm vào ô nhập */
    .g2-card input[type=text], .g2-card input[type=password], .g2-card input:not([type]), .g2-search { width: 100%; font-size: 16px; padding: 11px 12px; border: 1px solid #e3cfd4; border-radius: 10px; background: #fff; color: var(--g2-ink); font-family: inherit; }
    .g2-card input:focus, .g2-search:focus { outline: 2px solid rgba(158,61,76,.35); border-color: var(--g2-accent); }
    .g2-pw { display: flex; gap: 6px; }
    .g2-eye { flex: none; padding: 0 12px; border-radius: 10px; border: 1px solid #e3cfd4; color: var(--g2-muted); font-weight: 700; font-size: .8rem; }
    .g2-note { font-size: .74rem !important; margin: 5px 0 0 !important; color: var(--g2-muted) !important; }
    .g2-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
    .g2-check input { width: 18px; height: 18px; accent-color: var(--g2-accent); }
    .g2-err { min-height: 20px; margin: 10px 0 8px !important; color: #b4234a !important; font-weight: 600; }
    .g2-tabs { display: flex; gap: 4px; padding: 4px; background: #f6eef0; border-radius: 12px; margin-bottom: 4px; }
    .g2-tabs button { flex: 1; min-height: 36px; border-radius: 9px; font-weight: 700; font-size: .84rem; color: var(--g2-muted); }
    .g2-tabs button.on { background: #fff; color: var(--g2-accent); box-shadow: 0 1px 3px rgba(70,32,40,.12); }
    /* hộp thoại */
    .g2-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42,31,28,.45); }
    .g2-rank { max-height: min(80vh, 640px); display: flex; flex-direction: column; }
    .g2-rank-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .g2-x { width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; color: var(--g2-muted); }
    .g2-search { margin: 8px 0; }
    .g2-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
    .g2-list li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid #f3e7ea; font-size: .9rem; }
    .g2-list li.me { background: #fbf1f3; border-radius: 10px; font-weight: 700; }
    .g2-pos { width: 28px; text-align: center; color: var(--g2-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
    .g2-list li.top .g2-pos { color: var(--g2-accent); }
    .g2-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .g2-list b { font-variant-numeric: tabular-nums; }
    .g2-empty { justify-content: center; color: var(--g2-muted); }
    @media (min-width: 880px) { .g2 { padding-top: 8px; } .g2-board { width: min(100%, calc(100vh - 300px), 520px); } }
    /* ===== Trang Xem: tông hồng rượu vang (premium) ===== */
    #page-watch .nf-page {
      --wn-bg: #1a0910; --wn-card: #2a111b; --wn-line: rgba(255,214,222,.09); --wn-ink: #f8eaee; --wn-muted: #c9a5ae; --wn-accent: #f0a9b6;
      color: var(--wn-ink);
      background:
        radial-gradient(1100px 520px at 15% -8%, rgba(214,92,120,.28), transparent 62%),
        radial-gradient(800px 420px at 100% 10%, rgba(140,40,70,.25), transparent 60%),
        linear-gradient(180deg, #2b0d19 0%, #1f0a13 38%, #16070d 100%);
    }
    #page-watch .nf-page .sec { color: #f6cbd3; letter-spacing: .02em; }
    #page-watch .nf-row h3 { color: #f8dde3; font-size: 1.4rem; }
    #page-watch .nf-card { background: var(--wn-card); border: 1px solid var(--wn-line); color: var(--wn-ink); }
    #page-watch .nf-card small { color: var(--wn-muted); opacity: 1; }
    #page-watch .nf-card.on { outline-color: var(--wn-accent); }
    #page-watch .nf-arrows button { background: rgba(255,214,222,.1); color: var(--wn-ink); }
    #page-watch .wh { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
    #page-watch .wh-shade { background: linear-gradient(90deg, rgba(26,9,16,.94) 0%, rgba(26,9,16,.55) 45%, rgba(26,9,16,.05) 80%), linear-gradient(0deg, rgba(26,9,16,.92), transparent 55%); }
    #page-watch .wh-kicker { color: var(--wn-accent); }
    #page-watch .ep-list { background: rgba(255,214,222,.05); border-color: var(--wn-line); }
    #page-watch .ep { background: rgba(255,214,222,.06); }
    #page-watch .ep b { color: var(--wn-accent); }
    #page-watch .ep.on { background: rgba(214,92,120,.32); border-color: var(--wn-accent); }
    #page-watch .player-wrap { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
    #page-watch .ot-box { background: var(--wn-card); }
    /* rail: mờ dần ở mép phải như Netflix */
    @media (min-width: 880px) {
      #page-watch .nf-page { border-radius: 22px; margin: 0; padding: 22px 26px 32px; }
      #page-watch .nf-rail { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
      #page-watch .nf-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 0 1px rgba(240,169,182,.35); }
    }
    /* lịch phỏng vấn / livestream trên nền tối */
    #page-watch #watchMedia .card { background: rgba(255,214,222,.045); border: 1px solid var(--wn-line); box-shadow: none; color: var(--wn-ink); }
    #page-watch #watchMedia .t-card { background: rgba(255,214,222,.05); border: 1px solid var(--wn-line); color: var(--wn-ink); }
    #page-watch #watchMedia .t-card strong { color: var(--wn-ink); }
    #page-watch #watchMedia .hint { color: var(--wn-muted); font-weight: 600; }
    #page-watch #watchMedia .cal .dow { color: var(--wn-accent); }
    #page-watch #watchMedia .cal .day { background: rgba(255,214,222,.05); border-color: var(--wn-line); }
    #page-watch #watchMedia .cal .day b { color: #f6cbd3; }
    #page-watch #watchMedia .cal .day.has { outline-color: var(--wn-accent); }
    #page-watch #watchMedia .cal .day.empty { background: transparent; border-color: transparent; }
    #page-watch #watchMedia .cal .day img { background: #24101a; }
    #page-watch #watchMedia .cal-nav select, #page-watch #watchMedia .cal-nav button, #page-watch #watchMedia .media-search {
      background: rgba(255,214,222,.07); color: var(--wn-ink); border-color: var(--wn-line); }
    #page-watch #watchMedia .cal-nav select option { color: #2a1f1c; }
    #page-watch #watchMedia .media-search::placeholder { color: var(--wn-muted); }
    #page-watch #watchMedia .chip { background: rgba(255,214,222,.06); border-color: rgba(240,169,182,.4); color: var(--wn-ink); }
    #page-watch #watchMedia .chip.on { background: #b84a62; border-color: #f0a9b6; }
    #page-watch .t-card .thumb.av, #page-watch .cal .day img[src*="unavatar"], #page-watch .cal .day img[src*="profile_images"] { border-radius: 50%; object-fit: cover; }
    #page-watch #watchMedia .cal .day img[src*="unavatar"], #page-watch #watchMedia .cal .day img[src*="profile_images"] { width: 34px; height: 34px; margin: 2px auto 0; }
    /* ===== Trình xem ảnh trong hộp sự kiện ===== */
    html.modal-open, html.modal-open body { overscroll-behavior: none; }
    .modal-bg, .modal { overscroll-behavior: contain; }
    .evg { position: relative; margin: 0 0 12px; border-radius: 14px; overflow: hidden; background: #160d10; }
    .evv { display: grid; gap: 8px; margin: 0 0 12px; }
    .evv video { width: 100%; max-height: 70vh; border-radius: 12px; background: #160d10; display: block; }
    .evg-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
      overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pinch-zoom; cursor: grab; }
    .evg-track::-webkit-scrollbar { display: none; }
    .evg-track.drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
    .evg-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center;
      aspect-ratio: 4 / 5; max-height: min(64vh, 560px); background: #160d10; }
    .evg-slide img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; user-select: none; -webkit-user-drag: none; }
    .evg-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #2a1f1c;
      box-shadow: 0 4px 14px rgba(0,0,0,.3); touch-action: manipulation; transition: opacity .2s, transform .15s; }
    .evg-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
    .evg-nav.prev { left: 10px; } .evg-nav.next { right: 10px; }
    .evg-nav:active { transform: translateY(-50%) scale(.92); }
    .evg-nav[hidden] { display: flex; opacity: 0; pointer-events: none; }
    .evg-count { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 11px; border-radius: 999px;
      background: rgba(20,10,14,.78); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums;
      box-shadow: 0 2px 8px rgba(0,0,0,.35); }
    .evg-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
    .evg-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.45); transition: transform .2s, background .2s; }
    .evg-dots i.on { background: #fff; transform: scale(1.3); }
    @media (hover: hover) { .evg-nav { opacity: .85; } .evg:hover .evg-nav:not([hidden]) { opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { .evg-track { scroll-behavior: auto; } }
    /* ===== Ảnh Headline (trang chủ) ===== */
    .hs { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 20px; overflow: hidden;
      background: radial-gradient(120% 90% at 30% 20%, #6B2430, #1c1416 70%); box-shadow: 0 18px 44px rgba(70,32,40,.18); }
    .hs-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
      scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
    .hs-track::-webkit-scrollbar { display: none; }
    .hs-track.drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
    .hs-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; background: #1c1416; }
    .hs-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; background: transparent; user-select: none; -webkit-user-drag: none; }
    .hs-slide.fit .hs-img { object-fit: contain; object-position: center; }
    .hs-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 0; border-radius: 50%; background: rgba(28,20,22,.55); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 8px 24px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .2s; }
    .hs-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
    .hs-play:hover { transform: scale(1.06); }
    .hs-vid { background: radial-gradient(120% 90% at 30% 20%, #6B2430, #1c1416 70%); }
    .hs-frame { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; background: #000; }
    .hs-slide.playing .hs-play { display: none; }
    .hs.vplay .hs-nav { z-index: 6; }
    .hs.vplay .hs-cap, .hs.vplay .hs-dots, .hs.vplay .hs-count { display: none; }
    .hs-close { position: absolute; z-index: 5; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; cursor: pointer; }
    .hs-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) saturate(1.15) brightness(.8); transform: translateZ(0); background: transparent; }
    .hs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #2a1f1c; box-shadow: 0 4px 14px rgba(0,0,0,.3);
      touch-action: manipulation; transition: opacity .2s, transform .15s; }
    .hs-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
    .hs-nav.prev { left: 12px; } .hs-nav.next { right: 12px; }
    .hs-nav:active { transform: translateY(-50%) scale(.92); }
    .hs-nav[hidden] { display: flex; opacity: 0; pointer-events: none; }
    .hs-count { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px; background: rgba(20,10,14,.72);
      color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
    .hs-count[hidden] { display: none; }
    .hs-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
      padding: 56px 16px 30px; background: linear-gradient(transparent, rgba(20,10,12,.78)); pointer-events: none; }
    .hs-cap-t { color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; line-height: 1.15; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.4); word-break: break-word; }
    .hs .hero-ev-btn { pointer-events: auto; flex: none; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: .84rem; background: #fff; color: #6B2430; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
    .hs .hero-ev-btn[hidden] { display: none; }
    .hs-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
    .hs-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: transform .2s, background .2s; }
    .hs-dots i.on { background: #fff; transform: scale(1.3); }
    @media (hover: hover) { .hs-nav { opacity: 0; } .hs:hover .hs-nav:not([hidden]) { opacity: 1; } }
    @media (min-width: 880px) {
      .hero { grid-template-columns: minmax(380px, 1.05fr) 1fr; align-items: center; }
      .hs { aspect-ratio: 4 / 5; max-height: min(80vh, 720px); width: 100%; }
      .hs-cap-t { font-size: 1.55rem; }
    }
    @media (prefers-reduced-motion: reduce) { .hs-track { scroll-behavior: auto; } }
    /* ===== Trang Donation ===== */
    #page-donate { max-width: 640px; margin: 0 auto; }
    .fd-head { text-align: center; margin: 6px 0 16px; }
    .fd-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9E3D4C; margin: 0 0 6px; }
    .fd-sub { margin: 6px 0 0; font-size: .95rem; color: #8a6f76; font-weight: 600; }
    .fd-title { font-family: "Cormorant Garamond", serif; font-weight: 700; color: #6B2430; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; letter-spacing: .01em; margin: 0; text-wrap: balance; }
    .fd-stage { position: relative; aspect-ratio: 1 / 1; height: auto; border-radius: 22px; overflow: hidden; background: #87c6ef; box-shadow: 0 18px 44px rgba(70,32,40,.16); }
    .fd-stage .fund-vid-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .fd-stage.novid { background: linear-gradient(180deg, #9fd3f2, #6fb5e4); }
    .fd-level { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(42,24,30,.72); color: #fff;
      font-family: "Pixelify Sans", ui-monospace, monospace; font-size: .9rem; letter-spacing: .02em; }
    .fd-level b { color: #ffd36b; }
    .fd-prog { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 10px 12px 12px; border-radius: 14px; background: rgba(42,24,30,.72); color: #fff; }
    .fd-prog-row { display: flex; justify-content: space-between; align-items: baseline; font-family: "Pixelify Sans", ui-monospace, monospace; font-size: .9rem; margin-bottom: 7px; }
    .fd-prog-row b { color: #ffd36b; font-size: 1rem; }
    .fd-bar { width: 100%; margin: 0; height: 12px; border-width: 2px; }
    .fd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .fd-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: center; }
    .fd-stats span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6f76; }
    .fd-stats b { display: block; font-size: 1.05rem; color: #3a2a2e; font-variant-numeric: tabular-nums; }
    .fd-top { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
    .fd-top h3 { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: #6B2430; margin: 0 0 6px; }
    .fd-top ol { list-style: none; margin: 0; padding: 0; }
    .fd-top li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3e7ea; font-size: .92rem; }
    .fd-top li:last-child { border-bottom: 0; }
    .fd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #3a2a2e; }
    .fd-top li b { color: #9E3D4C; font-variant-numeric: tabular-nums; }
    .fd-empty { justify-content: center; color: #8a6f76; }
    /* ===== Trang chủ: bố cục thẻ ===== */
    .hero-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
    /* nút Daily Tarot */
    .tarot-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border-radius: 20px; text-decoration: none; color: #fff;
      background: linear-gradient(115deg, #4A0E18 0%, #6B2430 38%, #9E3D4C 70%, #E07A8C 100%); box-shadow: 0 10px 26px rgba(107,36,48,.28); isolation: isolate;
      transform: translateZ(0); -webkit-tap-highlight-color: transparent; transition: transform .2s, box-shadow .2s; }
    @media (hover: hover) { .tarot-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(107,36,48,.34); } }
    .tarot-cta:active { transform: scale(.985); }
    /* sao lấp lánh: chỉ đổi opacity */
    .tarot-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
      background-image: radial-gradient(1.6px 1.6px at 12% 30%, #fff, transparent), radial-gradient(1.2px 1.2px at 28% 75%, #ffe9c9, transparent), radial-gradient(1.8px 1.8px at 62% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 70%, #ffd9e2, transparent), radial-gradient(1.5px 1.5px at 92% 35%, #fff, transparent);
      animation: tcTw 2.6s ease-in-out infinite alternate; will-change: opacity; }
    /* vệt sáng lướt qua: dải mềm, chỉ đổi transform */
    .tarot-cta::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%; z-index: -1; pointer-events: none;
      background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 35%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.06) 65%, rgba(255,255,255,0) 100%);
      transform: translate3d(-120%, 0, 0); animation: tcShine 5s ease-in-out infinite; will-change: transform; }
    @keyframes tcTw { to { opacity: .25; } }
    @keyframes tcShine { 0%, 60% { transform: translate3d(-120%, 0, 0); } 100% { transform: translate3d(220%, 0, 0); } }
    /* 3 lá bài xòe quạt, cùng "thở" nhẹ */
    .tc-cards { position: relative; width: 50px; height: 46px; flex: none; }
    .tc-cards i { position: absolute; left: 13px; top: 3px; width: 24px; height: 38px; border-radius: 5px; border: 2px solid #fff; box-sizing: border-box;
      background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.7) 0 22%, transparent 24%), linear-gradient(160deg, #d9c8ff, #ffb7c5 60%, #ffd6a5);
      box-shadow: 0 3px 8px rgba(0,0,0,.25); transform-origin: 50% 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; outline: 1px solid transparent; will-change: transform; }
    /* xòe quạt bằng XOAY quanh chân lá bài: góc xoay nội suy mượt trên mọi máy; dịch vài px chậm rãi thì điện thoại làm tròn pixel -> nhảy từng nấc (giật) */
    .tc-cards i:nth-child(1) { left: 6px; top: 5px; transform: rotate(-14deg); animation: tcF1 4s cubic-bezier(.45,0,.55,1) infinite; }
    .tc-cards i:nth-child(2) { z-index: 1; transform: rotate(0deg) scale(1); animation: tcF2 4s cubic-bezier(.45,0,.55,1) infinite; }
    .tc-cards i:nth-child(3) { left: 20px; top: 5px; transform: rotate(14deg); animation: tcF3 4s cubic-bezier(.45,0,.55,1) infinite; }
    @keyframes tcF1 { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(-24deg); } }
    @keyframes tcF2 { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(0deg) scale(1.07); } }
    @keyframes tcF3 { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(24deg); } }
    .tc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
    .tc-txt b { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; line-height: 1.05; letter-spacing: .01em; }
    .tc-txt small { font-size: .82rem; font-weight: 700; opacity: .92; line-height: 1.3; }
    .tc-go { flex: none; background: #fff; color: #6B2430; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 8px 14px; box-shadow: 0 4px 12px rgba(0,0,0,.18); white-space: nowrap; }
    @media (max-width: 420px) { .tarot-cta { padding: 10px 12px; gap: 10px; } .tc-txt b { font-size: 1.25rem; } .tc-txt small { font-size: .78rem; } .tc-go { padding: 7px 11px; } }
    .tarot-cta.off::before, .tarot-cta.off::after, .tarot-cta.off .tc-cards i { animation-play-state: paused; }
    @media (prefers-reduced-motion: reduce) { .tarot-cta::before, .tarot-cta::after, .tc-cards i { animation: none; } }
    .hero-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #9E3D4C; margin: 0; }
    .hero-copy { font-family: "Cormorant Garamond", serif; font-size: clamp(1.6rem, 5.4vw, 2.3rem); line-height: 1.12; color: #4A0E18; margin: 0; text-wrap: balance; }
    .hero-side .ig-story-wrap { margin: 0; }
    .home-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-top: 16px; box-shadow: 0 10px 30px rgba(70,32,40,.06); min-width: 0; }
    .home-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: clamp(1.35rem, 4.6vw, 1.7rem) !important; color: #6B2430; }
    .home-h::before { content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: linear-gradient(180deg, #E07A8C, #6B2430); flex: none; }
    .home-h-xl { font-size: clamp(1.9rem, 7.5vw, 2.6rem) !important; letter-spacing: .01em; line-height: 1; }
    .home-h-xl::before { width: 6px; }
    .live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0435b; box-shadow: 0 0 0 0 rgba(224,67,91,.6); animation: livePulse 1.6s infinite; flex: none; }
    @keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(224,67,91,.55); } 70% { box-shadow: 0 0 0 10px rgba(224,67,91,0); } 100% { box-shadow: 0 0 0 0 rgba(224,67,91,0); } }
    /* Sắp diễn ra */
    .up-main { display: grid; grid-template-columns: minmax(118px, 38%) 1fr; gap: 14px; align-items: center; }
    .up-thumb, .up-mini { position: relative; overflow: hidden; background: #2a1a1f; }
    .up-thumb { aspect-ratio: 4 / 5; border-radius: 16px; }
    .up-mini { width: 54px; height: 54px; border-radius: 12px; flex: none; }
    .up-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(16px) brightness(.85); background: transparent; }
    .up-thumb .up-img, .up-mini .up-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
    .up-noimg { background: linear-gradient(135deg, #E8B4B8, #9E3D4C); }
    .up-body { min-width: 0; }
    .up-body h3 { font-family: "Cormorant Garamond", serif; font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.15; color: #2a1f1c; margin: 8px 0 4px; word-break: break-word; }
    .up-body .hint { margin: 0 0 8px; }
    .up-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .up-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; padding: 4px 8px; border-radius: 12px; background: #6B2430; color: #fff; line-height: 1; }
    .up-date b { font-size: 1.25rem; }
    .up-date i { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .08em; margin-top: 2px; opacity: .85; }
    .up-tag { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9E3D4C; background: #fbeef1; padding: 5px 9px; border-radius: 999px; }
    .up-main.live .up-tag { background: #e0435b; color: #fff; }
    .up-next { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f3e7ea; }
    .up-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 6px; border-radius: 14px; transition: background .15s; }
    .up-row:hover { background: #fbf1f3; }
    .up-row-t { flex: 1; min-width: 0; }
    .up-row-t b { display: block; font-size: .92rem; color: #2a1f1c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .up-row-t small { display: block; font-size: .78rem; color: #8a6f76; margin-top: 2px; }
    .up-go { font-size: 1.4rem; color: #c9a5ae; }
    /* vote trong thẻ */
    .home-votes .card { box-shadow: none; background: #fdf8f9; }
    .home-cal .card { box-shadow: none; border: 0; padding: 0 !important; }
    .home-cal .credit-bar { margin: 12px 0 0; }
    /* Lượt truy cập */
    .vs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .vs-head h3 { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: #6B2430; margin: 0; letter-spacing: 0; text-transform: none; }
    .vs-total { font-size: .85rem; color: #8a6f76; font-weight: 700; }
    .vs-total b { font-size: 1.25rem; color: #2a1f1c; font-variant-numeric: tabular-nums; margin-left: 4px; }
    .vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .vs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #fbf1f3; border: 1px solid #f1dde2; font-size: .78rem; font-weight: 700; color: #6B2430; white-space: nowrap; }
    .vs-chip b { color: #2a1f1c; font-variant-numeric: tabular-nums; }
    .vs-chip .flag { margin: 0; font-size: 1rem; line-height: 1; }
    .vs-more { color: #8a6f76; }
    @media (min-width: 880px) {
      .home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
      .home-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
      .home-card { padding: 20px 22px; }
      .up-main { grid-template-columns: 200px 1fr; gap: 20px; }
    }
    /* ===== Kho video (mục Xem) ===== */
    #page-watch .mk { margin-top: 26px; }
    .mk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
    .mk-head .sec { margin: 0 !important; color: #f6cbd3 !important; font-size: clamp(1.35rem, 4.6vw, 1.8rem) !important; }
    .mk-view { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,214,222,.08); border: 1px solid rgba(255,214,222,.12); }
    .mk-view button { padding: 7px 14px; border-radius: 999px; color: #c9a5ae; font-weight: 700; font-size: .82rem; }
    .mk-view button.on { background: #f0a9b6; color: #2a0d18; }
    .mk-search { position: relative; }
    #page-watch .mk-search .media-search { width: 100%; padding: 12px 96px 12px 14px; border-radius: 14px; font-size: 16px; background: rgba(255,214,222,.07); color: #f8eaee; border: 1px solid rgba(255,214,222,.14); margin: 0; }
    .mk-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 700; color: #c9a5ae; pointer-events: none; }
    .mk-chips, .mk-years { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; }
    .mk-chips::-webkit-scrollbar, .mk-years::-webkit-scrollbar { display: none; }
    .mk-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,214,222,.06); border: 1px solid rgba(240,169,182,.28); color: #f8eaee; font-weight: 700; font-size: .82rem; }
    .mk-chip i { font-style: normal; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: rgba(255,214,222,.12); color: #f0a9b6; }
    .mk-chip.on { background: #b84a62; border-color: #f0a9b6; }
    .mk-chip.on i { background: rgba(255,255,255,.2); color: #fff; }
    .mk-year { flex: none; padding: 5px 11px; border-radius: 999px; color: #c9a5ae; font-weight: 700; font-size: .78rem; border: 1px solid transparent; }
    .mk-year.on { color: #fff; border-color: rgba(240,169,182,.5); background: rgba(255,214,222,.08); }
    .mc-month { margin: 18px 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f0a9b6; }
    .mc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    @media (min-width: 640px) { .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (min-width: 1000px) { .mc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
    .mc { display: flex; flex-direction: column; text-align: left; min-width: 0; border-radius: 14px; overflow: hidden; background: #2a111b; border: 1px solid rgba(255,214,222,.09); color: #f8eaee; transition: transform .15s, box-shadow .15s; }
    .mc:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(240,169,182,.3); }
    .mc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a0910; }
    .mc-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
    .mc-thumb.av .mc-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) brightness(.6) saturate(1.2); background: transparent; }
    .mc-thumb.av .mc-img { width: 46%; height: auto; aspect-ratio: 1; margin: 7% auto 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
    .mc-plat, .mc-dur { position: absolute; z-index: 2; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(15,6,10,.78); color: #fff; font-size: .66rem; font-weight: 800; }
    .mc-plat { left: 6px; } .mc-dur { right: 6px; font-variant-numeric: tabular-nums; }
    .mc-play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.88); color: #2a0d18; font-size: .85rem; opacity: 0; transition: opacity .15s; }
    .mc:hover .mc-play { opacity: 1; }
    .mc-body { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 11px; min-width: 0; }
    .mc-kind { align-self: flex-start; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255,214,222,.1); color: #f0a9b6; }
    .mc-kind.k-perf { background: rgba(255,196,92,.16); color: #ffd36b; }
    .mc-kind.k-livestream, .mc-kind.k-taobao { background: rgba(255,90,110,.16); color: #ff9aa8; }
    .mc-kind.k-fanproj { background: rgba(150,200,255,.14); color: #a9d4ff; }
    .mc-title { font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
    .mc-sub { font-size: .72rem; color: #c9a5ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* ===== "Mới cập nhật" đầu tab Xem ===== */
    .wnn { position: relative; margin: 4px 0 18px; padding: 14px 14px 12px; border-radius: 18px; color: #f8eaee;
      background: linear-gradient(135deg, rgba(184,74,98,.38), rgba(42,17,27,.92) 55%), #2a111b; border: 1px solid rgba(240,169,182,.35); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
    .wnn-head { display: flex; align-items: center; gap: 10px; }
    .wnn-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff6b86; box-shadow: 0 0 0 0 rgba(255,107,134,.6); animation: wnnPulse 2.4s ease-out infinite; }
    @keyframes wnnPulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,134,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,107,134,0); } }
    .wnn-head b { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; line-height: 1; letter-spacing: .01em; }
    .wnn-head small { color: #f0a9b6; font-weight: 800; font-size: .74rem; letter-spacing: .04em; }
    .wnn-tog { margin-left: auto; flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(255,214,222,.1); color: #f8eaee; font-weight: 700; font-size: .74rem; border: 1px solid rgba(255,214,222,.18); }
    .wnn-list { display: grid; gap: 8px; margin-top: 12px; }
    @media (min-width: 900px) { .wnn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .wnn-it { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 7px; border-radius: 13px; text-align: left; color: inherit;
      background: rgba(15,6,10,.45); border: 1px solid rgba(255,214,222,.08); transition: background .15s, border-color .15s, transform .15s; }
    .wnn-it:hover { background: rgba(255,214,222,.09); border-color: rgba(240,169,182,.4); }
    .wnn-it:active { transform: scale(.99); }
    .wnn-th { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #1a0910; }
    .wnn-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .wnn-th.av img { width: 56%; height: auto; aspect-ratio: 1; margin: 5% auto 0; border-radius: 50%; }
    .wnn-new { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 5px; background: #ff4f73; color: #fff; font-style: normal; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
    .wnn-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
    .wnn-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .wnn-meta .mc-kind { flex: none; }
    .wnn-meta small { color: #c9a5ae; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wnn-tx b { font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
    .wnn-ev { color: #e3c3cb; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wnn-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #6B1E2C; font-weight: 900; }
    .wnn-more { display: block; margin: 10px auto 0; padding: 6px 14px; border-radius: 999px; color: #f8eaee; font-weight: 700; font-size: .78rem; background: rgba(255,214,222,.08); border: 1px solid rgba(255,214,222,.18); }
    .wnn.min { padding: 10px 14px; }
    @media (max-width: 420px) { .wnn-th { width: 88px; } .wnn-go { display: none; } .wnn-head b { font-size: 1.2rem; } }
    @media (prefers-reduced-motion: reduce) { .wnn-dot { animation: none; } }
    .mc.mc-flash { animation: mcFlash 2.4s ease-out; }
    @keyframes mcFlash { 0%, 35% { box-shadow: 0 0 0 3px #ff6b86, 0 0 34px rgba(255,107,134,.55); transform: translateY(-3px); } 100% { box-shadow: 0 0 0 0 rgba(255,107,134,0); transform: none; } }
    .mc-vers { display: flex; flex-wrap: wrap; gap: 4px; }
    .mc-vers i { font-style: normal; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255,214,222,.2); color: #e6cfd5; }
    .mc-more { display: block; margin: 16px auto 0; padding: 10px 22px; border-radius: 999px; background: rgba(255,214,222,.1); border: 1px solid rgba(240,169,182,.35); color: #f8eaee; font-weight: 800; }
    .mc-empty { text-align: center; padding: 24px 0; color: #c9a5ae !important; }
    #page-watch .mk .cal-nav { margin-top: 12px; }
    #page-watch .mk .day-more { display: block; font-size: .62rem; font-weight: 800; color: #f0a9b6; text-align: center; }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    }
