    body {
      overflow-x: hidden;
    }

    .page-shell {
      padding: 0 18px 24px;
      overflow-x: clip;
    }

    .page-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      align-items: start;
    }

    .main-content,
    .main-content > section,
    .hero-wrap,
    .hero-card,
    .content-panel,
    .accent-panel {
      min-width: 0;
      max-width: 100%;
    }

    .h-scroll,
    .top-grid,
    .news-strip,
    .genre-rail,
    .updates-grid {
      min-width: 0;
      max-width: 100%;
    }

    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    .hero-slide-link {
      width: 100%;
      max-width: 100%;
    }

    .search-shell {
      flex: 1 1 auto;
      min-width: 0;
    }

    body.dark-theme .content-panel,
    body.dark-theme .accent-panel,
    body.dark-theme .footer-panel {
      background: linear-gradient(180deg, rgba(16, 27, 43, 0.96), rgba(11, 21, 34, 0.98));
      border-color: rgba(147, 167, 199, 0.12);
      box-shadow: 0 28px 54px rgba(0, 0, 0, 0.3);
    }

    body.dark-theme .ad-banner {
      border-color: rgba(147, 167, 199, 0.12);
      background:
        radial-gradient(circle at top right, rgba(243, 93, 127, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(59, 167, 248, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(16, 27, 43, 0.96), rgba(11, 21, 34, 0.98));
      box-shadow: 0 28px 54px rgba(0, 0, 0, 0.3);
    }

    body.dark-theme .ad-banner::before {
      background: rgba(255, 255, 255, 0.05);
    }

    .app-shell { min-height: 100vh; padding-bottom: 48px; }

    .page-shell {
      padding: 0 18px 24px;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 1030;
      backdrop-filter: blur(16px);
      background: color-mix(in srgb, var(--bg) 86%, transparent);
      border-bottom: 1px solid rgba(23, 32, 51, 0.06);
    }

    .topbar-inner { gap: 12px; padding: 18px 0; }

    .menu-trigger {
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 16px;
      background: var(--surface);
      box-shadow: 0 10px 24px rgba(52, 107, 158, 0.08);
      color: var(--text);
    }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1 1 auto;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 800;
      background: linear-gradient(135deg, var(--blue-500), var(--rose-500));
      box-shadow: 0 16px 30px rgba(59, 167, 248, 0.24);
    }

    .brand-copy {
      min-width: 0;
      flex: 1 1 auto;
    }

    .brand-copy small {
      color: var(--muted);
      display: block;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .brand-copy strong {
      font-size: 1.1rem;
      line-height: 1.1;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-shell {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 54px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(139, 208, 255, 0.3);
      border-radius: 999px;
      padding: 0 18px;
      box-shadow: 0 12px 28px rgba(59, 167, 248, 0.08);
    }

    .search-container {
      position: relative;
      flex: 1;
      min-width: 280px;
    }

    .search-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .search-advanced {
      color: var(--blue-700);
      font-weight: 700;
      white-space: nowrap;
      font-size: 0.92rem;
    }

    .search-results {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      right: 0;
      background: var(--surface);
      border: 1px solid rgba(23, 32, 51, 0.08);
      border-radius: 20px;
      box-shadow: 0 18px 38px rgba(46, 90, 138, 0.16);
      padding: 10px;
      display: none;
      z-index: 1100;
    }

    .search-results.show {
      display: block;
    }

    .search-result-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      color: var(--text);
    }

    .search-result-item:hover {
      background: var(--surface-soft);
    }

    .search-result-item small {
      color: var(--muted);
    }

    .search-shell input {
      border: 0;
      outline: 0;
      background: transparent;
      width: 100%;
      color: var(--text);
    }

    .search-shell input::placeholder {
      color: var(--muted);
    }

    .theme-btn {
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 16px;
      background: var(--surface);
      color: var(--blue-700);
      box-shadow: 0 10px 24px rgba(52, 107, 158, 0.08);
    }

    .login-btn {
      min-height: 48px;
      padding: 0 22px;
      border: 0;
      color: #fff;
      font-weight: 700;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--blue-500), var(--rose-500));
      box-shadow: 0 14px 28px rgba(243, 93, 127, 0.22);
      max-width: min(44vw, 220px);
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 0 1 auto;
    }

    .section-space { padding-top: 36px; }

    .ad-banner {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(59, 167, 248, 0.14);
      border-radius: 28px;
      padding: 26px 28px;
      background:
        radial-gradient(circle at top right, rgba(243, 93, 127, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(59, 167, 248, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.96));
      box-shadow: var(--shadow);
    }

    .ad-banner::before {
      content: "";
      position: absolute;
      inset: auto -32px -44px auto;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: rgba(59, 167, 248, 0.08);
      pointer-events: none;
    }

    .ad-banner::after {
      content: "Ad";
      position: absolute;
      top: 16px;
      right: 18px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(23, 32, 51, 0.08);
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .ad-banner-copy {
      position: relative;
      z-index: 1;
      max-width: 720px;
    }

    .ad-banner-copy small {
      display: block;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 800;
      margin-bottom: 10px;
    }

    .ad-banner-copy h2 {
      margin: 0 0 10px;
      font-size: clamp(1.55rem, 2.2vw, 2.15rem);
      line-height: 1.1;
    }

    .ad-banner-copy p {
      margin: 0;
      color: var(--muted);
      max-width: 60ch;
    }

    .hero-wrap { margin-top: 16px; }

    .hero-card {
      position: relative;
      height: 420px;
      min-height: 420px;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .hero-slide {
      height: 420px;
      min-height: 420px;
      background-size: cover;
      background-position: center;
    }

    .hero-slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(14, 23, 38, 0.78) 0%, rgba(17, 26, 40, 0.42) 45%, rgba(24, 32, 44, 0.2) 100%),
        linear-gradient(180deg, rgba(72, 169, 242, 0.18), rgba(243, 93, 127, 0.15));
    }

    .hero-slide-link {
      position: relative;
      z-index: 2;
      display: block;
      height: 100%;
      min-height: 420px;
      color: inherit;
      text-decoration: none;
    }

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

    .hero-title-link:hover,
    .hero-title-link:focus-visible {
      color: #ffe5c4;
      text-decoration: none;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      min-height: 0;
      overflow: hidden;
      max-width: 620px;
      padding: 42px 28px 42px 42px;
    }

    .hero-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 25%);
      align-items: center;
      height: 100%;
      min-height: 420px;
    }

    .hero-art {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-right: 0;
    }

    .hero-poster {
      position: relative;
      width: min(100%, 280px);
      aspect-ratio: 3 / 4;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 22px 42px rgba(9, 17, 30, 0.32);
      border: 1px solid rgba(255, 255, 255, 0.24);
      transform: none;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
      padding: 10px;
    }

    .hero-poster::before {
      content: "";
      position: absolute;
      inset: 10px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      pointer-events: none;
      z-index: 2;
    }

    .hero-poster::after {
      content: "";
      position: absolute;
      inset: auto 18px 18px;
      height: 5px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--blue-500), var(--rose-500));
      z-index: 2;
    }

    .hero-poster img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 18px;
    }

    .hero-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      backdrop-filter: blur(12px);
      margin-bottom: 18px;
    }

    .hero-content h1 {
      font-size: clamp(2rem, 4vw, 3.7rem);
      line-height: 1.02;
      margin-bottom: 12px;
      color: #ffd39f;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .hero-latest-part {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 18px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      color: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);
      font-weight: 700;
      max-width: 100%;
    }

    .hero-part-link {
      text-decoration: none;
      transition: transform 0.18s ease, background-color 0.18s ease;
    }

    .hero-part-link:hover,
    .hero-part-link:focus-visible {
      color: rgba(255, 255, 255, 0.96);
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-1px);
    }

    .hero-latest-part .hero-latest-label {
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.72);
    }

    .hero-latest-part .part-accent-prefix {
      color: #9ed6ff;
    }

    .hero-latest-part .part-accent-number {
      color: #ffd39f;
    }

    .hero-content p {
      color: rgba(255, 255, 255, 0.84);
      font-size: 1.04rem;
      margin-bottom: 26px;
      max-width: 560px;
    }

    .hero-genre {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0;
      border-radius: 0;
      background: transparent;
      color: #9ed6ff;
      backdrop-filter: none;
      margin-bottom: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.78rem;
      max-width: 100%;
    }

    .hero-genre i {
      display: none;
    }

    .hero-genre-mobile {
      display: none;
    }

    .hero-desc {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      min-height: 3.2em;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
      min-height: 52px;
      padding: 0 24px;
      border-radius: 999px;
      font-weight: 700;
      border: 0;
    }

    .btn-hero-primary { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--rose-500)); }

    .btn-hero-secondary {
      color: #fff;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.32);
      backdrop-filter: blur(10px);
    }

    .carousel-indicators [data-bs-target] {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      border: 0;
      opacity: 0.65;
    }

    .content-panel,
    .accent-panel {
      background: color-mix(in srgb, var(--surface) 90%, transparent);
      border: 1px solid rgba(23, 32, 51, 0.05);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      padding: 26px;
    }

    .accent-panel {
      background: linear-gradient(180deg, rgba(255, 243, 245, 0.88), rgba(238, 247, 255, 0.88));
    }

    @media (min-width: 992px) {
      .page-layout {
        grid-template-columns: 260px minmax(0, 1fr);
      }

      .menu-trigger {
        display: none;
      }
    }

    .footer-wrap { margin-top: 42px; padding: 32px 0 40px; }

    .footer-panel {
      border-radius: 30px;
      padding: 28px;
      background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 96%, transparent));
      box-shadow: var(--shadow);
      border: 1px solid rgba(23, 32, 51, 0.05);
    }

    .social-links a {
      width: 46px;
      height: 46px;
      display: inline-grid;
      place-items: center;
      border-radius: 14px;
      background: #fff;
      color: var(--blue-700);
      margin-right: 10px;
      box-shadow: 0 12px 24px rgba(45, 97, 146, 0.08);
    }

    .footer-links a { color: var(--muted); margin-left: 18px; font-weight: 600; }

    .offcanvas {
      border-right: 1px solid rgba(23, 32, 51, 0.08);
      background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
    }

    .login-modal .modal-content {
      border: 0;
      border-radius: 30px;
      overflow: hidden;
      background: linear-gradient(180deg, #ffffff, #f4f9ff);
      box-shadow: 0 28px 70px rgba(9, 17, 30, 0.28);
    }

    .login-hero {
      background: linear-gradient(135deg, rgba(59, 167, 248, 0.18), rgba(243, 93, 127, 0.12));
      padding: 28px 28px 18px;
    }

    .side-nav a,
    .side-nav button {
      width: 100%;
      text-align: left;
      border: 0;
      padding: 14px 16px;
      color: var(--text);
      background: transparent;
      border-radius: 16px;
      font-weight: 700;
    }

    .nav-icon {
      width: 18px;
      display: inline-block;
      text-align: center;
      margin-right: 12px;
      color: var(--blue-700);
    }

    .side-nav a:hover,
    .side-nav button:hover { background: rgba(59, 167, 248, 0.08); }

    .sub-links a {
      display: block;
      padding: 10px 18px;
      color: var(--muted);
      font-weight: 600;
    }

    @media (max-width: 991.98px) {
      .hero-card, .hero-slide, .hero-grid { height: 360px; min-height: 360px; }
      .hero-content { padding: 32px 22px; }
      .hero-grid { grid-template-columns: 1fr minmax(170px, 24%); }
      .hero-poster { width: min(100%, 220px); }
    }

    @media (max-width: 767.98px) {
      .topbar-inner { flex-wrap: wrap; gap: 10px; }
      .topbar-brand { min-width: 0; flex: 1 1 0; }
      .search-container { order: 3; width: 100%; min-width: 100%; }
      .login-btn { max-width: min(42vw, 170px); padding: 0 16px; }
      .hero-card, .hero-slide, .hero-grid { height: 320px; min-height: 320px; }
      .hero-content { padding: 28px 18px; }
      .hero-grid { grid-template-columns: minmax(0, 1fr) 37%; }
      .hero-art { display: flex; align-items: flex-end; padding: 12px 12px 12px 0; }
      .hero-poster { width: 100%; max-width: none; }
      .hero-genre {
        font-size: 0.72rem;
        margin-bottom: 10px;
      }
      .hero-genre-full {
        display: none;
      }
      .hero-genre-mobile {
        display: inline;
      }
      .hero-content h1 {
        font-size: clamp(1.42rem, 6vw, 2rem);
        line-height: 1.05;
        color: #ffd39f;
        -webkit-line-clamp: 3;
      }
      .hero-title-link:hover,
      .hero-title-link:focus-visible {
        color: #ffe5c4;
      }
      .content-panel, .accent-panel, .footer-panel { padding: 20px; border-radius: 24px; }
      .cover-shell { width: 100%; max-width: none; }
      .footer-links a { margin: 0 14px 0 0; }
    }

    @media (max-width: 575.98px) {
      .hero-content h1 {
        -webkit-line-clamp: 3;
      }
      .topbar-inner { gap: 8px; }
      .topbar-brand { gap: 10px; }
      .brand-mark,
      .menu-trigger,
      .theme-btn {
        width: 44px;
        height: 44px;
      }
      .brand-copy small { display: none; }
      .brand-copy strong { font-size: 0.98rem; }
      .login-btn { max-width: min(40vw, 148px); font-size: 0.92rem; }
    }
