:root {
      --bg: #080a10;
      --bg-2: #10131d;
      --panel: rgba(18, 22, 34, .82);
      --panel-2: rgba(255, 255, 255, .06);
      --panel-3: rgba(255, 255, 255, .09);
      --text: #f5f3ec;
      --muted: #b7b0a3;
      --dim: #827c72;
      --line: rgba(255, 255, 255, .13);
      --gold: #f3c66b;
      --gold-2: #ffde8a;
      --red: #d74d4d;
      --green: #6bdc98;
      --blue: #89b8ff;
      --shadow: 0 24px 80px rgba(0,0,0,.45);
      --radius: 26px;
      --radius-sm: 16px;
      --max: 1220px;
      --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      --serif: Georgia, "Times New Roman", serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--sans);
      color: var(--text);
      background:
        radial-gradient(circle at 10% 0%, rgba(243,198,107,.16), transparent 33rem),
        radial-gradient(circle at 92% 10%, rgba(137,184,255,.12), transparent 34rem),
        linear-gradient(180deg, #06070b 0%, #10131b 45%, #07090e 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
      background-size: 52px 52px;
      mask-image: linear-gradient(to bottom, black, transparent 72%);
      opacity: .28;
      z-index: -2;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 50% -20%, transparent 0 44%, rgba(0,0,0,.48) 78%, rgba(0,0,0,.76) 100%);
      z-index: -1;
    }

    a {
      color: inherit;
    }

    button,

    input,

    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

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

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(8,10,16,.72);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      text-decoration: none;
    }

    .mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 14px;
      color: #111;
      background: linear-gradient(145deg, var(--gold-2), #b78936);
      box-shadow: 0 10px 30px rgba(243,198,107,.23);
      font-weight: 950;
      letter-spacing: -.08em;
    }

    .brand strong {
      display: block;
      line-height: 1;
      font-size: 1.08rem;
      letter-spacing: .02em;
    }

    .brand span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: .78rem;
      white-space: nowrap;
    }

    h1 {
      margin: 0;
      font-family: var(--serif);
      font-size: clamp(2.45rem, 7vw, 6.25rem);
      line-height: .91;
      letter-spacing: -.07em;
      max-width: 920px;
    }

    .stat {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px;
    }

    .stat strong {
      display: block; font-size: 1.55rem; line-height: 1; color: var(--gold-2);
    }

    .stat span {
      display: block; margin-top: 8px; color: var(--muted); font-size: .86rem;
    }

    .section {
      padding: 36px 0;
    }

    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .section-head h2 {
      margin: 0;
      font-family: var(--serif);
      font-size: clamp(1.75rem, 4vw, 3.2rem);
      line-height: 1;
      letter-spacing: -.045em;
    }

    .section-head p {
      margin: 8px 0 0;
      color: var(--muted);
      max-width: 670px;
      line-height: 1.55;
    }

    .control-panel {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.055);
      border-radius: 24px;
      box-shadow: 0 18px 55px rgba(0,0,0,.24);
      margin-bottom: 18px;
    }

    .field {
      position: relative;
    }

    .field label {
      position: absolute;
      top: 7px;
      left: 14px;
      color: var(--dim);
      font-size: .78rem;
      z-index: 1;
      pointer-events: none;
    }

    input,

    select {
      width: 100%;
      min-height: 58px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 17px;
      background: rgba(5,7,12,.72);
      color: var(--text);
      outline: 0;
      padding: 25px 14px 9px;
      transition: border-color .16s ease, background .16s ease;
    }

    input:focus,

    select:focus {
      border-color: rgba(243,198,107,.55); background: rgba(5,7,12,.92);
    }

    .control-panel.search-only {
      max-width: 760px;
      margin-left: auto;
      margin-right: auto;
    }

    .catalog-search input {
      min-height: 64px;
      font-size: 1.04rem;
    }

    .search-help {
      display: block;
      margin: 9px 4px 0;
      color: var(--muted);
      line-height: 1.45;
      font-size: .9rem;
    }

    .catalog {
      display: grid;
      grid-template-columns: var(--catalog-cols, repeat(2, minmax(0, 1fr)));
      gap: var(--catalog-gap, 18px);
      align-items: var(--catalog-align, normal);
      contain: layout paint;
    }

    .movie-card {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      display: grid;
      grid-template-columns: var(--movie-card-cols, 190px minmax(0, 1fr));
      gap: 0;
      min-height: var(--movie-card-min-height, 330px);
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 20px 60px rgba(0,0,0,.28);
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
      content-visibility: auto;
      contain: layout paint style;
      contain-intrinsic-size: 420px;
    }

    .movie-card .cover,
    .movie-card .movie-body {
      will-change: transform;
    }

    .movie-card:hover {
      transform: translateY(-4px);
      border-color: rgba(243,198,107,.36);
      box-shadow: 0 26px 80px rgba(0,0,0,.38);
    }

    .movie-card:focus-within {
      border-color: rgba(243,198,107,.46);
      box-shadow: 0 26px 80px rgba(0,0,0,.38);
    }

    .card-open-layer {
      appearance: none;
      position: absolute;
      inset: 0;
      z-index: 3;
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: inherit;
      padding: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
    }

    .card-open-layer:focus-visible {
      outline: 2px solid rgba(243,198,107,.72);
      outline-offset: 4px;
    }

    .movie-age-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 8;
      min-width: 36px;
      text-align: center;
      border-radius: 999px;
      padding: 5px 8px;
      color: #1a1308;
      background: rgba(243,198,107,.92);
      border: 1px solid rgba(255,255,255,.34);
      font-size: .78rem;
      font-weight: 950;
      letter-spacing: .02em;
      box-shadow: 0 12px 30px rgba(0,0,0,.35);
      pointer-events: none;
    }

    .cover {
      position: relative;
      min-height: 100%;
      overflow: hidden;
      background: #12151e;
    }

    .cover::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover;
      background-position: center;
      transform: scale(1.02);
    }

    .cover::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, transparent 62%, rgba(18,22,34,.88)),
        linear-gradient(to top, rgba(0,0,0,.78), transparent 48%);
    }

    .cover-title {
      position: absolute;
      z-index: 2;
      left: 16px;
      right: 16px;
      bottom: 16px;
    }

    .cover-title span {
      display: inline-block;
      border-radius: 999px;
      color: #18120a;
      background: var(--gold-2);
      padding: 6px 9px;
      font-size: .75rem;
      font-weight: 850;
      margin-bottom: 10px;
    }

    .cover-title strong {
      display: block;
      font-family: var(--serif);
      font-size: 1.85rem;
      line-height: .95;
      text-shadow: 0 8px 24px rgba(0,0,0,.5);
      letter-spacing: -.04em;
    }

    .movie-body {
      padding: 22px;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .kicker {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 27px;
      max-width: 100%;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.13);
      color: #e7e1d7;
      background: rgba(255,255,255,.055);
      font-size: .78rem;
      white-space: nowrap;
    }

    .tag.gold {
      color: var(--gold-2); border-color: rgba(243,198,107,.28); background: rgba(243,198,107,.08);
    }

    .movie-body h3 {
      margin: 0;
      font-family: var(--serif);
      font-size: clamp(1.8rem, 3.2vw, 2.8rem);
      line-height: .98;
      letter-spacing: -.05em;
    }

    .original {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-size: .92rem;
    }

    .summary {
      margin: 16px 0 18px;
      color: #d8d2c8;
      line-height: 1.62;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .ratings {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: auto;
    }

    .rating {
      min-height: 74px;
      padding: 10px;
      border-radius: 15px;
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(255,255,255,.045);
    }

    .rating small {
      display: block;
      color: var(--dim);
      font-size: .74rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rating strong {
      display: block;
      margin-top: 6px;
      color: var(--gold-2);
      font-size: 1rem;
      line-height: 1;
    }

    .rating .bar {
      height: 4px;
      background: rgba(255,255,255,.11);
      border-radius: 999px;
      overflow: hidden;
      margin-top: 10px;
    }

    .rating .bar i {
      display: block;
      width: var(--score);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #bd8d35, var(--gold-2));
    }

    .card-actions {
      position: relative;
      z-index: 5;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .small-btn {
      position: relative;
      z-index: 6;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.06);
      color: var(--text);
      border-radius: 999px;
      min-height: 42px;
      padding: 10px 13px;
      transition: transform .16s ease, border-color .16s ease;
    }

    .small-btn:hover {
      transform: translateY(-1px); border-color: rgba(243,198,107,.42);
    }

    .small-btn.primary {
      background: rgba(243,198,107,.13); border-color: rgba(243,198,107,.35); color: var(--gold-2);
    }

    .empty {
      display: none;
      padding: 28px;
      border: 1px dashed rgba(255,255,255,.18);
      border-radius: 24px;
      color: var(--muted);
      text-align: center;
      background: rgba(255,255,255,.035);
    }

    .catalog-status {
      display: none;
      margin: 18px 0 0;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 18px;
      color: var(--muted);
      text-align: center;
      background: rgba(255,255,255,.035);
      line-height: 1.45;
    }

    .catalog-status.show {
      display: block;
    }

    .catalog-more-wrap {
      display: none;
      justify-content: center;
      margin: 14px 0 0;
    }

    .catalog-more-wrap.show {
      display: flex;
    }

    .catalog-more {
      min-width: min(100%, 230px);
      justify-content: center;
      color: var(--gold-2);
      border-color: rgba(243,198,107,.34);
      background: rgba(243,198,107,.10);
      font-weight: 850;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      z-index: 140;
      padding: 20px;
    }

    .modal.open {
      display: grid;
    }

    .backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,.72);
      backdrop-filter: blur(10px);
    }

    .dialog {
      position: relative;
      width: min(1040px, 100%);
      max-height: min(92vh, 860px);
      overflow: auto;
      border: 1px solid rgba(255,255,255,.16);
      background: #10141f;
      border-radius: 30px;
      box-shadow: 0 40px 140px rgba(0,0,0,.7);
    }

    .dialog-hero {
      min-height: 250px;
      position: relative;
      padding: 26px;
      overflow: hidden;
      background: #111521;
    }

    .dialog-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover, cover, cover;
      background-position: center, center, center;
      filter: saturate(1.05);
      opacity: .84;
      transform: scale(1.03);
    }

    .dialog-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to top, #10141f 0%, rgba(16,20,31,.86) 48%, rgba(16,20,31,.88) 100%),
        rgba(16,20,31,.22);
    }

    .dialog-content-top {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: none;
      min-width: 0;
      box-sizing: border-box;
      display: block;
    }

    .close {
      position: absolute;
      top: 16px;
      right: 16px;
      z-index: 6;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.18);
      color: var(--text);
      background: rgba(0,0,0,.46);
      margin: 0;
    }

    .dialog-title-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
      max-width: none;
      box-sizing: border-box;
    }

    .dialog-title-row h2 {
      min-width: 0;
      width: 100%;
      max-width: 100%;
      margin: 0;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .modal-random-next {
      flex: 0 0 auto;
      width: var(--modal-random-size, 52px);
      height: var(--modal-random-size, 52px);
      display: none;
      place-items: center;
      align-self: flex-start;
      justify-self: start;
      border: 1px solid rgba(255,255,255,.24);
      border-radius: var(--modal-random-radius, 18px);
      color: #1a1308;
      background: linear-gradient(145deg, var(--gold-2), #c99538);
      box-shadow: 0 16px 36px rgba(0,0,0,.34);
      cursor: pointer;
      transform: translateY(0);
      position: relative;
      z-index: 3;
      margin: 0 0 2px 0;
    }

    .modal.random-mode .modal-random-next {
      display: grid;
    }

    .modal-random-next:active {
      transform: scale(.97);
    }

    @media (max-width: 520px) {
    .dialog-title-row {
      gap: 9px;
    }

    .modal-random-next {
      --modal-random-size: 46px;
      --modal-random-radius: 16px;
    }
    }

    @media (max-width: 360px) {
    .dialog-title-row {
      gap: 8px;
    }

    .modal-random-next {
      --modal-random-size: 42px;
      --modal-random-radius: 14px;
    }
    }

    .dialog-content-top .kicker {
      max-width: none;
      width: 100%;
      padding-right: 64px;
      overflow: visible;
      box-sizing: border-box;
    }

    .dialog-content-top .kicker .tag {
      max-width: 100%;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.22;
      min-height: 27px;
      text-align: left;
    }

    @media (max-width: 520px) {
    .dialog-content-top .kicker {
      gap: 6px;
        padding-right: 52px;
    }

    .dialog-content-top .kicker .tag {
      font-size: .72rem;
        padding: 4px 8px;
    }
    }

    @media (max-width: 380px) {
    .dialog-content-top .kicker {
      padding-right: 0;
        margin-top: 42px;
    }
    }

    .dialog h2 {
      margin: 12px 0 0;
      font-family: var(--serif);
      font-size: clamp(2.4rem, 7vw, 5rem);
      line-height: .92;
      letter-spacing: -.06em;
    }

    .dialog-sub {
      margin-top: 12px;
      color: #d6d0c5;
    }

    .dialog-sub span {
      display: block;
      margin-top: 4px;
    }

    .dialog-sub span:first-child {
      margin-top: 0;
    }

    .dialog-sub .original-title {
      font-size: calc(1em + 2px);
      font-weight: 650;
      letter-spacing: .01em;
      color: #fff3dc;
    }

    .dialog-sub .director-line {
      font-size: calc(1em - 1px);
      color: #cfc8bd;
    }

    .dialog-main {
      padding: 24px;
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 18px;
    }

    .detail-box {
      border: 1px solid var(--line);
      background: rgba(255,255,255,.045);
      border-radius: 22px;
      padding: 18px;
      min-width: 0;
    }

    .detail-box h3 {
      margin: 0 0 10px;
      color: var(--gold-2);
      font-size: 1rem;
    }

    .detail-box p {
      margin: 0;
      color: #ddd8cf;
      line-height: 1.72;
    }

    .facts {
      display: grid;
      gap: 9px;
    }

    .fact {
      display: grid;
      grid-template-columns: 130px 1fr;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,.09);
      line-height: 1.45;
    }

    .fact:last-child {
      border-bottom: 0;
    }

    .fact b {
      color: var(--muted); font-weight: 650;
    }

    .fact span {
      color: #f1ece3;
    }

    .credit-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 12px;
    }

    .credit {
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(0,0,0,.2);
      border-radius: 15px;
      padding: 10px 11px;
      min-width: 0;
    }

    .credit b {
      display: block;
      color: #fff7e8;
      line-height: 1.2;
      font-size: .94rem;
    }

    .credit span {
      display: block;
      margin-top: 4px;
      color: #cfc7b9;
      font-size: .86rem;
      line-height: 1.35;
    }

    .credit em {
      display: block;
      margin-top: 4px;
      color: var(--dim);
      font-style: normal;
      font-size: .78rem;
      line-height: 1.3;
    }

    .sources {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .source-link {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 8px 10px;
      color: var(--blue);
      text-decoration: none;
      background: rgba(137,184,255,.07);
      font-size: .9rem;
    }

    .toast {
      position: fixed;
      z-index: 100;
      left: 50%;
      bottom: 20px;
      transform: translate(-50%, 120px);
      opacity: 0;
      transition: transform .22s ease, opacity .22s ease;
      color: #16110a;
      background: var(--gold-2);
      border-radius: 999px;
      padding: 12px 16px;
      box-shadow: 0 18px 50px rgba(0,0,0,.36);
      font-weight: 800;
      text-align: center;
      max-width: calc(100% - 28px);
    }

    .toast.show {
      transform: translate(-50%, 0); opacity: 1;
    }

    @media (max-width: 1060px) {
    .catalog, .dialog-main, .credit-list {
      grid-template-columns: 1fr;
    }

    .control-panel {
      grid-template-columns: 1fr 1fr;
    }
    }

    @media (max-width: 720px) {
    .shell {
      width: min(100% - 24px, var(--max));
    }

    .nav {
      height: auto; min-height: 68px; align-items: flex-start; padding: 12px 0;
    }

    .brand span {
      display: none;
    }

    .section-head {
      display: block;
    }

    .control-panel {
      grid-template-columns: 1fr; padding: 10px; border-radius: 20px;
    }

    .movie-card {
      --movie-card-cols: 1fr;
      --movie-card-min-height: 390px;
    }

    .cover {
      min-height: 270px;
    }

    .cover::after {
      background: linear-gradient(to top, rgba(18,22,34,.95), transparent 70%);
    }

    .movie-body {
      padding: 18px;
    }

    .movie-card .summary {
      -webkit-line-clamp: 3;
    }

    .dialog {
      border-radius: 24px;
    }

    .dialog-hero {
      padding: 22px; min-height: 220px;
    }

    .dialog-main {
      padding: 16px;
    }

    .fact {
      grid-template-columns: 1fr; gap: 2px;
    }
    }

    @media (max-width: 430px) {
h1 {
      font-size: 3rem;
    }

    .nav {
      gap: 10px;
    }

    .mark {
      width: 38px; height: 38px;
    }

    .rating {
      min-height: 68px;
    }

    .tag {
      min-height: 23px; padding: 4px 7px; font-size: .69rem;
    }
    }

    .home-screen {
      position: relative;
      padding: 34px 0 42px;
      overflow: hidden;
    }

    .home-glow {
      position: absolute;
      width: 460px;
      height: 460px;
      border-radius: 999px;
      filter: blur(28px);
      opacity: .55;
      pointer-events: none;
      z-index: -1;
    }

    .home-glow.one {
      left: -160px;
      top: -120px;
      background: radial-gradient(circle, rgba(243,198,107,.30), transparent 68%);
    }

    .home-glow.two {
      right: -180px;
      top: 120px;
      background: radial-gradient(circle, rgba(137,184,255,.22), transparent 68%);
    }

    .home-shell {
      display: grid;
      gap: 18px;
    }

    .home-hero-card {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
      gap: 24px;
      align-items: stretch;
      min-height: 420px;
      padding: clamp(20px, 4vw, 38px);
      border-radius: 36px;
      border: 1px solid rgba(255,255,255,.14);
      background:
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        radial-gradient(circle at 18% 12%, rgba(243,198,107,.16), transparent 34rem),
        rgba(12,15,24,.80);
      box-shadow: 0 34px 120px rgba(0,0,0,.50);
      overflow: hidden;
      isolation: isolate;
    }

    .home-hero-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
      background-size: 46px 46px;
      opacity: .24;
      mask-image: linear-gradient(to bottom, black, transparent 72%);
      z-index: -1;
    }

    .home-copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
    }

    .home-copy h1 {
      margin: 12px 0 14px;
      max-width: 760px;
      font-size: clamp(3rem, 7vw, 6.8rem);
      line-height: .86;
      letter-spacing: -.075em;
    }

    .home-copy p {
      max-width: 720px;
      margin: 0;
      color: #d6d0c5;
      line-height: 1.7;
      font-size: clamp(.98rem, 1.4vw, 1.14rem);
    }

    .primary-actions {
      display: grid;
      grid-template-columns: 1.1fr 1fr 1fr;
      gap: 12px;
      margin-top: 0;
    }

    .big-action {
      appearance: none;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 24px;
      padding: 16px;
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      min-height: 126px;
      color: var(--text);
      text-align: left;
      text-decoration: none;
      background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        rgba(10,13,21,.86);
      box-shadow: 0 18px 55px rgba(0,0,0,.27);
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .big-action:hover,

    .big-action:focus-visible {
      transform: translateY(-3px);
      border-color: rgba(243,198,107,.38);
      outline: none;
    }

    .big-action.is-main {
      background:
        radial-gradient(circle at 80% 10%, rgba(255,222,138,.22), transparent 45%),
        linear-gradient(180deg, rgba(243,198,107,.17), rgba(255,255,255,.035)),
        rgba(14,15,20,.92);
      border-color: rgba(243,198,107,.32);
    }

    .action-icon {
      width: 44px;
      height: 44px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: #191207;
      background: linear-gradient(145deg, var(--gold-2), #c99335);
      font-weight: 950;
      box-shadow: 0 12px 28px rgba(0,0,0,.26);
      position: relative;
      overflow: hidden;
    }

    .action-icon::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.34), transparent 30%);
      pointer-events: none;
    }

    .cards-icon {
      isolation: isolate;
    }

    .mini-card {
      position: absolute;
      width: 19px;
      height: 25px;
      border-radius: 6px;
      border: 2px solid #1b1308;
      background: #ffe2a0;
      box-shadow: 0 4px 10px rgba(0,0,0,.22);
      z-index: 1;
    }

    .mini-card.back {
      transform: translateX(-5px) rotate(-10deg);
      opacity: .72;
    }

    .mini-card.front {
      transform: translateX(5px) rotate(10deg);
    }

    .big-action.is-card-swipe .mini-card.front {
      animation: miniCardSwipeFront .78s cubic-bezier(.16,.86,.25,1) both;
    }

    .big-action.is-card-swipe .mini-card.back {
      animation: miniCardSwipeBack .78s cubic-bezier(.16,.86,.25,1) both;
    }

@keyframes miniCardSwipeFront {
      0% { transform: translateX(5px) rotate(10deg); opacity: 1; }
      45% { transform: translateX(20px) rotate(18deg); opacity: .95; }
      72% { transform: translateX(-18px) rotate(-12deg); opacity: .45; }
      100% { transform: translateX(5px) rotate(10deg); opacity: 1; }
    }

@keyframes miniCardSwipeBack {
      0% { transform: translateX(-5px) rotate(-10deg); opacity: .72; }
      55% { transform: translateX(3px) rotate(4deg); opacity: 1; }
      100% { transform: translateX(-5px) rotate(-10deg); opacity: .72; }
    }

    .catalog-icon {
      overflow: hidden;
    }

    .catalog-lines {
      width: 24px;
      display: grid;
      gap: 4px;
      z-index: 1;
    }

    .catalog-lines i {
      display: block;
      height: 4px;
      border-radius: 999px;
      background: #1b1308;
      box-shadow: 0 1px 0 rgba(255,255,255,.18);
    }

    .catalog-lines i:nth-child(2) {
      width: 82%;
    }

    .catalog-lines i:nth-child(3) {
      width: 62%;
    }

    .big-action.is-catalog-open .catalog-lines {
      animation: catalogOpen .62s cubic-bezier(.16,.9,.25,1) both;
    }

@keyframes catalogOpen {
      0% { transform: translateY(0); }
      40% { transform: translateY(-3px) scale(1.05); }
      72% { transform: translateY(2px) scale(.98); }
      100% { transform: translateY(0) scale(1); }
    }

    .dice-icon {
      position: relative;
      overflow: hidden;
    }

    .dice-icon::after,
    .modal-random-next::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.42), transparent 28%);
      pointer-events: none;
      opacity: .65;
    }

    .dice-face {
      position: relative;
      width: 24px;
      height: 24px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 2px;
      padding: 4px;
      border-radius: 8px;
      background: #1b1308;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        inset 0 -2px 6px rgba(0,0,0,.32),
        0 6px 14px rgba(0,0,0,.22);
      transform: rotate(-7deg);
      z-index: 1;
    }

    .dice-face i {
      width: 4px;
      height: 4px;
      border-radius: 999px;
      background: #ffe2a0;
      align-self: center;
      justify-self: center;
      box-shadow: 0 0 5px rgba(255,226,160,.42);
    }

    .dice-face i:nth-child(1) {
      grid-column: 1; grid-row: 1;
    }

    .dice-face i:nth-child(2) {
      grid-column: 3; grid-row: 1;
    }

    .dice-face i:nth-child(3) {
      grid-column: 1; grid-row: 2;
    }

    .dice-face i:nth-child(4) {
      grid-column: 3; grid-row: 2;
    }

    .dice-face i:nth-child(5) {
      grid-column: 1; grid-row: 3;
    }

    .dice-face i:nth-child(6) {
      grid-column: 3; grid-row: 3;
    }

    .modal-random-next .dice-face {
      width: 25px;
      height: 25px;
      transform: rotate(7deg);
    }

    .dice-icon.is-rolling .dice-face,
    .modal-random-next.is-rolling .dice-face {
      animation: diceRoll .78s cubic-bezier(.17, .86, .3, 1.08) both;
      transform: none;
    }

@keyframes diceRoll {
      0% {
        transform: rotate(0deg) scale(1);
      }
      24% {
        transform: rotate(150deg) scale(1.14);
      }
      50% {
        transform: rotate(340deg) scale(.96);
      }
      76% {
        transform: rotate(540deg) scale(1.07);
      }
      100% {
        transform: rotate(720deg) scale(1);
      }
    }

    .big-action:hover .dice-face,
    .big-action:focus-visible .dice-face {
      transform: rotate(5deg) scale(1.04);
    }

    .modal-random-next:hover .dice-face,
    .modal-random-next:focus-visible .dice-face {
      transform: rotate(-5deg) scale(1.05);
    }

    .mini-card,
    .dice-face {
      will-change: transform, opacity;
      backface-visibility: hidden;
      transform-style: preserve-3d;
    }

    .big-action.is-busy {
      pointer-events: none;
    }

    .big-action b {
      display: block;
      font-size: 1.16rem;
      line-height: 1.1;
    }

    .big-action small {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      line-height: 1.45;
      font-size: .88rem;
    }

    .home-preview {
      display: grid;
      place-items: center;
      min-width: 0;
    }

    .preview-phone {
      width: min(100%, 315px);
      min-height: 470px;
      padding: 14px;
      border-radius: 34px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(5,7,12,.72);
      box-shadow: 0 28px 85px rgba(0,0,0,.48);
      transform: rotate(2.5deg);
    }

    .preview-top {
      height: 22px;
      display: flex;
      gap: 5px;
      align-items: center;
      padding-left: 5px;
    }

    .preview-top span {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255,255,255,.28);
    }

    .preview-poster {
      position: relative;
      min-height: 330px;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.13);
      background:
        linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.34) 56%, rgba(255,255,255,.05) 100%),
        radial-gradient(circle at 45% 12%, rgba(255,222,138,.42), transparent 24%),
        linear-gradient(145deg, #14100c 0%, #3c1e17 44%, #b18c49 100%);
    }

    .preview-poster div {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 16px;
    }

    .preview-poster small {
      color: var(--gold-2);
      text-transform: uppercase;
      letter-spacing: .13em;
      font-size: .74rem;
      font-weight: 850;
    }

    .preview-poster strong {
      display: block;
      margin-top: 7px;
      font-family: var(--serif);
      font-size: 2.15rem;
      line-height: .92;
      letter-spacing: -.06em;
    }

    .preview-poster span {
      display: block;
      margin-top: 10px;
      color: #d7d0c4;
      font-size: .86rem;
    }

    .preview-lines {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .preview-lines span {
      height: 13px;
      border-radius: 999px;
      background: rgba(255,255,255,.10);
    }

    .preview-lines span:nth-child(2) {
      width: 74%;
    }

    .preview-lines span:nth-child(3) {
      width: 52%;
    }

    .catalog-section {
      min-height: 100dvh;
      padding-top: 22px;
      scroll-margin-top: 86px;
    }

    .catalog-scroll {
      overflow: visible;
    }

    @media (max-width: 980px) {
    .home-hero-card {
      grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-preview {
      display: none;
    }

    .primary-actions {
      grid-template-columns: 1fr;
    }

    .big-action {
      min-height: 104px;
    }
    }

    @media (max-width: 520px) {
    .home-screen {
      padding-top: 22px;
    }

    .home-hero-card {
      padding: 18px;
        border-radius: 28px;
    }

    .big-action {
      grid-template-columns: 40px minmax(0, 1fr);
        min-height: 96px;
        padding: 14px;
        border-radius: 20px;
    }

    .action-icon {
      width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    }

    .movie-card .ratings {
      display: none;
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }

      .movie-card .cover,
      .movie-card .movie-body {
        will-change: auto;
      }
    }

    @media (min-width: 1024px) {
      .catalog {
        --catalog-cols: repeat(auto-fill, minmax(300px, 1fr));
        --catalog-gap: 20px;
        --catalog-align: stretch;
      }

      .movie-card {
        --movie-card-min-height: 420px;
      }

      .movie-card:hover .cover {
        transform: scale(1.018);
      }
    }

    @media (min-width: 1400px) {
      .catalog {
        --catalog-cols: repeat(auto-fill, minmax(330px, 1fr));
      }

      .movie-card {
        --movie-card-min-height: 450px;
      }
    }

    @media (hover: hover) and (pointer: fine) {

      .small-btn:hover {
        transform: translateY(-1px);
      }
    }

    body.reel-lock {
      overflow: hidden !important;
      height: 100dvh !important;
      touch-action: none;
      overscroll-behavior: none;
    }

    .reel-modal {
      position: fixed;
      inset: 0;
      display: none;
      z-index: 90;
      color: var(--text);
      background:
        radial-gradient(circle at 50% 0%, rgba(243,198,107,.09), transparent 24rem),
        #05060a;
      overflow: hidden;
      overscroll-behavior: none;
    }

    .reel-modal.open {
      display: block;
    }

    .reel-shell {
      width: min(100vw, 540px);
      height: 100dvh;
      margin: 0 auto;
      padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      position: relative;
      box-sizing: border-box;
      overflow: hidden;
    }

    .reel-close {
      position: fixed;
      z-index: 110;
      top: max(12px, env(safe-area-inset-top));
      right: max(12px, env(safe-area-inset-right));
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 999px;
      background: rgba(0,0,0,.42);
      color: var(--text);
      backdrop-filter: blur(14px);
      box-shadow: 0 12px 40px rgba(0,0,0,.38);
      touch-action: manipulation;
    }

    .reel-close:hover {
      background: rgba(255,255,255,.12);
    }

    .reel-stage {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      contain: layout paint style;
      user-select: none;
      -webkit-user-select: none;
      overscroll-behavior: contain;
      touch-action: pan-y;
    }

    .reel-card {
      position: relative;
      z-index: 2;
      width: var(--reel-card-width, min(100%, 500px));
      height: var(--reel-card-height, 100%);
      min-height: 0;
      border-radius: var(--reel-card-radius, clamp(24px, 6vw, 34px));
      border: 1px solid rgba(255,255,255,.20);
      overflow: hidden;
      background-color: #11151f;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover;
      background-position: center;
      box-shadow: 0 28px 110px rgba(0,0,0,.76);
      transform: translate3d(var(--drag-x, 0px), 0, 0) rotate(var(--drag-rot, 0deg)) scale(var(--drag-scale, 1));
      transform-origin: 50% 86%;
      transition: transform .18s cubic-bezier(.18,.88,.24,1), opacity .18s ease;
      will-change: transform, opacity;
      backface-visibility: hidden;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: pan-y;
      contain: layout paint style;
      cursor: pointer;
    }

    .reel-card.is-dragging {
      transition: none;
      cursor: grabbing;
    }

    .reel-card.enter-next {
      animation: reelEnterNext .18s cubic-bezier(.16,.96,.3,1) both;
    }

    .reel-card.enter-back {
      animation: reelEnterBack .18s cubic-bezier(.16,.96,.3,1) both;
    }

@keyframes reelEnterNext {
      from { transform: translate3d(24%,0,0) rotate(3deg) scale(.985); opacity: 0; }
      to { transform: translate3d(0,0,0) rotate(0) scale(1); opacity: 1; }
    }

@keyframes reelEnterBack {
      from { transform: translate3d(-24%,0,0) rotate(-3deg) scale(.985); opacity: 0; }
    }

    .reel-poster {
      position: absolute;
      inset: 0;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover;
      background-position: center;
      transform: translateZ(0) scale(1.01);
      backface-visibility: hidden;
    }

    .reel-poster::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(5,6,10,.04) 0%, rgba(5,6,10,.10) 34%, rgba(5,6,10,.66) 64%, rgba(5,6,10,.96) 100%),
        radial-gradient(circle at 50% 15%, rgba(255,255,255,.08), transparent 20rem);
    }

    .reel-content {
      position: absolute;
      z-index: 2;
      left: clamp(10px, 3vw, 16px);
      right: clamp(10px, 3vw, 16px);
      bottom: clamp(10px, 2.6vh, 18px);
      max-height: var(--reel-content-max-height, 58%);
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      gap: var(--reel-content-gap, clamp(6px, 1vh, 9px));
      transform: translateZ(0);
    }

    .reel-title-block,
    .reel-data-panel {
      flex: 0 0 auto;
      margin: 0;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(5,7,12,.74);
      backdrop-filter: blur(16px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

    .reel-title-block {
      max-width: 100%;
      overflow: hidden;
      padding: clamp(8px, 1.4vh, 12px) clamp(10px, 2vw, 14px);
      border-radius: clamp(16px, 4.2vw, 20px);
    }

    .reel-content h3 {
      margin: 0;
      max-width: 100%;
      font-family: var(--serif);
      font-size: clamp(1.38rem, min(7.2vw, 5.6vh), 2.65rem);
      line-height: .95;
      letter-spacing: -.04em;
      color: #fff8ea;
      text-shadow: 0 12px 36px rgba(0,0,0,.84), 0 2px 10px rgba(0,0,0,.74);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .reel-original {
      display: block; margin-top: 7px; max-width: 100%;
    }

    .reel-original-title {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      overflow-wrap: anywhere;
      margin-top: 5px;
      color: rgba(240,231,212,.78);
      font-size: clamp(.72rem, min(2.5vw, 1.9vh), .86rem);
      font-weight: 640;
      line-height: 1.2;
      text-shadow: 0 6px 18px rgba(0,0,0,.62);
    }

    .reel-data-panel {
      padding: clamp(7px, 1.25vh, 11px);
      border-radius: clamp(15px, 4vw, 20px);
      overflow: hidden;
    }

    .reel-info-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: clamp(5px, .9vh, 8px);
      max-height: 54px;
      overflow: hidden;
    }

    .reel-info-chips .tag {
      min-height: 20px;
      padding: 3px 7px;
      font-size: clamp(.66rem, 1.6vh, .76rem);
      line-height: 1.15;
      background: rgba(255,255,255,.07);
    }

    .reel-data-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(5px, .9vh, 8px);
    }

    .reel-data-item {
      min-height: clamp(44px, 6.6vh, 62px);
      border: 1px solid rgba(255,255,255,.11);
      border-radius: clamp(12px, 3.4vw, 16px);
      padding: clamp(6px, 1vh, 9px) clamp(7px, 1.3vw, 10px);
      background: rgba(255,255,255,.062);
    }

    .reel-data-item small,
    .reel-rating-mini small {
      display: block;
      font-size: clamp(.56rem, 1.45vh, .70rem);
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .reel-data-item small {
      color: var(--muted);
    }

    .reel-data-item b {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 2px;
      color: var(--text);
      font-size: clamp(.74rem, min(2.4vw, 2vh), .92rem);
      line-height: 1.12;
    }

    .reel-ratings-mini {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(4px, .8vh, 6px);
      margin-top: clamp(5px, .8vh, 7px);
    }

    .reel-rating-mini {
      border-radius: clamp(10px, 3vw, 14px);
      padding: clamp(5px, .85vh, 7px) clamp(6px, 1.2vw, 8px);
      color: #17120b;
      background: linear-gradient(145deg, var(--gold-2), #c99538);
    }

    .reel-rating-mini small {
      color: rgba(23,18,11,.72);
      font-weight: 850;
    }

    .reel-rating-mini b {
      display: block;
      margin-top: 2px;
      font-size: clamp(.78rem, 2vh, 1rem);
      line-height: 1;
      font-weight: 950;
    }

    .reel-summary {
      margin: clamp(5px, .9vh, 8px) 0 0;
      color: #ede7db;
      line-height: 1.34;
      font-size: clamp(.72rem, min(2.35vw, 1.9vh), .86rem);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .reel-cast {
      flex: 0 0 auto;
      display: grid;
      gap: 4px;
      margin: 0;
      color: #efe4cf;
      font-size: clamp(.74rem, min(2.45vw, 1.95vh), .88rem);
      line-height: 1.23;
      text-shadow: 0 8px 22px rgba(0,0,0,.72);
    }

    .reel-cast > span {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-weight: 500;
    }

    .reel-cast b {
      color: var(--gold-2); font-weight: 950;
    }

    .reel-cast-pair {
      display: inline; white-space: normal;
    }

    .reel-actor-name {
      display: inline; color: #fff3d7; font-weight: 900;
    }

    .reel-role {
      display: inline; color: #d8d2c8; font-weight: 500;
    }

    .reel-hint {
      flex: 0 0 auto;
      margin: 0;
      text-align: center;
      color: rgba(245,243,236,.72);
      font-size: clamp(.72rem, 2.4vw, .86rem);
      line-height: 1.35;
      text-shadow: 0 8px 20px rgba(0,0,0,.75);
    }

    .reel-counter {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--gold-2);
      font-size: .86rem;
    }

    .reel-counter::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--gold);
      box-shadow: 0 0 16px var(--gold);
    }

    @media (max-width: 430px) {
    .reel-shell {
      padding-left: 8px; padding-right: 8px;
    }

    .reel-card {
      --reel-card-width: 100%;
      --reel-card-radius: 26px;
    }

    .reel-content {
      --reel-content-max-height: 60%;
    }

    .reel-data-grid {
      gap: 5px;
    }

    .reel-data-item {
      min-height: 43px;
    }
    }

    @media (max-height: 720px) {
    .reel-content {
      --reel-content-max-height: 65%;
      --reel-content-gap: 6px;
    }

    .reel-content h3 {
      font-size: clamp(1.05rem, min(6vw, 4.5vh), 2rem);
    }

    .reel-original-title {
      font-size: .70rem;
    }

    .reel-info-chips {
      max-height: 42px;
    }

    .reel-data-item {
      min-height: 38px; padding: 5px 6px;
    }

    .reel-data-item small,
      .reel-rating-mini small {
      font-size: .56rem;
    }

    .reel-data-item b {
      font-size: .72rem; -webkit-line-clamp: 1;
    }

    .reel-ratings-mini {
      grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
    }

    .reel-rating-mini {
      padding: 4px 5px;
    }

    .reel-rating-mini b {
      font-size: .72rem;
    }

    .reel-summary {
      -webkit-line-clamp: 1;
    }

    .reel-cast {
      font-size: .70rem;
    }

    .reel-cast > span {
      -webkit-line-clamp: 1;
    }
    }

    @media (max-height: 635px) {
    .reel-content {
      --reel-content-max-height: 70%;
    }

    .reel-title-block {
      padding: 7px 9px;
    }

    .reel-data-panel {
      padding: 6px;
    }

    .reel-info-chips .tag {
      min-height: 18px; padding: 2px 5px; font-size: .62rem;
    }
    .reel-hint {
      display: none;
    }
    }

    @media (min-width: 1024px) {
    .reel-shell {
      width: min(100vw, 760px);
        padding: 18px;
    }

    .reel-card {
      --reel-card-width: min(100%, 620px);
      --reel-card-height: min(100%, 860px);
    }

    .reel-content {
      --reel-content-max-height: 54%;
    }
    }

    @media (prefers-reduced-motion: reduce) {
    .reel-card,
      .reel-card.enter-next,
      .reel-card.enter-back {
      animation: none;
        transition: none;
    }
    }
  
    .total-count-panel { display:flex; justify-content:center; margin-top:0; }
    .total-count-box { width:min(100%,360px); text-align:center; }
    .total-count-box strong { font-size:clamp(2.2rem,5vw,3.2rem); }




    .data-tools-panel {
      display: flex;
      justify-content: center;
      margin-top: 14px;
    }

    .data-tools-box {
      width: min(100%, 520px);
      display: grid;
      gap: 10px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 22px;
      padding: 14px;
      background: rgba(255,255,255,.045);
    }

    .data-tools-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .data-tools-actions .small-btn {
      justify-content: center;
      min-height: 42px;
      text-align: center;
    }

    .data-tools-note {
      color: var(--muted);
      font-size: .84rem;
      line-height: 1.45;
      text-align: center;
    }


    .base-status {
      border: 1px solid rgba(243,198,107,.24);
      border-radius: 16px;
      padding: 10px 12px;
      color: var(--gold-2);
      background: rgba(243,198,107,.075);
      font-size: .9rem;
      font-weight: 800;
      line-height: 1.35;
      text-align: center;
    }

    .base-status[data-mode="custom"] {
      border-color: rgba(137,184,255,.30);
      color: var(--blue);
      background: rgba(137,184,255,.075);
    }

    .data-load-warning {
      border: 1px solid rgba(243,198,107,.28);
      border-radius: 16px;
      padding: 10px 12px;
      color: #ffe8ad;
      background: rgba(243,198,107,.08);
      line-height: 1.45;
      font-size: .86rem;
      text-align: center;
    }

    .data-load-warning[hidden] { display: none; }

    .credit-tag {
      border-color: rgba(137,184,255,.24);
      color: var(--blue);
      background: rgba(137,184,255,.07);
    }

    .credit-tag.full {
      border-color: rgba(107,220,152,.28);
      color: var(--green);
      background: rgba(107,220,152,.075);
    }

    .credit-tag.cleaned,
    .credit-tag.certified,
    .credit-tag.short {
      border-color: rgba(137,184,255,.24);
      color: var(--blue);
      background: rgba(137,184,255,.07);
    }

    @media (max-width: 620px) {
      .data-tools-actions {
        grid-template-columns: 1fr;
      }
    }

    .check-panel {
      display: none;
      width: min(var(--max), calc(100% - 32px));
      margin: 26px auto 34px;
      border: 1px solid rgba(243,198,107,.24);
      border-radius: 24px;
      background:
        radial-gradient(circle at 0% 0%, rgba(243,198,107,.12), transparent 26rem),
        rgba(10,13,21,.94);
      box-shadow: 0 24px 80px rgba(0,0,0,.38);
      overflow: hidden;
    }

    .check-panel.is-visible {
      display: block;
    }

    .check-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(255,255,255,.11);
    }

    .check-head h2 {
      margin: 0;
      color: var(--gold-2);
      font-size: 1.1rem;
      line-height: 1.2;
    }

    .check-head p {
      margin: 6px 0 0;
      color: var(--muted);
      line-height: 1.45;
      font-size: .9rem;
    }

    .check-badge {
      flex: 0 0 auto;
      border: 1px solid rgba(243,198,107,.34);
      border-radius: 999px;
      padding: 8px 11px;
      color: #1a1308;
      background: var(--gold-2);
      font-weight: 900;
      font-size: .82rem;
      white-space: nowrap;
    }

    .check-body {
      display: grid;
      gap: 12px;
      padding: 16px;
    }

    .check-group {
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 18px;
      background: rgba(255,255,255,.045);
      overflow: hidden;
    }

    .check-group h3 {
      margin: 0;
      padding: 12px 14px;
      color: #fff4dc;
      font-size: .95rem;
      border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .check-group.info {
      border-color: rgba(137,184,255,.20);
      background: rgba(137,184,255,.045);
    }

    .check-group.info h3 {
      color: var(--blue);
    }

    .check-group summary {
      cursor: pointer;
      list-style: none;
      outline: none;
    }

    .check-group summary::-webkit-details-marker {
      display: none;
    }

    .check-group summary h3::after {
      content: "+";
      float: right;
      color: var(--muted);
      font-weight: 900;
    }

    .check-group[open] summary h3::after {
      content: "−";
    }

    .check-group.check-collapsed .check-list {
      border-top: 1px solid rgba(255,255,255,.09);
    }

    .check-list {
      margin: 0;
      padding: 10px 14px 12px 32px;
      color: #ddd8cf;
      line-height: 1.55;
      font-size: .9rem;
    }

    .check-list li + li {
      margin-top: 6px;
    }

    .check-ok {
      margin: 0;
      padding: 18px;
      color: var(--green);
      font-weight: 800;
      text-align: center;
    }

    @media (max-width: 520px) {
      .check-panel {
        width: min(100% - 24px, var(--max));
        margin-top: 20px;
      }

      .check-head {
        display: block;
      }

      .check-badge {
        display: inline-flex;
        margin-top: 10px;
      }
    }


    .credit-note {
      margin: 12px 0 0;
      padding: 10px 12px;
      border: 1px solid rgba(243,198,107,.20);
      border-radius: 14px;
      color: #d8d2c8;
      background: rgba(243,198,107,.055);
      line-height: 1.5;
      font-size: .88rem;
    }

    .startup-error {
      width: min(var(--max), calc(100% - 32px));
      margin: 18px auto;
      border: 1px solid rgba(215,77,77,.38);
      border-radius: 18px;
      padding: 16px 18px;
      color: #fff3f3;
      background: rgba(215,77,77,.12);
      line-height: 1.5;
    }

    .startup-error strong {
      display: block;
      margin-bottom: 8px;
      color: #fff;
      font-size: 1.05rem;
    }

    .startup-error p {
      margin: 7px 0 0;
    }
