:root {
      --bg: #000000;
      --surface: #0a0a0f;
      --surface-hover: #1a1a24;
      --text: #F3F4F6;
      --text-muted: #9CA3AF;
      --accent: #FCEB92;
      --accent-hover: #F8E26B;
      --accent-gold: #FCEB92;
      --gradient-1: linear-gradient(135deg, #4B5563 0%, #FCEB92 100%);
      --gradient-2: none;
      --fade-side: rgba(0,0,0,0.75);
      --overlay-bg: rgba(0,0,0,0.95);
      --fade-card-start: rgba(45,55,72,0.95);
      --fade-card-mid: rgba(45,55,72,0.4);
      --glass: rgba(255,255,255,0.05);
      --glass-border: rgba(255,255,255,0.1);
      --shadow: 0 4px 12px rgba(0,0,0,0.8);
      --glow: none;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-style: normal;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      overflow-y: auto;
      text-transform: lowercase;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      -webkit-tap-highlight-color: transparent;
    }

    ::-webkit-scrollbar {
      width: 12px;
    }

    ::-webkit-scrollbar-track {
      background: var(--surface);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 6px;
      border: 2px solid var(--surface);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-hover);
    }

    * {
      scrollbar-width: thin;
      scrollbar-color: var(--accent) var(--surface);
    }

    #particles-js {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    body.playing {
      overflow: hidden;
    }

    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 4%;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    }

    .header.scrolled {
      background: rgba(0,0,0,0.95);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--glass-border);
      box-shadow: var(--shadow);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }

    .logo img {
      width: 48px;
      height: 48px;
      border-radius: 8px;
    }

    .logo-text {
      font-size: 1.5rem;
      font-weight: 700;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: 0.02em;
    }

    .nav {
      display: flex;
      gap: 24px;
      align-items: center;
    }

    .nav a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      transition: color 0.3s ease;
      cursor: pointer;
      position: relative;
    }

    .nav a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient-1);
      border-radius: 1px;
      transition: width 0.3s ease;
    }

    .nav a:hover,
    .nav a.active {
      color: var(--text);
    }

    .nav a:hover::after,
    .nav a.active::after {
      width: 100%;
    }

    .hero-banner {
      position: relative;
      height: 60vh;
      min-height: 360px;
      display: flex;
      align-items: center;
      overflow: hidden;
      margin-bottom: 0;
      z-index: 2;
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 70% 20%, rgba(224,92,255,0.16), transparent 28%),
        linear-gradient(90deg, var(--bg) 0%, var(--fade-side) 30%, transparent 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 42%);
      z-index: 2;
      pointer-events: none;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 1;
      overflow: hidden;
    }

    .hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.38;
      filter: saturate(1.05) contrast(1.05) brightness(0.9);
    }

    .hero-content {
      position: relative;
      z-index: 3;
      padding: 0 4%;
      max-width: 600px;
    }

    .hero-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 720px;
      align-items: flex-start;
    }

    .hero-title-logo {
      width: 100%;
      max-width: 520px;
      height: auto;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35));
    }

    .hero-title-logo.hidden {
      display: none;
    }

    .hero-content h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 700;
      margin-bottom: 16px;
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    .hero-content p {
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--text-muted);
      margin-bottom: 28px;
      font-weight: 300;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 28px;
      border: none;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
      letter-spacing: 0.02em;
    }

    .btn-play {
      background: var(--accent);
      color: #1A202C;
    }

    .btn-play:hover {
      background: var(--accent-hover);
      box-shadow: 0 4px 12px rgba(252,235,146,0.5);
      transform: translateY(-1px);
    }

    .btn-info {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--glass-border);
    }

    .btn-info:hover {
      background: var(--surface-hover);
      border-color: #FCEB92;
    }

    .content-section {
      position: relative;
      z-index: 2;
      padding: 0 4% 40px;
      overflow: visible;
    }

    .section-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 20px;
      color: var(--text);
      letter-spacing: 0.02em;
    }

    .row-container {
      position: relative;
      margin-bottom: 12px;
      padding-top: 8px;
      overflow: visible;
      transition: opacity 0.4s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
    }

    .row-container.hidden {
      opacity: 0;
      max-height: 0;
      margin-bottom: 0;
      overflow: hidden;
    }

    .row-scroll {
      display: flex;
      gap: 4px;
      overflow-x: auto;
      overflow-y: visible;
      scroll-behavior: smooth;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 20px 20px 20px 20px;
      -webkit-overflow-scrolling: touch;
      margin: 0 -20px;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .row-scroll::-webkit-scrollbar {
      display: none;
    }

    .row-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 50px;
      height: 50px;
      background: transparent;
      border: none;
      color: var(--text);
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      opacity: 0;
      pointer-events: none;
      text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }

    .row-container:hover .row-nav-btn {
      opacity: 1;
      pointer-events: auto;
    }

    .row-nav-btn:hover {
      color: var(--accent);
      transform: translateY(-50%) scale(1.2);
      text-shadow: 0 4px 12px rgba(252,235,146,0.6);
    }

    .row-nav-btn.hidden {
      display: none;
    }

    .row-nav-btn.prev {
      left: 10px;
    }

    .row-nav-btn.next {
      right: 10px;
    }

    @media (max-width: 860px) {
      .row-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
      }

      .row-nav-btn.prev {
        left: 5px;
      }

      .row-nav-btn.next {
        right: 5px;
      }
    }

    .title-card {
      position: relative;
      min-width: 180px;
      width: 180px;
      aspect-ratio: 2/3;
      cursor: pointer;
      transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
      flex-shrink: 0;
      padding: 2px;
    }

    .title-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 10px;
      overflow: hidden;
    }

    .title-card-border {
      position: absolute;
      inset: 0;
      border-radius: 10px;
      pointer-events: none;
      z-index: 1;
    }

    .title-card-border::before,
    .title-card-border::after {
      content: '';
      position: absolute;
      background: var(--accent);
    }

    .title-card-border::before {
      top: 0;
      left: 0;
      width: 0;
      height: 2px;
      transition: width 0.2s ease;
    }

    .title-card-border::after {
      top: 0;
      right: 0;
      width: 2px;
      height: 0;
      transition: height 0.2s ease 0.2s;
    }

    .title-card-border .bottom,
    .title-card-border .left {
      position: absolute;
      background: var(--accent);
    }

    .title-card-border .bottom {
      bottom: 0;
      right: 0;
      width: 0;
      height: 2px;
      transition: width 0.2s ease 0.4s;
    }

    .title-card-border .left {
      bottom: 0;
      left: 0;
      width: 2px;
      height: 0;
      transition: height 0.2s ease 0.6s;
    }

    .title-card:hover .title-card-border::before {
      width: 100%;
    }

    .title-card:hover .title-card-border::after {
      height: 100%;
    }

    .title-card:hover .title-card-border .bottom {
      width: 100%;
    }

    .title-card:hover .title-card-border .left {
      height: 100%;
    }

    .title-card:hover {
      transform: scale(1.08) translateY(-8px);
      z-index: 10;
      box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    }

    .title-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: filter 0.4s ease;
    }

    .title-card:hover img {
      filter: brightness(0.7);
    }

    .title-card-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(0deg, var(--fade-card-start) 0%, var(--fade-card-mid) 36%, transparent 62%),
        radial-gradient(circle at 50% 15%, rgba(224,92,255,0.14), transparent 34%);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
      color: #FFFFFF;
    }

    .title-card:hover .title-card-overlay {
      opacity: 1;
    }

    .title-card-unreleased-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      padding: 4px 10px;
      background: rgba(0, 0, 0, 0.75);
      color: var(--accent);
      border: 1px solid rgba(252, 235, 146, 0.3);
      border-radius: 999px;
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 3;
    }

    .title-card-continue-badge {
      position: absolute;
      bottom: 12px;
      left: 12px;
      padding: 5px 10px;
      background: rgba(0, 0, 0, 0.75);
      color: var(--text);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      opacity: 0.95;
      pointer-events: none;
      transition: background 0.2s ease, color 0.2s ease;
      z-index: 3;
    }

    .title-card.continue .title-card-continue-badge {
      opacity: 1;
    }

    .title-card.continue:hover .title-card-continue-badge {
      background: var(--accent);
      color: #1A202C;
    }

    .title-card-remove-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      color: var(--text);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      opacity: 0;
      transition: opacity 0.2s ease, background 0.2s ease;
      z-index: 4;
      padding: 0;
    }

    .title-card.continue:hover .title-card-remove-btn {
      opacity: 1;
    }

    .title-card-remove-btn:hover {
      background: var(--accent);
      color: #1A202C;
      border-color: var(--accent);
    }

    .title-card.removing {
      animation: cardFadeOut 0.4s ease forwards;
    }

    @keyframes cardFadeOut {
      0% {
        opacity: 1;
        transform: scale(1);
      }
      100% {
        opacity: 0;
        transform: scale(0.95);
      }
    }

    .title-card.unreleased {
      filter: grayscale(1) contrast(0.9);
      opacity: 0.82;
    }

    .title-card.unreleased:hover .title-card-unreleased-badge {
      opacity: 1;
    }

    .title-card-title {
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 6px;
      text-transform: none;
      font-family: 'Bebas Neue', 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      transition: opacity 0.4s ease;
    }

    .title-card-title.movie-title {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none;
    }

    .title-card-overlay.has-logo .title-card-title {
      opacity: 0;
      pointer-events: none;
    }

    .title-card:hover .title-card-title {
      opacity: 0;
      pointer-events: none;
    }

    .title-card-logo {
      width: 100%;
      max-height: 46px;
      object-fit: contain;
      margin-bottom: 10px;
      display: block;
      filter: drop-shadow(0 2px 14px rgba(0,0,0,0.4));
    }

    .movie-title {
      font-family: 'Bebas Neue', sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
    }

    .tv-title {
      font-family: 'Audiowide', cursive;
      text-transform: none;
      letter-spacing: 0.03em;
      font-weight: 600;
    }

    .title-card-meta {
      font-size: 0.7rem;
      color: var(--accent);
      font-weight: 400;
    }

    .title-card-rating {
      position: absolute;
      top: 12px;
      right: 4px;
      background: rgba(0,0,0,0.85);
      color: var(--accent);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      border: 1px solid var(--accent);
      letter-spacing: 0.05em;
      z-index: 2;
      pointer-events: none;
      opacity: 0;
      transform: translateY(-5px);
      transition: opacity 0.2s ease 0.8s, transform 0.2s ease 0.8s, opacity 0.2s ease, transform 0.2s ease;
    }

    .title-card:hover .title-card-rating {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.2s ease 0.8s, transform 0.2s ease 0.8s;
    }

    .channel-card {
      position: relative;
      min-width: 180px;
      width: 180px;
      aspect-ratio: 2/3;
      cursor: pointer;
      transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
      flex-shrink: 0;
      padding: 2px;
    }

    .channel-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 10px;
      overflow: hidden;
      background: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .channel-card-border {
      position: absolute;
      inset: 0;
      border-radius: 10px;
      pointer-events: none;
      z-index: 1;
    }

    .channel-card-border::before,
    .channel-card-border::after {
      content: '';
      position: absolute;
      background: var(--accent);
    }

    .channel-card-border::before {
      top: 0; left: 0;
      width: 0; height: 2px;
      transition: width 0.2s ease;
    }

    .channel-card-border::after {
      top: 0; right: 0;
      width: 2px; height: 0;
      transition: height 0.2s ease 0.2s;
    }

    .channel-card-border .bottom,
    .channel-card-border .left {
      position: absolute;
      background: var(--accent);
    }

    .channel-card-border .bottom {
      bottom: 0; right: 0;
      width: 0; height: 2px;
      transition: width 0.2s ease 0.4s;
    }

    .channel-card-border .left {
      bottom: 0; left: 0;
      width: 2px; height: 0;
      transition: height 0.2s ease 0.6s;
    }

    .channel-card:hover .channel-card-border::before { width: 100%; }
    .channel-card:hover .channel-card-border::after  { height: 100%; }
    .channel-card:hover .channel-card-border .bottom { width: 100%; }
    .channel-card:hover .channel-card-border .left   { height: 100%; }

    .channel-card:hover {
      transform: scale(1.08) translateY(-8px);
      z-index: 10;
      box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    }

    .channel-card-logo {
      width: 70%;
      height: 70%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
      transition: filter 0.4s ease;
    }

    .channel-card-fallback {
      display: none;
      width: 80%;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 1rem;
      font-family: 'Bebas Neue', 'Montserrat', sans-serif;
      letter-spacing: 0.06em;
      color: var(--text);
      line-height: 1.3;
      padding: 8px;
      transition: filter 0.4s ease;
    }

    .channel-card:hover .channel-card-logo {
      filter: brightness(0.7) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    }

    .channel-card:hover .channel-card-fallback {
      filter: brightness(0.7);
    }

    .channel-card-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(0deg, var(--fade-card-start) 0%, var(--fade-card-mid) 36%, transparent 62%),
        radial-gradient(circle at 50% 15%, rgba(224,92,255,0.14), transparent 34%);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
      color: #fff;
    }

    .channel-card:hover .channel-card-overlay {
      opacity: 1;
    }

    .channel-card-live {
      position: absolute;
      top: 12px;
      left: 12px;
      background: #e8232a;
      color: #fff;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      z-index: 3;
    }

    .channel-card-name {
      font-size: 0.85rem;
      font-weight: 600;
      font-family: 'Bebas Neue', 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      color: #fff;
      text-transform: none;
      z-index: 2;
    }

    .live-filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      margin-bottom: 16px;
      padding: 8px 0;
    }

    .live-search-input {
      margin-left: auto;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      color: var(--text);
      padding: 8px 16px;
      border-radius: 20px;
      font-family: inherit;
      font-size: 0.8rem;
      outline: none;
      transition: all 0.2s ease;
      width: 200px;
    }

    .live-search-input:focus {
      border-color: var(--accent);
    }

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

    .player-overlay {
      position: fixed;
      inset: 0;
      background: var(--bg);
      z-index: 1000;
      display: none;
      flex-direction: column;
    }

    .player-overlay.active {
      display: flex;
    }

    .player-topbar {
      height: 60px;
      background: var(--surface);
      border-bottom: 1px solid var(--glass-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      flex-shrink: 0;
    }

    .player-logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .player-logo img {
      width: 40px;
      height: 40px;
      border-radius: 8px;
    }

    .player-logo span {
      font-size: 1.3rem;
      font-weight: 700;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: 0.08em;
    }

    .player-close-btn {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      color: var(--text);
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      font-family: inherit;
    }

    .player-close-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    .player-layout {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    .player-sidebar {
      width: 200px;
      background: var(--surface);
      border-right: 1px solid var(--glass-border);
      padding: 20px 0;
      flex-shrink: 0;
      transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
      position: relative;
    }

    .player-sidebar.collapsed {
      width: 70px;
    }

    .player-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .player-nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 24px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.95rem;
      transition: all 0.3s ease;
      position: relative;
      white-space: nowrap;
      overflow: hidden;
    }

    .player-sidebar.collapsed .player-nav-item {
      justify-content: center;
      padding: 12px;
    }

    .player-sidebar.collapsed .player-nav-item span {
      opacity: 0;
      width: 0;
      overflow: hidden;
    }

    .player-nav-item span {
      transition: opacity 0.3s ease, width 0.3s ease;
    }

    .player-nav-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--accent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .player-nav-item:hover {
      background: var(--glass);
      color: var(--text);
    }

    .player-nav-item:hover::before {
      opacity: 1;
    }

    .player-nav-item i {
      font-size: 1.1rem;
      width: 20px;
      text-align: center;
      flex-shrink: 0;
    }

    .source-switcher {
      padding: 16px 24px;
      border-top: 1px solid var(--glass-border);
      margin-top: 20px;
    }

    .source-switcher-title {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .source-dropdown {
      position: relative;
      width: 100%;
    }

    .source-select {
      width: 100%;
      padding: 10px 12px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 6px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FCEB92' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }

    .source-select:hover {
      background-color: var(--surface-hover);
      border-color: var(--accent);
    }

    .source-select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(252, 235, 146, 0.1);
    }

    .source-select option {
      background: var(--surface);
      color: var(--text);
      padding: 10px;
    }

    .source-warning {
      margin-top: 8px;
      padding: 8px 10px;
      background: rgba(252, 235, 146, 0.1);
      border: 1px solid rgba(252, 235, 146, 0.3);
      border-radius: 4px;
      font-size: 0.7rem;
      line-height: 1.4;
      color: var(--text-muted);
    }

    .source-warning i {
      color: var(--accent);
      margin-right: 4px;
    }

    .player-sidebar.collapsed .source-switcher {
      display: none;
    }

    @media (max-width: 860px) {
      .source-switcher {
        display: none;
      }
    }

    
    #episodeSelector.episode-selector {
      padding: 0;
      border: none;
      margin-top: 12px;
      display: inline-flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      background: transparent;
      box-shadow: none;
      max-height: none;
      overflow: visible;
      width: auto;
    }

    .episode-dropdown {
      width: auto;
      min-width: 140px;
      border-radius: 0;
      border: none;
      background: transparent;
      color: var(--text);
      padding: 10px 12px;
      font-size: 0.95rem;
      font-weight: 600;
      outline: none;
      appearance: none;
      transition: background 0.2s ease;
      box-shadow: none;
      white-space: nowrap;
    }

    .episode-dropdown:hover,
    .episode-dropdown:focus {
      border-color: rgba(252,235,146,0.45);
      background: rgba(255,255,255,0.08);
    }

    .episode-dropdown option {
      background: var(--surface);
      color: var(--text);
    }

    .player-main {
      flex: 1;
      background: black;
      position: relative;
      overflow: hidden;
    }

    .player-iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

    @media (max-width: 860px) {
      .player-sidebar {
        width: 70px;
      }

      .sidebar-ad {
        display: none;
      }

      .player-nav-item {
        justify-content: center;
        padding: 12px;
      }

      .player-nav-item span {
        display: none;
      }

      .player-logo span {
        display: none;
      }

      .player-close-btn span {
        display: none;
      }

      .player-close-btn {
        padding: 10px;
      }
    }

    .info-overlay {
      position: fixed;
      inset: 0;
      background: var(--overlay-bg);
      z-index: 999;
      display: none;
      overflow-y: auto;
      animation: fadeIn 0.3s ease;
    }

    .info-overlay.active {
      display: block;
    }

    .info-container {
      position: relative;
      width: 100%;
      min-height: 100vh;
    }

    .info-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 70vh;
      overflow: hidden;
      z-index: 1;
    }

    .info-backdrop::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 80% 20%, rgba(224,92,255,0.18), transparent 24%),
        linear-gradient(90deg, var(--bg) 0%, var(--fade-side) 42%, transparent 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 60%);
      z-index: 2;
      pointer-events: none;
    }

    .info-backdrop img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.45;
      position: relative;
      z-index: 1;
    }

    .info-content {
      position: relative;
      z-index: 3;
      padding: 120px 4% 60px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .info-close {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 10;
      background: rgba(0,0,0,0.7);
      border: none;
      color: white;
      font-size: 2rem;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease;
    }

    .info-close:hover {
      background: rgba(0,0,0,0.9);
    }

    .info-header {
      display: flex;
      gap: 32px;
      margin-bottom: 40px;
    }

    .info-poster {
      flex-shrink: 0;
      width: 300px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }

    .info-poster img {
      width: 100%;
      height: auto;
      display: block;
    }

    .info-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .info-title {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      margin-bottom: 16px;
      line-height: 1.1;
      text-transform: none;
      font-family: 'Bebas Neue', 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
    }

    .info-title-logo {
      width: 100%;
      max-width: 420px;
      height: auto;
      object-fit: contain;
      display: block;
      margin-bottom: 12px;
      filter: drop-shadow(0 3px 18px rgba(0,0,0,0.35));
    }

    .hero-title-wrap.logo-visible h1 {
      display: none;
    }

    .info-meta {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-bottom: 20px;
      flex-wrap: wrap;
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .info-meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .info-rating-badge {
      background: var(--glass);
      border: 1px solid var(--accent);
      color: var(--accent);
      padding: 4px 12px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 0.85rem;
    }

    .info-overview {
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--text-muted);
      margin-bottom: 28px;
    }

    .info-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .info-genres {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    .info-genre {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .info-section {
      margin-top: 40px;
    }

    .info-section-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 16px;
      color: var(--text);
    }

    .info-cast {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding: 8px 0;
      scrollbar-width: none;
    }

    .info-cast::-webkit-scrollbar {
      display: none;
    }

    .cast-member {
      flex-shrink: 0;
      width: 120px;
      text-align: center;
    }

    .cast-member img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 8px;
      border: 2px solid var(--glass-border);
    }

    .cast-member-name {
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .cast-member-character {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .info-trailers-container {
      position: relative;
      margin-bottom: 20px;
    }

    .info-trailers {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding: 8px 20px;
      margin: 0 -20px;
      scrollbar-width: none;
      scroll-behavior: smooth;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .info-trailers::-webkit-scrollbar {
      display: none;
    }

    .trailer-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      background: rgba(0,0,0,0.8);
      border: 1px solid var(--glass-border);
      border-radius: 50%;
      color: var(--text);
      font-size: 1.2rem;
      cursor: pointer;
      z-index: 10;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .trailer-nav-btn:hover {
      background: rgba(0,0,0,0.95);
      color: var(--accent);
      border-color: var(--accent);
      transform: translateY(-50%) scale(1.1);
    }

    .trailer-nav-btn.visible {
      display: flex;
    }

    .trailer-nav-btn.prev {
      left: 10px;
    }

    .trailer-nav-btn.next {
      right: 10px;
    }

    .trailer-item {
      flex-shrink: 0;
      width: 320px;
      cursor: pointer;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid var(--glass-border);
      transition: border-color 0.3s ease, transform 0.3s ease;
    }

    .trailer-item:hover {
      border-color: var(--accent);
      transform: scale(1.05);
    }

    .trailer-thumbnail {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: var(--surface);
    }

    .trailer-thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .trailer-play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      background: rgba(0,0,0,0.8);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      font-size: 24px;
    }

    .trailer-title {
      padding: 12px;
      font-size: 0.85rem;
      font-weight: 500;
      background: var(--surface);
    }

    .player-page {
      position: fixed;
      inset: 0;
      background: var(--bg);
      z-index: 1000;
      display: none;
      flex-direction: column;
    }

    .player-page.active {
      display: flex;
    }

    @media (max-width: 860px) {
      .info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .info-poster {
        width: 240px;
      }

      .info-meta {
        justify-content: center;
      }

      .info-buttons {
        justify-content: center;
      }

      .info-genres {
        justify-content: center;
      }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .loading {
      text-align: center;
      padding: 40px;
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    .hidden {
      display: none !important;
    }

    .settings-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 20px 0;
    }

    .settings-content {
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 24px;
    }

    .settings-group {
      margin-bottom: 32px;
    }

    .settings-group:last-child {
      margin-bottom: 0;
    }

    .settings-group h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 16px;
      color: var(--accent);
      letter-spacing: 0.02em;
    }

    .settings-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--glass-border);
      cursor: pointer;
      font-size: 0.9rem;
    }

    .settings-item:last-child {
      border-bottom: none;
    }

    .settings-item input[type="checkbox"] {
      width: 44px;
      height: 24px;
      appearance: none;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      position: relative;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .settings-item input[type="checkbox"]::before {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--text-muted);
      top: 2px;
      left: 2px;
      transition: all 0.3s ease;
    }

    .settings-item input[type="checkbox"]:checked {
      background: var(--accent);
      border-color: var(--accent);
    }

    .settings-item input[type="checkbox"]:checked::before {
      background: #1A202C;
      left: 22px;
    }

    .settings-info {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 8px;
    }

    .search-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      overflow: visible;
      transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    }

    .search-input {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      padding: 8px 16px 8px 40px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.85rem;
      width: 0;
      opacity: 0;
      transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
      outline: none;
      flex-shrink: 0;
    }

    .search-input.active {
      width: 200px;
      opacity: 1;
    }

    .search-input::placeholder {
      color: var(--text-muted);
      opacity: 0;
      transition: opacity 0.3s ease 0.2s;
    }

    .search-input.active::placeholder {
      opacity: 1;
    }

    .search-btn {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.1rem;
      cursor: pointer;
      position: absolute;
      left: 8px;
      z-index: 2;
      padding: 8px;
      transition: color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      pointer-events: auto;
    }

    .search-btn:hover {
      color: var(--accent);
    }

    .search-btn.active {
      color: var(--accent);
    }

    .search-results {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 360px;
      max-width: calc(100vw - 32px);
      max-height: 480px;
      overflow-y: auto;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
      z-index: 110;
      box-shadow: var(--shadow);
    }

    @media (max-width: 680px) {
      .search-results {
        width: 90vw;
        max-width: 320px;
      }
    }

    .search-results.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .search-result-item {
      display: flex;
      gap: 12px;
      padding: 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

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

    .search-result-item img {
      width: 45px;
      height: 67px;
      object-fit: cover;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .search-result-info h4 {
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .search-result-info p {
      font-size: 0.7rem;
      color: var(--text-muted);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .search-see-all {
      padding: 12px;
      text-align: center;
      border-top: 1px solid var(--glass-border);
      margin: 8px -8px -8px;
      cursor: pointer;
      color: var(--accent);
      font-size: 0.85rem;
      font-weight: 600;
      transition: background 0.2s;
    }

    .search-see-all:hover {
      background: var(--surface-hover);
    }

    .search-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 16px;
      padding: 20px 0;
    }

    .search-grid .title-card {
      width: 100%;
      min-width: unset;
    }

    body.hide-ratings .title-card-rating {
      display: none;
    }

    body.auto-hide-hero .hero-banner {
      transition: transform 0.4s ease, opacity 0.4s ease;
    }

    body.auto-hide-hero.scrolled .hero-banner {
      transform: translateY(-20px);
      opacity: 0;
      pointer-events: none;
    }

    body.compact-view .title-card {
      min-width: 140px;
      width: 140px;
    }

    body.compact-view .search-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 12px;
    }

    body.hide-year .title-card-meta {
      display: none;
    }

    
    
    
    .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--text);
      font-size: 1.5rem;
      cursor: pointer;
      padding: 8px;
      z-index: 101;
      transition: color 0.3s ease;
    }

    .mobile-menu-toggle:hover {
      color: var(--accent);
    }

    .mobile-nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.95);
      backdrop-filter: blur(10px);
      z-index: 999;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.active {
      display: block;
      opacity: 1;
    }

    .mobile-nav-content {
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
      padding: 80px 24px 24px;
      animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%);
      }
      to {
        transform: translateX(0);
      }
    }

    .mobile-nav-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 50%;
      color: var(--text);
      font-size: 1.5rem;
      cursor: pointer;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .mobile-nav-close:hover {
      background: var(--surface-hover);
      color: var(--accent);
      transform: rotate(90deg);
    }

    .mobile-nav-links {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 32px;
    }

    .mobile-nav-links a {
      color: var(--text);
      text-decoration: none;
      font-size: 1.3rem;
      font-weight: 600;
      padding: 18px 24px;
      border-radius: 12px;
      transition: all 0.3s ease;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mobile-nav-links a i {
      font-size: 1.2rem;
      width: 24px;
    }

    .mobile-nav-links a:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateX(8px);
    }

    .mobile-nav-links a.active {
      background: var(--accent);
      color: #1A202C;
      border-color: var(--accent);
    }

    .mobile-search {
      margin-top: auto;
      padding: 16px;
      background: var(--surface);
      border-radius: 12px;
      border: 1px solid var(--glass-border);
    }

    .mobile-search input {
      width: 100%;
      padding: 14px 18px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 8px;
      color: var(--text);
      font-family: inherit;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .mobile-search input:focus {
      border-color: var(--accent);
      background: var(--surface-hover);
    }

    

    
    
    .mobile-detect-modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.95);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }

    .mobile-detect-modal.active {
      display: flex;
    }

    .mobile-detect-content {
      background: var(--surface);
      border: 2px solid var(--accent);
      border-radius: 16px;
      padding: 32px 24px;
      max-width: 400px;
      width: 90%;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    }

    .mobile-detect-icon {
      font-size: 3rem;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .mobile-detect-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
    }

    .mobile-detect-message {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .mobile-detect-buttons {
      display: flex;
      gap: 12px;
      flex-direction: column;
    }

    .mobile-detect-btn {
      padding: 14px 24px;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: inherit;
      text-transform: lowercase;
    }

    .mobile-detect-btn-primary {
      background: var(--accent);
      color: #1A202C;
    }

    .mobile-detect-btn-primary:active {
      transform: scale(0.98);
      background: var(--accent-hover);
    }

    .mobile-detect-btn-secondary {
      background: var(--glass);
      color: var(--text);
      border: 1px solid var(--glass-border);
    }

    .mobile-detect-btn-secondary:active {
      transform: scale(0.98);
      background: var(--surface-hover);
    }

    
    .mobile-player-controls {
      display: none;
      position: fixed;
      bottom: 60px;
      right: 16px;
      z-index: 100;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.8);
    }

    .mobile-player-controls.active {
      display: block;
    }

    .mobile-source-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 8px;
    }

    .mobile-source-select {
      width: 100%;
      min-width: 180px;
      padding: 8px 10px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 6px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.85rem;
    }

    .mobile-source-warning {
      margin-top: 8px;
      padding: 6px 8px;
      background: rgba(252, 235, 146, 0.1);
      border: 1px solid rgba(252, 235, 146, 0.3);
      border-radius: 4px;
      font-size: 0.65rem;
      line-height: 1.3;
      color: var(--text-muted);
    }

    .mobile-source-warning i {
      color: var(--accent);
      margin-right: 4px;
    }

    
    @media (max-width: 680px) {
      body {
        font-size: 14px;
        padding-bottom: 60px;
      }

      .mobile-menu-toggle {
        display: block;
      }

      .header {
        padding: 12px 16px;
      }

      .nav {
        display: none;
      }

      .logo img {
        width: 36px;
        height: 36px;
      }

      .logo-text {
        font-size: 1.2rem;
      }

      .hero-banner {
        height: 50vh;
        min-height: 340px;
        margin-bottom: 10px;
      }

      .hero-banner::before {
        background: linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
      }

      .hero-content {
        padding: 0 16px;
        max-width: 100%;
      }

      .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
      }

      .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .hero-buttons {
        gap: 12px;
      }

      .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
      }

      .content-section {
        padding: 0 16px 32px;
      }

      .section-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
        padding: 0 4px;
      }

      .row-container {
        margin-bottom: 24px;
      }

      .row-scroll {
        padding: 16px 4px;
        margin: 0 -4px;
        gap: 8px;
      }

      .title-card {
        min-width: 140px;
        width: 140px;
      }

      .title-card:active {
        transform: scale(0.98);
      }

      .title-card-overlay {
        opacity: 1;
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 60%);
      }

      .title-card-title {
        font-size: 0.75rem;
      }

      .title-card-meta {
        font-size: 0.65rem;
      }

      .title-card-rating {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.7rem;
        padding: 3px 8px;
      }

      
      .mobile-ad-sticky {
        display: flex;
      }

      .info-content {
        padding: 80px 16px 40px;
      }

      .info-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
      }

      .info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
      }

      .info-poster {
        width: 200px;
      }

      .info-title {
        font-size: 1.8rem;
      }

      .info-meta {
        justify-content: center;
        font-size: 0.85rem;
        gap: 12px;
      }

      .info-overview {
        font-size: 0.95rem;
        line-height: 1.6;
      }

      .info-buttons {
        justify-content: center;
        width: 100%;
      }

      .info-buttons .btn {
        flex: 1;
        min-width: 140px;
      }

      .info-genres {
        justify-content: center;
      }

      .info-genre {
        font-size: 0.75rem;
        padding: 5px 12px;
      }

      .cast-member {
        width: 100px;
      }

      .cast-member img {
        width: 100px;
        height: 100px;
      }

      .trailer-item {
        width: 280px;
      }

      
      .settings-container {
        padding: 16px 0;
      }

      .settings-content {
        padding: 20px;
      }

      .settings-item {
        font-size: 0.85rem;
        padding: 14px 0;
      }

      .settings-item span {
        flex: 1;
        padding-right: 12px;
      }

      
      .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 16px 0;
      }

      
      .player-topbar {
        height: 50px;
        padding: 0 12px;
      }

      .player-logo img {
        width: 32px;
        height: 32px;
      }

      .player-close-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
      }

      .player-sidebar {
        width: 200px !important;
        position: fixed;
        left: -200px;
        top: 50px;
        bottom: 0;
        transition: left 0.3s ease;
        z-index: 101;
      }

      .player-sidebar.mobile-open {
        left: 0;
      }

      .player-nav-item {
        padding: 12px 24px !important;
        justify-content: flex-start !important;
      }

      .player-nav-item span {
        display: inline !important;
        opacity: 1 !important;
        width: auto !important;
      }

      .player-nav-item i {
        font-size: 1.1rem;
      }

      .source-switcher {
        display: block !important;
        padding: 16px 20px;
      }

      .mobile-player-toggle {
        display: flex;
        position: fixed;
        left: 12px;
        top: 60px;
        z-index: 100;
        background: var(--surface);
        border: 1px solid var(--glass-border);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: var(--accent);
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.6);
        cursor: pointer;
      }

      .player-overlay-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 100;
      }

      .player-overlay-backdrop.active {
        display: block;
      }

      
      .trailer-modal-content {
        width: 95%;
        max-width: 100%;
        margin: 0 8px;
      }

      .trailer-modal-header {
        padding: 12px 16px;
      }

      .trailer-modal-title {
        font-size: 0.95rem;
      }
    }

    
    @media (min-width: 681px) and (max-width: 1024px) {
      body {
        font-size: 15px;
      }

      .header {
        padding: 14px 3%;
      }

      .logo img {
        width: 42px;
        height: 42px;
      }

      .logo-text {
        font-size: 1.35rem;
      }

      .nav {
        gap: 18px;
      }

      .nav a {
        font-size: 0.88rem;
      }

      .hero-banner {
        height: 70vh;
        min-height: 450px;
      }

      .hero-content {
        padding: 0 3%;
        max-width: 550px;
      }

      .hero-content h1 {
        font-size: 2.5rem;
      }

      .hero-content p {
        font-size: 1rem;
      }

      .btn {
        padding: 11px 24px;
        font-size: 0.92rem;
      }

      .content-section {
        padding: 0 3% 40px;
      }

      .section-title {
        font-size: 1.2rem;
      }

      .title-card {
        min-width: 160px;
        width: 160px;
      }

      .title-card:hover {
        transform: scale(1.06) translateY(-6px);
      }

      .row-scroll {
        padding: 18px 18px;
        margin: 0 -18px;
      }

      .search-input.active {
        width: 220px;
      }

      .info-content {
        padding: 100px 3% 50px;
      }

      .info-poster {
        width: 260px;
      }

      .info-title {
        font-size: 2.5rem;
      }

      .cast-member {
        width: 110px;
      }

      .cast-member img {
        width: 110px;
        height: 110px;
      }

      .trailer-item {
        width: 300px;
      }

      .settings-container {
        padding: 18px 0;
      }

      .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
      }

      .player-sidebar {
        width: 180px;
      }

      .player-nav-item {
        padding: 11px 20px;
        font-size: 0.9rem;
      }

      .source-switcher {
        padding: 14px 20px;
      }
    }

    
    @media (min-width: 1025px) and (max-width: 1366px) {
      .content-section {
        padding: 0 5% 40px;
      }

      .title-card {
        min-width: 170px;
        width: 170px;
      }

      .hero-content {
        max-width: 650px;
      }
    }

    
    @media (max-width: 375px) {
      .logo-text {
        font-size: 1rem;
      }

      .hero-content h1 {
        font-size: 1.5rem;
      }

      .hero-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .btn {
        padding: 9px 16px;
        font-size: 0.8rem;
      }

      .title-card {
        min-width: 120px;
        width: 120px;
      }

      .section-title {
        font-size: 1rem;
      }

      .mobile-nav-links a {
        font-size: 1.3rem;
        padding: 14px 18px;
      }
    }

    
    @media (min-width: 376px) and (max-width: 430px) {
      .title-card {
        min-width: 135px;
        width: 135px;
      }

      .hero-content h1 {
        font-size: 1.7rem;
      }
    }

    
    @media (min-width: 744px) and (max-width: 820px) and (orientation: portrait) {
      .title-card {
        min-width: 165px;
        width: 165px;
      }

      .hero-banner {
        height: 65vh;
      }

      .nav {
        gap: 16px;
      }

      .nav a {
        font-size: 0.85rem;
      }
    }

    
    @media (min-width: 821px) and (max-width: 1024px) and (orientation: portrait) {
      .title-card {
        min-width: 170px;
        width: 170px;
      }

      .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      }
    }

    
    @media (max-width: 926px) and (orientation: landscape) {
      .hero-banner {
        height: 85vh;
        min-height: 350px;
      }

      .hero-content {
        max-width: 500px;
      }

      .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
      }

      .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .mobile-nav-content {
        padding: 60px 24px 24px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
      }

      .mobile-nav-links {
        flex: 1;
        min-width: 300px;
      }

      .mobile-search {
        flex: 1;
        min-width: 300px;
        margin-top: 0;
        margin-left: 16px;
      }
    }

    
    @media (hover: none) and (pointer: coarse) {
      .title-card:hover {
        transform: none;
      }

      .title-card:active {
        transform: scale(0.95);
      }

      .title-card-overlay {
        opacity: 1;
      }

      .title-card-rating {
        opacity: 1;
        transform: translateY(0);
      }

      .btn:hover {
        transform: none;
      }

      .btn:active {
        transform: scale(0.98);
      }

      .row-nav-btn {
        display: none !important;
      }
    }

    body.reduce-motion * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    body.scrolling .header {
      pointer-events: none;
    }

    body.scrolling .header * {
      pointer-events: auto;
    }

    .trailer-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }

    .trailer-modal.active {
      display: flex;
    }

    .trailer-modal-content {
      width: 90%;
      max-width: 1200px;
      background: var(--surface);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .trailer-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--glass-border);
    }

    .trailer-modal-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
    }

    .trailer-modal-close {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .trailer-modal-close:hover {
      background: var(--glass);
      color: var(--accent);
    }

    .trailer-modal-video {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
      background: #000;
    }

    .trailer-modal-video iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    @media (max-width: 860px) {
      .hero-banner {
        height: 60vh;
      }

      .hero-content {
        max-width: 90%;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      .hero-content p {
        font-size: 1rem;
      }

      .nav {
        gap: 16px;
      }

      .title-card {
        min-width: 150px;
        width: 150px;
      }
    }

    @media (max-width: 680px) {
      .header {
        padding: 12px 4%;
      }

      .logo img {
        width: 34px;
        height: 34px;
      }

      .logo-text {
        font-size: 1.1rem;
      }

      .nav {
        gap: 10px;
      }

      .nav a {
        font-size: 0.8rem;
      }

      .title-card {
        min-width: 130px;
        width: 130px;
      }

      .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
      }

      .player-container {
        width: 95vw;
        border-radius: 4px;
      }

      .search-results {
        width: 90vw;
        max-width: 320px;
      }
    }