* { box-sizing: border-box; border: none !important; outline: none; }
      
@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 35px) scale(1.08); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.06); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 40px) scale(1.1); }
}
body {
  background: radial-gradient(circle at 20% 15%, #111827 0%, #070b14 55%, #03050a 100%);
  color: #f8fafc;
  min-height: 100vh;
}
.bg-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.42;
}
.orb-1 {
  width: 560px; height: 560px;
  top: -14%; left: -8%;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation: floatOrb1 16s ease-in-out infinite;
}
.orb-2 {
  width: 600px; height: 600px;
  bottom: -16%; right: -8%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation: floatOrb2 19s ease-in-out infinite;
}
.orb-3 {
  width: 440px; height: 440px;
  top: 38%; left: 52%;
  background: radial-gradient(circle, #ec4899 0%, transparent 72%);
  opacity: 0.28;
  animation: floatOrb3 22s ease-in-out infinite;
}

      body {
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
        color: #f8fafc;
      }
      .app-shell { position: relative; z-index: 1; min-height: 100vh; }
      header {
        display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
        padding: 13px 28px;
        background: rgba(15, 23, 42, 0.68);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        position: sticky; top: 0; z-index: 40;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
      }
      .header-left {
        display: flex; align-items: center; justify-self: start; min-width: 0;
      }
      .brand-stack {
        display: flex; flex-direction: column; text-decoration: none; line-height: 1.05;
      }
      .brand-domain {
        font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
        color: #cbd5e1;
      }
      .brand-main {
        font-size: 1.52rem; font-weight: 900; letter-spacing: 0.06em;
        background: linear-gradient(115deg, #a5b4fc 0%, #38bdf8 52%, #34d399 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      }
      .nav-pills {
        display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        gap: 0; align-items: stretch; justify-self: center;
        background: rgba(30, 41, 59, 0.62); padding: 0; border-radius: 999px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        overflow: hidden;
      }
      .nav-pills .tab {
        border-radius: 0;
        margin: 0;
        padding: 9px 20px;
        justify-content: center;
        text-align: center;
      }
      .nav-pills .tab:first-child { border-radius: 999px 0 0 999px; }
      .nav-pills .tab:last-child { border-radius: 0 999px 999px 0; }
      .nav-pills .tab:only-child { border-radius: 999px; }
      .header-desktop-right {
        display: flex; align-items: center; gap: 10px; justify-self: end; position: relative;
      }
      .hdr-avatar-btn {
        display: inline-flex; align-items: center; gap: 9px;
        padding: 4px 13px 4px 4px; border-radius: 999px;
        background: rgba(30, 41, 59, 0.72); color: #e2e8f0;
        cursor: pointer; transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        max-width: 100%;
      }
      .hdr-welcome-txt {
        font-size: 0.85rem; font-weight: 500; color: #cbd5e1;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 185px;
      }
      .hdr-welcome-txt strong {
        color: #f8fafc; font-weight: 700;
      }
      @media (max-width: 980px) {
        .hdr-welcome-txt { max-width: 130px; font-size: 0.8rem; }
      }
      .hdr-avatar-btn:hover {
        background: rgba(51, 65, 85, 0.85);
        transform: translateY(-1px);
      }
      .hdr-avatar-btn.is-profile-active {
        box-shadow: 0 0 0 2px #38bdf8, 0 6px 18px rgba(56, 189, 248, 0.35);
      }
      .hdr-avatar-circle {
        width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
        display: inline-flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
        color: #fff; font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em;
        overflow: hidden;
      }
      .hdr-avatar-circle img {
        width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
      }
      .hdr-account-menu {
        display: none; position: absolute; right: 0; top: calc(100% + 10px);
        width: 244px; padding: 8px; border-radius: 18px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        z-index: 60; flex-direction: column; gap: 3px;
      }
      .hdr-account-menu.open { display: flex; }
      .hdr-menu-user {
        display: flex; align-items: center; gap: 11px;
        padding: 10px 10px 12px; margin-bottom: 4px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
        text-decoration: none; color: inherit;
      }
      .hdr-menu-item {
        display: flex; align-items: center; gap: 10px;
        padding: 9px 12px; border-radius: 12px;
        color: #e2e8f0; text-decoration: none; font-size: 0.88rem; font-weight: 600;
        transition: background 0.14s ease, color 0.14s ease;
      }
      .hdr-menu-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
      .hdr-account-menu button.hdr-menu-item, button.hdr-menu-item {
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
        border: 0;
        font-family: inherit;
        text-align: left;
        cursor: pointer;
      }
      .hdr-account-menu button.hdr-menu-item:hover, button.hdr-menu-item:hover,
      .hdr-account-menu button.hdr-menu-item:focus-visible, button.hdr-menu-item:focus-visible {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        outline: none;
      }
      .hdr-menu-item.active, button.hdr-menu-item.active {
        background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
        color: #fff;
        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
      }
      .hdr-menu-item.danger { color: #fda4af; margin-top: 3px; border-top: 1px solid rgba(148, 163, 184, 0.14) !important; padding-top: 10px; border-radius: 0 0 12px 12px; }
      .hdr-menu-item.danger:hover { background: rgba(244, 63, 94, 0.18); color: #fecdd3; }
      .header-mobile-actions {
        display: none;
        align-items: center;
        gap: 10px;
      }
      .mobile-menu-btn {
        display: none;
        width: 42px; height: 42px; border-radius: 13px;
        background: rgba(30, 41, 59, 0.78); color: #f8fafc;
        cursor: pointer;
        align-items: center; justify-content: center; flex-direction: column; gap: 5px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        transition: background 0.16s ease, transform 0.12s ease;
      }
      .mobile-menu-btn:active { transform: scale(0.95); }
      .hamburger-line {
        width: 19px; height: 2px; border-radius: 999px;
        background: #f8fafc; display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
      }
      .mobile-nav-backdrop {
        position: fixed; inset: 0;
        background: rgba(2, 6, 23, 0.68);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
        z-index: 90;
      }
      .mobile-nav-backdrop.open {
        opacity: 1; visibility: visible; pointer-events: auto;
      }
      .mobile-nav-drawer {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(330px, 86vw);
        background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 28, 0.99) 100%);
        backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
        box-shadow: -18px 0 48px rgba(0, 0, 0, 0.65), inset 1px 0 0 rgba(255, 255, 255, 0.12);
        padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        display: flex; flex-direction: column; gap: 10px;
        transform: translateX(104%); visibility: hidden;
        transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s ease;
        z-index: 100;
        overflow-y: auto;
      }
      .mobile-nav-drawer.open {
        transform: translateX(0); visibility: visible;
      }
      .mobile-drawer-top {
        display: flex; align-items: center; justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
      }
      .mobile-drawer-close {
        width: 38px; height: 38px; border-radius: 11px;
        background: rgba(30, 41, 59, 0.75); color: #e2e8f0;
        font-size: 1.05rem; font-weight: 800; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
      }
      .mobile-drawer-profile {
        display: flex; align-items: center; gap: 12px;
        padding: 12px; border-radius: 16px;
        background: linear-gradient(135deg, rgba(51, 65, 85, 0.45), rgba(30, 41, 59, 0.72));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        text-decoration: none; color: inherit;
      }
      .mobile-drawer-links {
        display: flex; flex-direction: column; gap: 5px; margin-top: 2px;
      }
      .mobile-nav-drawer .tab {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.96rem;
        border-radius: 14px;
        justify-content: space-between;
      }
      .mobile-nav-drawer .tab-left {
        display: inline-flex; align-items: center; gap: 11px;
      }
      .mobile-drawer-footer {
        margin-top: auto;
        padding-top: 14px;
        border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
        display: flex; flex-direction: column; gap: 8px;
      }

      /* Responsive Profile Banner & Layout */
      .prof-banner-card {
        position: relative;
        overflow: hidden;
        padding: 30px 28px;
        margin-bottom: 14px;
      }
      .prof-banner-inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        flex-wrap: wrap;
      }
      .prof-banner-left {
        display: flex;
        align-items: center;
        gap: 20px;
        min-width: 0;
        flex: 1 1 320px;
      }
      .prof-avatar-shell {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .prof-banner-meta {
        min-width: 0;
        flex: 1;
      }
      .prof-badges-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 6px;
      }
      .prof-display-name {
        margin: 0 0 8px 0;
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: -0.02em;
        overflow-wrap: anywhere;
        word-break: break-word;
      }
      .prof-handle-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        max-width: 100%;
      }
      .prof-handle-pill {
        background: rgba(15, 23, 42, 0.78);
        font-weight: 600;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
      }
      .prof-bio-text {
        max-width: 640px;
        color: #e2e8f0;
        font-size: 0.92rem;
        line-height: 1.55;
        margin: 10px 0 0 0;
        overflow-wrap: anywhere;
        word-break: break-word;
      }
      .prof-edit-btn {
        flex-shrink: 0;
      }
      .prof-actions-bar {
        padding: 12px 18px;
        margin-bottom: 24px;
        border-radius: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
      }
      .prof-actions-group {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
      }

      @media (max-width: 860px) {
        header { display: flex; flex-wrap: nowrap; justify-content: space-between; padding: 12px 16px; }
        header .nav-pills, .header-desktop-right { display: none !important; }
        .header-mobile-actions { display: inline-flex; }
        .mobile-menu-btn { display: inline-flex; }
      }
      @media (max-width: 768px) {
        .wrap { padding: 16px 14px 48px; }
        .prof-banner-card { padding: 22px 16px; border-radius: 20px; }
        .prof-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
        .prof-banner-left { flex-direction: column; align-items: center; text-align: center; gap: 14px; flex: 1 1 auto; }
        .prof-avatar-shell img,
        .prof-avatar-shell > div {
          width: 84px !important;
          height: 84px !important;
          border-radius: 50% !important;
        }
        .prof-badges-row { justify-content: center; }
        .prof-display-name { font-size: 1.5rem; }
        .prof-handle-row { justify-content: center; width: 100%; }
        .prof-handle-pill { font-size: 0.78rem; padding: 5px 11px; max-width: calc(100vw - 68px); }
        .prof-bio-text { font-size: 0.88rem; margin-top: 8px; text-align: center; }
        .prof-edit-btn { width: 100%; justify-content: center; }
        .prof-actions-bar { padding: 12px 14px; flex-direction: column; align-items: stretch; }
        .prof-actions-group { width: 100%; justify-content: center; }
        .prof-actions-group .btn { flex: 1 1 auto; justify-content: center; font-size: 0.82rem; padding: 8px 12px; }
      }
      .tab {
        background: transparent;
        color: #cbd5e1; padding: 8px 16px; border-radius: 999px; cursor: pointer;
        font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: all 0.16s ease;
        display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
      }
      .tab:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
      .tab.active {
        background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
        color: #fff;
        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
      }
      button.tab {
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: 0;
        font-family: inherit;
      }
      .mobile-nav-drawer .tab.active {
        background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
        color: #fff;
        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
      }
      .wrap { max-width: 1240px; margin: 0 auto; padding: 26px 24px 60px; }
      .glass-panel {
        background: linear-gradient(155deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.78));
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-radius: 24px;
        padding: 22px;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      }
      .btn {
        padding: 9px 16px; border-radius: 12px; font-weight: 600;
        cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
        gap: 6px; font-size: 0.88rem; transition: transform 0.12s ease, opacity 0.15s ease;
      }
      .btn:hover { transform: translateY(-1px); }
      .btn:active { transform: translateY(1px) scale(0.98); }
      .btn.primary { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); color: #fff; }
      .btn.secondary { background: rgba(51, 65, 85, 0.65); color: #f1f5f9; }
      .btn.ghost { background: rgba(30, 41, 59, 0.45); color: #cbd5e1; }
      .btn.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
      .btn.danger { background: rgba(244, 63, 94, 0.22); color: #fda4af; }
      .badge {
        font-size: 0.72rem; background: rgba(99,102,241,0.24); color: #c7d2fe;
        padding: 3px 10px; border-radius: 999px; font-weight: 700; display: inline-block;
      }
      .role-badge {
        font-size: 0.75rem; background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(56,189,248,0.25));
        color: #a7f3d0; padding: 4px 11px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
      }
      .pill {
        background: rgba(51, 65, 85, 0.6);
        padding: 6px 13px; border-radius: 999px; font-size: 0.83rem; color: #e2e8f0; text-decoration: none;
      }
      .search-bar { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
      .search-bar input, .search-bar select, .input-dark {
        background: rgba(15, 23, 42, 0.75);
        color: #f8fafc; padding: 13px 16px; border-radius: 14px; font-size: 0.96rem;
      }
      .search-bar input { flex: 1; min-width: 240px; }
      .grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 20px; }
      .grid-5 { display: grid; grid-template-columns: repeat(auto-fill,minmax(195px,1fr)); gap: 20px; }
      .empty-state {
        grid-column: 1 / -1;
        max-width: 540px;
        width: 100%;
        margin: 28px auto;
        padding: 40px 28px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
      }
      .trakt-row, .cast-scroller, .year-slider {
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.28) rgba(15, 23, 42, 0.25);
      }
      .trakt-row::-webkit-scrollbar, .cast-scroller::-webkit-scrollbar, .year-slider::-webkit-scrollbar {
        height: 6px;
        background: transparent;
      }
      .trakt-row::-webkit-scrollbar-track, .cast-scroller::-webkit-scrollbar-track, .year-slider::-webkit-scrollbar-track {
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0%, rgba(148, 163, 184, 0.14) 50%, rgba(15, 23, 42, 0.08) 100%);
        border-radius: 999px;
      }
      .trakt-row::-webkit-scrollbar-thumb, .cast-scroller::-webkit-scrollbar-thumb, .year-slider::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(56, 189, 248, 0.45), rgba(16, 185, 129, 0.35));
        border-radius: 999px;
      }
      .trakt-row::-webkit-scrollbar-thumb:hover, .cast-scroller::-webkit-scrollbar-thumb:hover, .year-slider::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(56, 189, 248, 0.75), rgba(16, 185, 129, 0.65));
      }
      .card {
        position: relative;
        background: linear-gradient(165deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.90));
        backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
        color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.16s ease;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      }

      .card.watched { opacity: 0.62; }
      .card.watched .poster { filter: grayscale(72%) brightness(0.64); }
      .card.watched:hover { opacity: 0.95; }
      .card-link { position: relative; z-index: 1; text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
      .card-poster-wrap { position: relative; width: 100%; overflow: hidden; background: #0f172a; }
      .poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #1e293b; display: block; transition: transform 0.26s ease; }
      .card:hover .poster { transform: scale(1.035); }
      .card-type-badge {
        position: absolute; top: 9px; left: 9px; z-index: 3;
        padding: 3px 8px; border-radius: 999px;
        font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
        background: rgba(15, 23, 42, 0.80); backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.16); color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
      }
      .card-ambient-bg {
        position: absolute; inset: -16px;
        background-size: cover; background-position: center;
        filter: blur(24px) saturate(1.35) brightness(0.26);
        transform: scale(1.1); z-index: 0; pointer-events: none; opacity: 0.85;
      }
      .tl-poster-marquee {
        position: relative; width: 100%; overflow: hidden; padding: 2px 0 4px;
        scrollbar-width: none; -ms-overflow-style: none;
      }
      .tl-poster-marquee::-webkit-scrollbar { display: none; }
      .tl-poster-marquee.is-looping {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
      }
      .tl-poster-track {
        display: flex; gap: 8px; width: max-content; align-items: center;
      }
      .tl-poster-marquee.is-looping .tl-poster-track {
        animation: tlPosterLoop var(--tl-marquee-dur, 24s) linear infinite;
        will-change: transform;
      }
      .tl-poster-marquee.is-looping:hover .tl-poster-track {
        animation-play-state: paused;
      }
      @keyframes tlPosterLoop {
        0% { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(-50%, 0, 0); }
      }
      @media (prefers-reduced-motion: reduce) {
        .tl-poster-marquee.is-looping .tl-poster-track { animation: none; }
      }
      .card.is-square .poster, .pcard.is-square .pcard-poster, .pcard.is-square img.poster, .mini-mcard.is-square img { aspect-ratio: 1 / 1; object-fit: cover; }
.card.is-wide .poster, .pcard.is-wide .pcard-poster, .pcard.is-wide img.poster, .mini-mcard.is-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.lcard.is-wide .lcard-cover { aspect-ratio: 16 / 9; }
      .lcard.is-square .lcard-cover { aspect-ratio: 1 / 1; }
      .plat-pill {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 2px 7px; border-radius: 999px;
        font-size: 0.67rem; font-weight: 800; letter-spacing: 0.03em; line-height: 1.2;
        text-transform: uppercase; vertical-align: middle;
      }
      .plat-pill.plat-steam { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.38); }
      .plat-pill.plat-retro { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.38); }
      .plat-pill.plat-roblox { background: rgba(244, 63, 94, 0.20); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.42); }
      .card-body { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
      .card-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: #fff; }
      .meta { font-size: 0.8rem; color: #94a3b8; }
      .card-actions {
        display: flex; gap: 6px; padding: 0 12px 12px;
      }
      .qbtn {
        flex: 1; padding: 6px 8px; border-radius: 10px; font-size: 0.76rem; font-weight: 700;
        cursor: pointer; text-align: center; transition: transform 0.12s ease, background 0.15s ease;
      }
      .qbtn:active { transform: scale(0.96); }
      .qbtn.watch {
        background: transparent !important;
        box-shadow: none !important;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }
      .qbtn.watch .tick-svg {
        color: #ffffff;
        transition: color 0.15s ease, transform 0.15s ease;
      }
      .qbtn.watch:not(.done):hover {
        color: #22c55e;
      }
      .qbtn.watch:not(.done):hover .tick-svg {
        color: #22c55e;
        transform: scale(1.08);
      }
      .qbtn.watch.done {
        background: transparent !important;
        box-shadow: none !important;
        color: #22c55e;
      }
      .qbtn.watch.done .tick-svg {
        color: #22c55e;
      }
      .qbtn.watch.done:hover .tick-svg {
        transform: scale(1.08);
      }
      .qbtn.list { background: transparent !important; box-shadow: none !important; color: #ffffff; }
      .qbtn.list svg { transition: stroke 0.15s ease, fill 0.15s ease, transform 0.15s ease; }
      .qbtn.list:not(.done):hover svg { stroke: #38bdf8 !important; transform: scale(1.08); }
      .qbtn.list.done { background: transparent !important; box-shadow: none !important; color: #38bdf8; }
      .qbtn.hide { background: transparent !important; box-shadow: none !important; color: #ffffff; border: 1px solid transparent !important; }
      .qbtn.hide svg { transition: stroke 0.15s ease, transform 0.15s ease; }
      .qbtn.hide:hover { background: transparent !important; border-color: transparent !important; color: #ef4444; }
      .qbtn.hide:hover svg { stroke: #ef4444 !important; transform: scale(1.08); }
      .qbtn.hide.active { background: transparent !important; border-color: transparent !important; color: #ef4444; }
      .qbtn.hide.active svg { stroke: #ef4444 !important; }
      .disc-hub {
        position: relative;
        background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 22px;
        padding: 16px 18px;
        margin-bottom: 22px;
        box-shadow: 0 20px 48px rgba(2, 6, 23, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        display: flex;
        flex-direction: column;
        gap: 13px;
      }
      .disc-hub-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
      }
      .disc-title-cluster {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }
      .disc-title-cluster h1 {
        margin: 0;
        font-size: 1.28rem;
        font-weight: 800;
        letter-spacing: -0.015em;
        color: #f8fafc;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      .disc-count-pill {
        font-size: 0.76rem;
        font-weight: 700;
        color: #94a3b8;
        background: rgba(15, 23, 42, 0.65);
        border: 1px solid rgba(148, 163, 184, 0.18);
        padding: 3px 10px;
        border-radius: 999px;
      }
      .disc-util-cluster {
        display: flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
        margin-left: auto;
      }
      .disc-util-btn {
        padding: 6px 11px;
        border-radius: 10px;
        font-size: 0.78rem;
        font-weight: 700;
        color: #cbd5e1;
        background: rgba(15, 23, 42, 0.55);
        border: 1px solid rgba(148, 163, 184, 0.18);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.15s ease;
      }
      .disc-util-btn:hover {
        background: rgba(51, 65, 85, 0.65);
        color: #fff;
        border-color: rgba(148, 163, 184, 0.34);
      }
      .disc-util-btn.danger-active {
        background: rgba(239, 68, 68, 0.20);
        border-color: rgba(239, 68, 68, 0.48);
        color: #fecaca;
      }
      .disc-util-btn.reset-pill {
        color: #fda4af;
        border-color: rgba(244, 63, 94, 0.28);
        background: rgba(244, 63, 94, 0.10);
      }
      .disc-cat-rail {
        display: inline-flex;
        align-items: stretch;
        width: fit-content;
        max-width: 100%;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: rgba(2, 6, 23, 0.48);
        border: none;
        padding: 0;
        border-radius: 12px;
      }
      .disc-cat-rail::-webkit-scrollbar { display: none; }
      .disc-cat-rail .tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0 0 0 14px;
        border-radius: 0;
        margin: 0;
        gap: 0;
        min-height: 36px;
        font-size: 0.85rem;
      }
      .disc-cat-rail .tab > span:nth-child(2) {
        padding-right: 12px;
      }
      .disc-cat-rail .tab > span:first-child {
        margin-right: 6px;
      }
      .disc-cat-rail .tab:first-child { border-radius: 12px 0 0 12px; }
      .disc-cat-rail .tab:last-child { border-radius: 0 12px 12px 0; }
      .disc-cat-rail .tab:only-child { border-radius: 12px; }
      .disc-cat-rail .tab .cat-cnt {
        font-size: 0.72rem;
        font-weight: 800;
        padding: 0 10px;
        border-radius: 0;
        align-self: stretch;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        color: #cbd5e1;
      }
      .disc-cat-rail .tab:last-child .cat-cnt {
        border-radius: 0 12px 12px 0;
      }
      .disc-cat-rail .tab.active .cat-cnt {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
      }
      .disc-command-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }
      .disc-search-shell {
        position: relative;
        flex: 1 1 320px;
        display: flex;
        align-items: center;
        background: rgba(2, 6, 23, 0.58);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 13px;
        padding: 0 10px 0 13px;
        min-height: 42px;
        transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
      }
      .disc-search-shell:focus-within {
        border-color: rgba(56, 189, 248, 0.65);
        background: rgba(2, 6, 23, 0.78);
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
      }
      .disc-search-icon {
        color: #94a3b8;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-right: 9px;
      }
      .disc-search-shell input {
        flex: 1;
        width: 100%;
        min-width: 0;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: #f8fafc;
        font-size: 0.9rem;
        padding: 9px 0;
      }
      .disc-search-shell input::placeholder {
        color: #64748b;
      }
      .disc-kbd-hint {
        font-size: 0.7rem;
        font-weight: 700;
        color: #64748b;
        border: 1px solid rgba(148, 163, 184, 0.22);
        background: rgba(15, 23, 42, 0.65);
        padding: 2px 7px;
        border-radius: 6px;
        pointer-events: none;
        flex-shrink: 0;
      }
      .disc-clear-btn {
        display: none;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: rgba(148, 163, 184, 0.16);
        color: #e2e8f0;
        border: none;
        font-size: 0.78rem;
        font-weight: 800;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 6px;
      }
      .disc-clear-btn:hover {
        background: rgba(244, 63, 94, 0.28);
        color: #fff;
      }
      .disc-controls-cluster {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .disc-select-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(2, 6, 23, 0.55);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 13px;
        padding: 0 11px;
        min-height: 42px;
      }
      .disc-select-pill .lbl {
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        white-space: nowrap;
      }
      .disc-select-pill select {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: #f1f5f9;
        font-size: 0.84rem;
        font-weight: 700;
        padding: 8px 2px;
        cursor: pointer;
      }
      .disc-select-pill select option {
        background: #0f172a;
        color: #f8fafc;
      }
      .disc-refine-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        padding-top: 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
      }
      .disc-chip-group {
        display: inline-flex;
        align-items: stretch;
        gap: 0;
        flex-wrap: wrap;
        background: rgba(2, 6, 23, 0.45);
        border-radius: 10px;
        overflow: hidden;
      }
      .disc-chip-label {
        font-size: 0.71rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
        padding: 6px 11px;
        background: rgba(255, 255, 255, 0.04);
        display: inline-flex;
        align-items: center;
        margin: 0;
      }
      .disc-chip {
        padding: 6px 13px;
        border-radius: 0;
        margin: 0;
        font-size: 0.79rem;
        font-weight: 600;
        color: #cbd5e1;
        text-decoration: none;
        background: rgba(15, 23, 42, 0.48);
        border: 1px solid rgba(148, 163, 184, 0.14);
        transition: all 0.14s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
      }
      .disc-chip:hover {
        background: rgba(51, 65, 85, 0.55);
        color: #fff;
      }
      .disc-chip.active {
        background: rgba(56, 189, 248, 0.18);
        border-color: rgba(56, 189, 248, 0.48);
        color: #7dd3fc;
        font-weight: 700;
      }
      .disc-section-hdr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 4px 0 14px;
      }
      .disc-section-hdr h2, .disc-section-hdr h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #f1f5f9;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      @media (max-width: 768px) {
        .disc-hub { padding: 13px 12px; border-radius: 18px; gap: 10px; }
        .disc-search-shell { flex: 1 1 100%; }
        .disc-controls-cluster { width: 100%; }
        .disc-select-pill { flex: 1 1 auto; justify-content: space-between; }
        .disc-kbd-hint { display: none; }
      }
      .prog-track { width: 100%; height: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.75); overflow: hidden; margin-top: 2px; }
      .prog-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #10b981); border-radius: 999px; }
      .stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
      .stat-box {
        background: linear-gradient(155deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.8));
        backdrop-filter: blur(22px);
        border-radius: 18px; padding: 18px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
      }
      .stat-val {
        font-size: 1.8rem; font-weight: 800;
        background: linear-gradient(115deg, #a5b4fc 0%, #38bdf8 55%, #34d399 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      }
      .ratio-bar {
        display: flex; width: 100%; height: 14px; border-radius: 999px; overflow: hidden;
        background: rgba(15, 23, 42, 0.75); margin: 12px 0;
      }
      .glass-panel { min-width: 0; max-width: 100%; }
      .vchart {
        display: flex; align-items: flex-end; gap: 6px; height: 165px; padding-top: 18px;
        width: 100%; overflow-x: auto;
      }
      .vbar-col {
        flex: 1; min-width: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end;
      }
      .vbar {
        width: 100%; max-width: 38px; border-radius: 10px 10px 4px 4px;
        background: linear-gradient(180deg, #38bdf8 0%, #6366f1 100%);
        min-height: 6px; transition: height 0.2s ease;
      }
      .ep-card {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
        gap: 14px; padding: 14px 16px; border-radius: 16px;
        background: rgba(15, 23, 42, 0.52); margin-bottom: 10px;
      }
      .ep-thumb {
        width: 148px; aspect-ratio: 16/9; border-radius: 11px; object-fit: cover; background: #1e293b; flex-shrink: 0;
      }
      .cal-item {
        background: rgba(15, 23, 42, 0.56);
        border-radius: 14px; padding: 12px 16px; margin-bottom: 10px;
        display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
        text-decoration: none; color: inherit; transition: background 0.15s ease;
      }
      a.cal-item:hover { background: rgba(30, 41, 59, 0.82); }
      .cast-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
      .cast-card {
        width: 126px; flex-shrink: 0; background: rgba(15, 23, 42, 0.58);
        border-radius: 14px; overflow: hidden; text-align: center; padding-bottom: 10px;
        text-decoration: none; color: inherit; transition: transform 0.14s ease;
      }
      .cast-card:hover { transform: translateY(-3px); }
      .cast-img { width: 100%; height: 140px; object-fit: cover; background: #1e293b; }
      .year-slider {
        display: flex; gap: 0; overflow-x: auto; padding: 0; margin-bottom: 20px;
        background: rgba(15, 23, 42, 0.55); border-radius: 12px;
      }
      .year-slider .tab, .year-pill {
        padding: 8px 16px; border-radius: 0; margin: 0; font-weight: 700; font-size: 0.88rem;
        background: transparent; color: #94a3b8; cursor: pointer; white-space: nowrap; text-decoration: none;
      }
      .year-slider .tab:first-child, .year-pill:first-child { border-radius: 12px 0 0 12px; }
      .year-slider .tab:last-child, .year-pill:last-child { border-radius: 0 12px 12px 0; }
      .year-pill.active {
        background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%); color: #fff;
      }
      .pager {
        display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap;
      }
      .bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
      .bar-fill { height: 10px; background: linear-gradient(90deg, #6366f1, #38bdf8, #34d399); border-radius: 999px; }
      .trakt-sec { margin-bottom: 28px; }
      .trakt-sec-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
      .trakt-sec-title { font-size: 1.25rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
      .trakt-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
      .trakt-row > * { scroll-snap-align: start; flex-shrink: 0; }
      .lcard {
        width: 285px; background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.86));
        backdrop-filter: blur(22px); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        transition: transform 0.16s ease, box-shadow 0.16s ease;
      }
      .lcard:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(56, 189, 248, 0.22); }
      .lcard-cover { position: relative; width: 100%; aspect-ratio: 16/9; background: #1e293b; overflow: hidden; }
      .lcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
      .lcard-tag {
        position: absolute; top: 10px; left: 10px; background: rgba(15, 23, 42, 0.82); backdrop-filter: blur(10px);
        color: #e2e8f0; font-size: 0.72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
      }
      .lcard-prog { position: absolute; bottom: 0; left: 0; right: 0; height: 5px; background: rgba(15, 23, 42, 0.85); }
      .lcard-prog-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #38bdf8, #10b981); }
      .lcard-foot { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .lcard-check {
        width: 36px; height: 36px; border-radius: 12px; background: transparent; color: #ffffff;
        font-size: 1rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
        flex-shrink: 0; transition: color 0.15s ease, transform 0.12s ease;
      }
      .lcard-check svg { transition: color 0.15s ease, transform 0.15s ease; }
      .lcard-check:not(.done):hover { background: transparent; color: #22c55e; }
      .lcard-check:not(.done):hover svg { transform: scale(1.1); }
      .lcard-check.done { background: transparent; color: #22c55e; }
      .pcard-row-item { width: 185px; }
      .lcard-tags-row { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; pointer-events: none; }
      .lcard-flag {
        font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
        padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(10px);
      }
      .lcard-flag.premiere { background: rgba(16, 185, 129, 0.88); color: #052e16; }
      .lcard-flag.finale { background: rgba(236, 72, 153, 0.88); color: #fff; }
      .seg-prog {
        position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
        display: flex; gap: 0; padding: 0; background: rgba(15, 23, 42, 0.55);
      }
      .seg-unit { flex: 1; height: 100%; border-radius: 0; background: transparent; transition: background 0.2s ease; }
      .seg-unit.watched { background: #3b82f6; }
      .seg-unit.partial { background: rgba(59, 130, 246, 0.45); }
      .grid-2x3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
      @media (max-width: 640px) { .grid-2x3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
      .mini-mcard {
        background: rgba(15, 23, 42, 0.58); border-radius: 14px; overflow: hidden;
        text-decoration: none; color: inherit; display: flex; flex-direction: column;
        transition: transform 0.14s ease, box-shadow 0.14s ease;
      }
      .mini-mcard:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(56, 189, 248, 0.2); }
      .mini-mcard img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #1e293b; display: block; }
      .mini-mcard-body { padding: 8px 10px; }
      .cal-grid-wrap { overflow-x: auto; }
      .cal-month-grid {
        display: grid; grid-template-columns: repeat(7, minmax(185px, 1fr)); gap: 12px;
      }
      .cal-dow {
        text-align: center; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
        text-transform: uppercase; color: #94a3b8; padding: 8px 4px;
      }
      .cal-day {
        min-height: 175px; border-radius: 16px; padding: 12px;
        background: rgba(15, 23, 42, 0.55); display: flex; flex-direction: column; gap: 8px;
      }
      .cal-day.muted { opacity: 0.36; background: rgba(15, 23, 42, 0.28); }
      .cal-day.today {
        background: linear-gradient(160deg, rgba(99, 102, 241, 0.24), rgba(15, 23, 42, 0.72));
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
      }
      .cal-day-num { font-size: 0.82rem; font-weight: 800; color: #cbd5e1; display: flex; justify-content: space-between; align-items: center; }
      .cal-entry {
        display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 12px;
        background: rgba(30, 41, 59, 0.76); text-decoration: none; color: inherit;
        transition: background 0.14s ease, transform 0.12s ease;
      }
      .cal-entry:hover { background: rgba(51, 65, 85, 0.94); transform: translateY(-1px); }
      .cal-entry img { width: 44px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #0f172a; }
      .cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 20px; }
      .cw-grid .lcard { width: 100%; }

      .streak-banner {
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
        padding: 18px 22px; margin-bottom: 24px; border-radius: 20px;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.9));
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
      }
      .streak-pills { display: flex; align-items: center; gap: 6px; }
      .sp-dot {
        width: 28px; height: 10px; border-radius: 999px;
        background: rgba(148, 163, 184, 0.2); transition: transform 0.15s ease;
      }
      .sp-dot.lit { background: linear-gradient(90deg, #f97316, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, 0.45); }
      .sp-dot.today { outline: 2px solid rgba(56, 189, 248, 0.75); outline-offset: 2px; }
      .xp-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(15, 23, 42, 0.75); overflow: hidden; margin-top: 8px; }
      .xp-fill { height: 100%; background: #3b82f6; border-radius: 999px; }
      .badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
      .ach-card {
        display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
        background: rgba(15, 23, 42, 0.62);
      }
      .ach-card.locked { opacity: 0.42; filter: grayscale(0.85); }
      .ach-icon {
        width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(16, 185, 129, 0.22));
      }
      .donut-wrap {
        display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 10px 0 4px;
      }
      .donut-legend {
        display: flex; flex-direction: column; gap: 12px; min-width: 220px; flex: 1; max-width: 380px;
      }
      .donut-leg-item {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 14px; border-radius: 14px; background: rgba(15, 23, 42, 0.58);
      }

      .pcard-row-item { width: 185px; flex: 0 0 185px; display: flex; }
      .pcard-row-item .pcard { width: 100%; height: 100%; display: flex; flex-direction: column; }
      .pcard { display: flex; flex-direction: column; height: 100%; }
      .pcard-poster, .pcard img.poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; flex-shrink: 0; display: block; }
      .pcard-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
      .pcard-title {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden; min-height: 2.5em; line-height: 1.25;
      }
      .cal-month-grid {
        display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; width: 100%;
      }
      .cal-day {
        min-height: 195px; min-width: 0; border-radius: 16px; padding: 10px;
        background: rgba(15, 23, 42, 0.58); display: flex; flex-direction: column; gap: 8px;
      }
      .cal-entry {
        display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px;
        background: rgba(30, 41, 59, 0.82); text-decoration: none; color: inherit; min-width: 0;
        transition: background 0.14s ease, transform 0.12s ease;
      }
      .cal-entry:hover { background: rgba(51, 65, 85, 0.96); transform: translateY(-2px); }
      .cal-entry img { width: 100%; height: 92px; border-radius: 8px; object-fit: cover; background: #0f172a; display: block; }
      @media (max-width: 960px) {
        .cal-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .cal-dow { display: none; }
      }
      @media (max-width: 560px) {
        .cal-month-grid { grid-template-columns: 1fr; }
      }
      .rate-bar {
        display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
        background: rgba(15, 23, 42, 0.65); padding: 6px 10px; border-radius: 14px;
      }
      .rate-star-btn {
        background: transparent; border: none; color: #64748b; font-size: 1.15rem;
        cursor: pointer; padding: 2px 4px; border-radius: 6px; line-height: 1;
        transition: transform 0.1s ease, color 0.12s ease;
      }
      .rate-star-btn:hover, .rate-star-btn.active, .rate-star-btn.is-lit { color: #fbbf24; transform: scale(1.12); }

      /* Trakt v2 + Telemetry Strip Layer */
      .trakt-hero-banner {
        position: relative; overflow: hidden; border-radius: 24px; padding: 24px 26px;
        margin-bottom: 22px; background: rgba(15, 23, 42, 0.74);
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      }
      .trakt-hero-bg {
        position: absolute; inset: -24px; background-size: cover; background-position: center;
        filter: blur(22px) saturate(1.3) brightness(0.38); transform: scale(1.08);
        z-index: 0; pointer-events: none;
      }
      .trakt-hero-shade {
        position: absolute; inset: 0;
        background: linear-gradient(115deg, rgba(7, 11, 20, 0.88) 0%, rgba(15, 23, 42, 0.58) 55%, rgba(7, 11, 20, 0.86) 100%);
        z-index: 0; pointer-events: none;
      }
      .trakt-hero-inner {
        position: relative; z-index: 1; display: flex; align-items: center;
        justify-content: space-between; gap: 18px; flex-wrap: wrap;
      }
      .track-deck-main {
        display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 280px;
      }
      .track-deck-poster {
        width: 78px; height: 116px; border-radius: 14px; object-fit: cover;
        box-shadow: 0 14px 30px rgba(0,0,0,0.65); display: block;
      }
      .track-deck-actions {
        display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
      }
      @media (max-width: 640px) {
        .trakt-hero-banner { padding: 16px; border-radius: 18px; }
        .trakt-hero-inner { flex-direction: column; align-items: stretch; gap: 14px; }
        .track-deck-main { flex: 1 1 auto; gap: 12px; align-items: flex-start; }
        .track-deck-poster { width: 62px; height: 92px; border-radius: 11px; }
        .track-deck-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
        .track-deck-actions .btn { width: 100%; justify-content: center; text-align: center; }
      }
      .exo-strip {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
        gap: 12px; margin-bottom: 24px;
      }
      .exo-tile {
        background: linear-gradient(155deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
        backdrop-filter: blur(22px); border-radius: 18px; padding: 14px 16px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.11);
        display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
      }
      .exo-tile-top {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        font-size: 0.76rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em;
      }
      .exo-tile-val {
        font-size: 1.48rem; font-weight: 900; color: #f8fafc; line-height: 1.1;
      }
      .exo-bar {
        width: 100%; height: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.85); overflow: hidden;
      }
      .exo-bar-fill {
        height: 100%; border-radius: 999px;
        background: linear-gradient(90deg, #6366f1 0%, #38bdf8 55%, #10b981 100%);
      }
      .trophy-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
      .tpill {
        font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
        background: rgba(15, 23, 42, 0.78); display: inline-flex; align-items: center; gap: 4px;
      }
      .feed-row {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 12px 14px; border-radius: 15px; background: rgba(15, 23, 42, 0.58);
        margin-bottom: 9px; transition: background 0.14s ease, transform 0.12s ease;
      }
      .feed-row:hover { background: rgba(30, 41, 59, 0.84); transform: translateX(2px); }
      .feed-thumb {
        width: 44px; height: 64px; border-radius: 9px; object-fit: cover;
        background: #1e293b; flex-shrink: 0; display: block;
      }
      .feed-thumb.square { width: 52px; height: 52px; border-radius: 12px; }
      .card-ribbon {
        position: absolute; top: 9px; right: 9px; z-index: 2;
        padding: 3px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800;
        backdrop-filter: blur(10px); background: rgba(15, 23, 42, 0.84); color: #e2e8f0;
      }
      .card-ribbon.done { background: rgba(16, 185, 129, 0.9); color: #052e16; }
      .card-ribbon.prog { background: rgba(56, 189, 248, 0.88); color: #082f49; }

    
/* Upgraded Pagination Bar */
.pager-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}
#discoverPagerTop .pager-shell {
  margin-top: 0;
  padding: 9px 14px;
}
.pager-summary {
  font-size: 0.84rem;
  color: #94a3b8;
  white-space: nowrap;
}
.pager-summary strong {
  color: #f8fafc;
  font-weight: 700;
}
.pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pager-btn, .pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  user-select: none;
}
.pager-btn:hover:not(.disabled), .pager-num:hover:not(.active) {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.48);
  color: #fff;
  transform: translateY(-1px);
}
.pager-num.active {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-color: #38bdf8;
  color: #04121d;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.32);
}
.pager-btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.pager-ellipsis {
  color: #64748b;
  padding: 0 4px;
  font-weight: 700;
  user-select: none;
}
.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}
.pager-jump-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}
.pager-jump input[type="number"] {
  width: 58px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: center;
}
.pager-go-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.pager-go-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}
.pager-size select {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
#discoverMainGrid.disc-loading-fade {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.14s ease;
}
@media (max-width: 720px) {
  .pager-shell { justify-content: center; }
  .pager-jump { border-left: none; padding-left: 0; margin-left: 0; }
}

/* Three-dots (...) item & admin action menu (matching WATCH videos & profiles) */
.meta-more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.meta-more-btn {
  padding: 6px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.meta-more-btn:hover {
  background: transparent !important;
  opacity: 1;
  color: #ffffff;
}
.meta-more-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 248px;
  z-index: 90;
  background: rgba(13, 19, 36, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.meta-more-menu.open {
  display: flex;
}
.meta-more-menu .hdr-menu-item,
.meta-more-menu .hdr-menu-item.danger {
  border-top: none !important;
  border-bottom: none !important;
  margin-top: 0 !important;
}

/* Unified page-back & episode double-chevron navigation */
.page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}
.page-back-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(125, 211, 252, 0.5);
  transform: translateX(-1px);
}
.ep-step-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ep-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.ep-step-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(125, 211, 252, 0.55);
}
.ep-step-btn.disabled {
  opacity: 0.36;
  pointer-events: none;
}

/* Full-width MON-SUN Watch Streak 7-day grid */
.streak-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.streak-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.streak-day-lbl {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1;
}
.streak-day-cell.today .streak-day-lbl {
  color: #38bdf8;
}
.streak-day-cell.future .streak-day-lbl {
  color: rgba(148, 163, 184, 0.45);
}
.streak-day-box {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.streak-day-cell.lit .streak-day-box {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}
.streak-day-cell.today:not(.lit) .streak-day-box {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.12);
}
.streak-day-cell.future .streak-day-box {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.22);
}

/* Unified Card `...` Floating Menu & NSFW Flag Controls */
button.qbtn.more,
.card-actions .qbtn.more,
.lcard .qbtn.more,
button.meta-more-btn,
.meta-more-btn {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
}
button.qbtn.more:hover,
.card-actions .qbtn.more:hover,
.lcard .qbtn.more:hover,
button.meta-more-btn:hover,
.meta-more-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}
button.qbtn.more.active,
.card-actions .qbtn.more.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fda4af !important;
}
.track-floating-more-sep {
  height: 1px;
  margin: 3px 6px;
  background: rgba(148, 163, 184, 0.16);
}
.track-floating-more-menu {
  position: fixed;
  z-index: 9999;
  width: 224px;
  background: rgba(13, 19, 36, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  gap: 3px;
}
.track-floating-more-menu.open {
  display: flex;
}
.track-floating-more-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.track-floating-more-item:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
}
.track-floating-more-item.danger {
  color: #fda4af;
}
.track-floating-more-item.danger:hover {
  background: rgba(244, 63, 94, 0.18);
  color: #fecdd3;
}
.track-floating-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.track-floating-toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* === UNIFIED TRACK UI KIT (BACK BTN, FILTER BAR, DE-BOXED SETS) === */
.page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.page-back-btn svg {
  transition: transform 0.16s ease;
}
.page-back-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
}
.page-back-btn:hover svg {
  transform: translateX(-2px);
}

/* Airy, frameless search & filter toolbar */
.trk-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.trk-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.trk-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 210px;
  display: flex;
  align-items: center;
}
.trk-search-wrap svg {
  position: absolute;
  left: 13px;
  color: #64748b;
  pointer-events: none;
}
.trk-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.trk-search-input::placeholder {
  color: #64748b;
}
.trk-search-input:focus {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.trk-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.trk-text-act {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.trk-text-act:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

/* Elevated translucent gradient surface for collapsible achievement & trophy set sections */
details.ach-set-details.trk-set-section {
  background: radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.42) 48%, rgba(2, 6, 23, 0.28) 100%) !important;
  border: none !important;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: 20px !important;
  padding: 18px 20px 20px !important;
  margin-bottom: 18px !important;
}
details.ach-set-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px;
}
details.ach-set-details > summary::-webkit-details-marker {
  display: none;
}
details.ach-set-details .ach-chevron {
  display: inline-block;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.18s ease, color 0.18s ease;
}
details.ach-set-details:not([open]) .ach-chevron {
  transform: rotate(-90deg);
}
details.ach-set-details[open] .ach-chevron {
  transform: rotate(0deg);
  color: #38bdf8;
}
details.ach-set-details > summary:hover h2 {
  color: #bae6fd;
}
.game-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 11px;
}
.game-ach-grid .ach-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  background: radial-gradient(120% 100% at 0% 0%, var(--card-tint, rgba(52, 211, 153, 0.08)) 0%, rgba(15, 23, 42, 0.56) 65%);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(2, 6, 23, 0.22);
  border-radius: 15px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.game-ach-grid .ach-card:hover {
  transform: translateY(-1px);
  background: radial-gradient(120% 100% at 0% 0%, var(--card-tint, rgba(56, 189, 248, 0.14)) 0%, rgba(15, 23, 42, 0.78) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 10px 22px rgba(0, 0, 0, 0.3);
}
.game-ach-grid .ach-card.locked {
  --card-tint: rgba(148, 163, 184, 0.03);
  background: rgba(15, 23, 42, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0.86;
  filter: none;
}
.game-ach-grid .ach-card.locked:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.6);
}
.game-ach-grid .ach-card.dlc-locked {
  opacity: 0.62;
}
.ach-card-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  border: 1px solid var(--card-ring, rgba(52, 211, 153, 0.42));
}
.ach-card.locked .ach-card-img {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
  filter: grayscale(90%) opacity(0.55);
}
.ach-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ach-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ach-card-title {
  font-weight: 800;
  font-size: 0.91rem;
  color: #f8fafc;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ach-card.locked .ach-card-title {
  color: #94a3b8;
  font-weight: 700;
}
.ach-card-desc {
  font-size: 0.77rem;
  line-height: 1.36;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ach-card.locked .ach-card-desc {
  color: #64748b;
}
.ach-card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
}
.ach-status-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34d399;
  font-weight: 800;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.ach-status-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ach-status-dlc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.ach-meta-dot {
  color: #475569;
  font-weight: 900;
}
.ach-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 800;
}
.prog-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}


/* === ISOLATED ACHIEVEMENT & TROPHY DETAIL MODAL === */
.trk-ach-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: trkModalFadeIn 0.18s ease-out;
}
@keyframes trkModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.trk-ach-modal-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 490px;
  border-radius: 26px;
  padding: 26px 26px 24px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  transform: translateY(0) scale(1);
  animation: trkModalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes trkModalPopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.trk-ach-modal-glow {
  position: absolute;
  top: -70px;
  left: -40px;
  width: 260px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--ach-glow, rgba(56, 189, 248, 0.26)) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.trk-ach-modal-body {
  position: relative;
  z-index: 1;
}
.trk-ach-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.trk-ach-modal-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.trk-ach-modal-icon-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(145deg, var(--ach-ring, rgba(56, 189, 248, 0.55)), rgba(15, 23, 42, 0.85));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
  flex-shrink: 0;
}
.trk-ach-modal-icon {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.94);
  display: block;
}
.trk-ach-modal-icon.is-locked {
  filter: grayscale(85%) opacity(0.68);
}
.trk-ach-modal-set {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 4px;
}
.trk-ach-modal-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.24;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.trk-ach-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.trk-ach-modal-close:hover {
  background: transparent;
  color: #f87171;
  transform: scale(1.1);
}
.trk-ach-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.trk-ach-modal-grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  background: transparent;
  border: none;
  padding: 0;
}
.trk-ach-modal-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
}
.trk-ach-modal-rarity-box {
  margin: 4px 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
}
.trk-ach-modal-rarity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.trk-ach-modal-howto {
  padding: 2px 0 0;
  background: transparent;
}
.trk-ach-modal-howto-lbl {
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.trk-ach-modal-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #f1f5f9;
}

/* Off-screen grid layout & paint virtualization */
.grid .card,
.grid .pcard,
.grid .lcard {
  content-visibility: auto;
  contain-intrinsic-size: 210px 330px;
}
