:root {
      --bg-dark: #050507;
      --bg-card: rgba(15, 17, 26, 0.6);
      --bg-card-hover: rgba(25, 28, 41, 0.8);
      --border: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.15);
      --text-main: #f0f0f5;
      --text-muted: #8b92a5;
      --text-dim: #5c6275;
      --accent: #5e6ad2;
      --accent-glow: rgba(94, 106, 210, 0.4);
      --accent-hover: #7582f5;
      --grad-primary: linear-gradient(135deg, #5e6ad2, #9d50bb);
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --radius: 12px;
      --radius-lg: 20px;
    }

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

    body {
      font-family: 'Outfit', sans-serif;
      background-color: var(--bg-dark);
      color: var(--text-main);
      min-height: 100vh;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      background: none;
    }

    input,
    select {
      font-family: inherit;
    }

    /* ── Container & Views ── */
    #app {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .view {
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease;
      flex: 1;
    }

    .view.active {
      display: flex;
      flex-direction: column;
      opacity: 1;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
      width: 100%;
    }

    /* ── Navbar ── */
    .navbar {
      padding: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
    }

    .brand {
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: var(--grad-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      cursor: pointer;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .wl-nav-btn {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-muted);
      padding: 0.45rem 0.9rem;
      border-radius: 99px;
      border: 1px solid var(--border);
      transition: all 0.2s;
    }

    .wl-nav-btn:hover {
      color: var(--text-main);
      border-color: var(--border-hover);
      background: rgba(255, 255, 255, 0.04);
    }

    .wl-nav-btn.active {
      color: var(--accent);
      border-color: var(--accent);
    }

    .wl-count-badge {
      background: var(--accent);
      color: #fff;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.15rem 0.4rem;
      border-radius: 99px;
      min-width: 18px;
      text-align: center;
    }

    /* ── Home View ── */
    #view-home {
      align-items: center;
      justify-content: flex-start;
      position: relative;
      min-height: 100vh;
      padding-top: 15vh;
      padding-bottom: 4rem;
    }

    .home-bg {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 30%, rgba(94, 106, 210, 0.15) 0%, var(--bg-dark) 60%);
      z-index: 0;
      pointer-events: none;
    }

    .search-hero {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 700px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .search-hero h1 {
      font-size: 3.5rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
      text-align: center;
      line-height: 1.1;
    }

    .search-hero p {
      color: var(--text-muted);
      margin-bottom: 2.5rem;
      font-size: 1.1rem;
      text-align: center;
    }

    /* Search Bar Wrapper */
    .search-wrap {
      width: 100%;
      position: relative;
      z-index: 50;
    }

    .search-box {
      display: flex;
      align-items: center;
      background: rgba(15, 17, 26, 0.8);
      border: 1px solid var(--border);
      border-radius: 99px;
      padding: 0.5rem;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      transition: all 0.3s;
    }

    .search-box:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px var(--accent-glow);
      background: rgba(20, 22, 32, 0.95);
    }

    .type-toggle {
      display: flex;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 99px;
      padding: 0.25rem;
      margin-right: 0.5rem;
    }

    .tt-btn {
      padding: 0.5rem 1rem;
      border-radius: 99px;
      color: var(--text-muted);
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.2s;
    }

    .tt-btn.active {
      background: var(--border-hover);
      color: var(--text-main);
    }

    .tt-btn:hover:not(.active) {
      color: var(--text-main);
    }

    #home-search-input {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-main);
      font-size: 1.1rem;
      padding: 0.5rem;
      outline: none;
      width: 100%;
    }

    #home-search-input::placeholder {
      color: var(--text-dim);
    }

    .search-btn {
      background: var(--grad-primary);
      border-radius: 99px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      transition: opacity 0.2s;
    }

    .search-btn:hover {
      opacity: 0.9;
    }

    .search-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    /* Autocomplete Dropdown */
    .ac-dd {
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      right: 0;
      background: rgba(15, 17, 26, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
      overflow: hidden;
      max-height: 400px;
      overflow-y: auto;
      display: none;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .ac-dd.v {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .ac-item {
      display: flex;
      padding: 0.75rem 1rem;
      gap: 1rem;
      cursor: pointer;
      border-bottom: 1px solid rgba(255, 255, 255, 0.03);
      transition: background 0.2s;
    }

    .ac-item:hover {
      background: rgba(255, 255, 255, 0.05);
    }

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

    .ac-img {
      width: 48px;
      height: 72px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 6px;
      overflow: hidden;
      flex-shrink: 0;
    }

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

    .ac-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .ac-title {
      font-weight: 600;
      font-size: 1rem;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ac-meta {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.3rem;
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .ac-type {
      text-transform: uppercase;
      font-size: 0.65rem;
      background: rgba(255, 255, 255, 0.1);
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .ac-loading {
      padding: 1.5rem;
      text-align: center;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    /* ── OTT Badge ── */
    .ott-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
    }

    .ott-badge.ott {
      background: rgba(16, 185, 129, 0.18);
      color: #10b981;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .ott-badge.unknown {
      background: rgba(139, 146, 165, 0.12);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    .provider-row {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-wrap: wrap;
      margin-top: 0.75rem;
    }

    .provider-logo {
      width: 24px;
      height: 24px;
      border-radius: 5px;
      object-fit: cover;
    }

    .provider-name-pill {
      font-size: 0.72rem;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      color: var(--text-muted);
    }

    /* ── Detail View (Jellyseerr style) ── */
    #view-detail {
      padding-bottom: 4rem;
      position: relative;
    }

    .backdrop {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 70vh;
      z-index: -1;
      background-size: cover;
      background-position: center 20%;
      background-repeat: no-repeat;
      mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
      opacity: 0.35;
    }

    .dt-hero {
      margin-top: 6rem;
      display: flex;
      gap: 3rem;
      align-items: flex-end;
      margin-bottom: 4rem;
    }

    .dt-poster {
      width: 260px;
      border-radius: var(--radius-lg);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      overflow: hidden;
      flex-shrink: 0;
      background: var(--bg-card);
      aspect-ratio: 2/3;
      position: relative;
      border: 1px solid var(--border);
    }

    .dt-poster img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .dt-info {
      flex: 1;
      padding-bottom: 1rem;
    }

    .dt-logo {
      max-width: 400px;
      max-height: 120px;
      object-fit: contain;
      margin-bottom: 1.5rem;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }

    .dt-title {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 1rem;
      text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .dt-meta-row {
      display: flex;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
      font-weight: 500;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .dt-rating {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      color: var(--warning);
    }

    .dt-genres {
      color: var(--text-muted);
    }

    .dt-overview {
      font-size: 1.05rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.85);
      max-width: 800px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Play / Search Button */
    .dt-action-btn {
      margin-top: 2rem;
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      background: var(--text-main);
      color: var(--bg-dark);
      padding: 0.8rem 1.5rem;
      border-radius: 99px;
      font-weight: 700;
      font-size: 1rem;
      transition: all 0.2s;
      box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .dt-action-btn:hover {
      transform: scale(1.05);
      background: #fff;
    }

    .dt-action-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    /* ── TV Show Episode Browser ── */
    .ep-browser {
      display: none;
      margin-top: 2rem;
    }

    .ep-browser.v {
      display: block;
    }

    .ep-layout {
      display: flex;
      gap: 2rem;
    }

    .ep-sidebar {
      width: 200px;
      flex-shrink: 0;
    }

    .season-list {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .season-tab {
      padding: 0.75rem 1rem;
      border-radius: var(--radius);
      cursor: pointer;
      color: var(--text-muted);
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.2s;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .season-tab:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-main);
    }

    .season-tab.active {
      background: var(--border-hover);
      color: var(--text-main);
    }

    .s-cnt {
      font-size: 0.75rem;
      opacity: 0.7;
      font-weight: 500;
    }

    .ep-list {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .ep-card {
      display: flex;
      gap: 1.5rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.25rem;
      transition: all 0.2s;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .ep-card:hover {
      border-color: var(--accent);
      background: var(--bg-card-hover);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .ep-img {
      width: 200px;
      aspect-ratio: 16/9;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      position: relative;
    }

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

    .ep-num-badge {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(4px);
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-weight: 700;
      font-size: 0.75rem;
      letter-spacing: 0.5px;
    }

    .ep-info {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .ep-title {
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
      color: var(--text-main);
    }

    .ep-meta {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
      display: flex;
      gap: 1rem;
    }

    .ep-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ── Bot Search Results Area ── */
    .results-area {
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      display: none;
    }

    .results-area.v {
      display: block;
    }

    .ra-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .ra-title {
      font-size: 1.25rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .st-badge {
      font-size: 0.7rem;
      padding: 0.25rem 0.6rem;
      border-radius: 99px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .st-b-cache {
      background: rgba(16, 185, 129, 0.15);
      color: var(--success);
    }

    .st-b-scrape {
      background: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }

    .st-b-load {
      background: rgba(94, 106, 210, 0.15);
      color: var(--accent);
    }

    /* Filters */
    .filters {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
    }

    .filter-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .filter-label {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .filter-sel {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 0.4rem 0.75rem;
      border-radius: 8px;
      font-size: 0.85rem;
      outline: none;
      cursor: pointer;
    }

    .filter-sel:focus {
      border-color: var(--accent);
    }

    /* Telegram File Cards */
    .file-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .file-card {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      transition: all 0.2s;
      backdrop-filter: blur(10px);
    }

    .file-card:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
    }

    .fc-icon {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1.2rem;
    }

    .fc-main {
      flex: 1;
      min-width: 0;
    }

    .fc-name {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.85rem;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 0.4rem;
    }

    .fc-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .tag {
      font-size: 0.65rem;
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .tag-res {
      background: rgba(7, 192, 213, 0.15);
      color: #07c0d5;
    }

    .tag-lang {
      background: rgba(148, 97, 245, 0.15);
      color: #9461f5;
    }

    .tag-codec {
      background: rgba(244, 162, 41, 0.15);
      color: #f4a229;
    }

    .fc-size {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.85rem;
      color: var(--text-muted);
      font-weight: 500;
      white-space: nowrap;
    }

    .fc-btn {
      background: rgba(16, 185, 129, 0.1);
      color: var(--success);
      border: 1px solid rgba(16, 185, 129, 0.2);
      padding: 0.5rem 1rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.85rem;
      transition: all 0.2s;
      white-space: nowrap;
      width: 120px;
      text-align: center;
    }

    .fc-btn:hover:not(:disabled) {
      background: var(--success);
      color: #fff;
      transform: scale(1.05);
    }

    .fc-btn.playing {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .fc-btn.resolving {
      background: var(--warning);
      color: #000;
      border-color: var(--warning);
      animation: pulse 1.5s infinite;
    }

    .fc-btn.error {
      background: var(--danger);
      color: #fff;
      border-color: var(--danger);
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.7
      }
    }

    .loader {
      width: 40px;
      height: 40px;
      border: 3px solid rgba(255, 255, 255, 0.1);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 3rem auto;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Small Search in Nav (when in Detail View) */
    .nav-search {
      display: none;
      align-items: center;
      background: rgba(15, 17, 26, 0.8);
      border: 1px solid var(--border);
      border-radius: 99px;
      padding: 0.25rem 0.5rem 0.25rem 1rem;
      width: 300px;
      position: relative;
    }

    .nav-search.v {
      display: flex;
    }

    .nav-search input {
      background: transparent;
      border: none;
      color: var(--text-main);
      outline: none;
      flex: 1;
      font-size: 0.9rem;
    }

    .nav-search-btn {
      background: var(--border);
      border-radius: 50%;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-main);
    }

    .nav-search-btn:hover {
      background: var(--border-hover);
    }

    .nav-search-btn svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    /* Toast */
    #toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: rgba(15, 17, 26, 0.95);
      border: 1px solid var(--border);
      padding: 1rem 1.5rem;
      border-radius: 12px;
      color: var(--text-main);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    #toast.v {
      transform: translateY(0);
      opacity: 1;
    }

    .trending-section {
      margin-top: 3rem;
      width: 100%;
      max-width: 1200px;
      padding-bottom: 1.5rem;
    }

    .trending-section h2 {
      font-size: 1.1rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .trending-section h2 span {
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.06);
      padding: 0.15rem 0.5rem;
      border-radius: 99px;
    }

    .trending-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 1rem;
    }

    .trend-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      aspect-ratio: 2/3;
    }

    .trend-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
    }

    .trend-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
      box-shadow: 0 8px 24px rgba(94, 106, 210, 0.25);
    }

    .trend-card:hover img {
      transform: scale(1.05);
    }

    .trend-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1.5rem 0.6rem 0.6rem;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    }

    .trend-title {
      font-size: 0.8rem;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .trend-meta {
      font-size: 0.68rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      margin-top: 0.2rem;
    }

    .trend-ott-badge {
      position: absolute;
      top: 0.4rem;
      left: 0.4rem;
      font-size: 0.6rem;
      font-weight: 700;
      padding: 0.15rem 0.4rem;
      border-radius: 3px;
    }

    .trend-ott-badge.ott {
      background: rgba(16, 185, 129, 0.9);
      color: #fff;
    }

    /* ── OTT Arrival Banner ── */
    #ott-banner {
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%) translateY(-120px);
      z-index: 999;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.4);
      backdrop-filter: blur(12px);
      padding: 0.8rem 1.5rem;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text-main);
      font-size: 0.9rem;
      font-weight: 600;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      min-width: 280px;
      max-width: 500px;
    }

    #ott-banner.visible {
      transform: translateX(-50%) translateY(0);
    }

    #ott-banner .ott-banner-icon {
      font-size: 1.4rem;
      flex-shrink: 0;
    }

    #ott-banner .ott-banner-close {
      margin-left: auto;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    /* ── Watchlist View ── */
    #view-watchlist {
      align-items: flex-start;
      min-height: 100vh;
      padding-top: 6rem;
      padding-bottom: 4rem;
    }

    .wl-page {
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .wl-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .wl-header h1 {
      font-size: 2rem;
      font-weight: 800;
      flex: 1;
    }

    .wl-filter-btn {
      padding: 0.4rem 0.9rem;
      border-radius: 99px;
      font-size: 0.8rem;
      font-weight: 600;
      border: 1px solid var(--border);
      color: var(--text-muted);
      transition: all 0.2s;
      cursor: pointer;
    }

    .wl-filter-btn.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .wl-empty {
      text-align: center;
      padding: 5rem 2rem;
      color: var(--text-muted);
    }

    .wl-empty .wl-empty-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .wl-empty p {
      font-size: 1rem;
    }

    .wl-card {
      display: flex;
      gap: 1.25rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.25rem;
      margin-bottom: 1rem;
      transition: all 0.2s;
      position: relative;
    }

    .wl-card:hover {
      border-color: var(--border-hover);
      background: var(--bg-card-hover);
    }

    .wl-card.ott-arrived {
      border-color: rgba(16, 185, 129, 0.4);
      background: rgba(16, 185, 129, 0.05);
    }

    .wl-poster {
      width: 70px;
      height: 105px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-card);
    }

    .wl-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .wl-title {
      font-size: 1.05rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-wrap: wrap;
    }

    .wl-meta {
      font-size: 0.8rem;
      color: var(--text-muted);
      display: flex;
      gap: 0.75rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .wl-notes {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-style: italic;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 6px;
      padding: 0.35rem 0.6rem;
      margin-top: 0.25rem;
      cursor: pointer;
      border: 1px solid transparent;
      transition: border-color 0.2s;
    }

    .wl-notes:hover {
      border-color: var(--border);
    }

    .wl-providers {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-wrap: wrap;
      margin-top: 0.3rem;
    }

    .wl-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    .wl-remove-btn {
      font-size: 0.75rem;
      color: var(--text-dim);
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      transition: all 0.2s;
    }

    .wl-remove-btn:hover {
      color: var(--danger);
      border-color: var(--danger);
      background: rgba(239, 68, 68, 0.08);
    }

    .wl-recheck-btn {
      font-size: 0.75rem;
      color: var(--text-dim);
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      transition: all 0.2s;
    }

    .wl-recheck-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    .wl-added-at {
      font-size: 0.7rem;
      color: var(--text-dim);
      text-align: right;
    }

    /* ── Notes Modal ── */
    #notes-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(6px);
      z-index: 500;
      align-items: center;
      justify-content: center;
    }

    #notes-modal.visible {
      display: flex;
    }

    .notes-modal-box {
      background: rgba(15, 17, 26, 0.98);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      width: 100%;
      max-width: 480px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .notes-modal-box h3 {
      font-size: 1rem;
      font-weight: 700;
    }

    .notes-modal-box textarea {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--text-main);
      padding: 0.75rem;
      font-size: 0.9rem;
      font-family: inherit;
      resize: vertical;
      min-height: 80px;
      outline: none;
    }

    .notes-modal-box textarea:focus {
      border-color: var(--accent);
    }

    .notes-modal-actions {
      display: flex;
      gap: 0.75rem;
      justify-content: flex-end;
    }

    .notes-save-btn {
      background: var(--accent);
      color: #fff;
      padding: 0.5rem 1.2rem;
      border-radius: 8px;
      font-weight: 700;
      font-size: 0.9rem;
    }

    .notes-cancel-btn {
      color: var(--text-muted);
      padding: 0.5rem 1rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      font-size: 0.9rem;
    }



    @media (max-width: 768px) {
      .dt-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        margin-top: 4rem;
      }

      .dt-poster {
        width: 180px;
      }

      .dt-meta-row {
        justify-content: center;
        flex-wrap: wrap;
      }

      .ep-layout {
        flex-direction: column;
      }

      .ep-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
      }

      .season-list {
        flex-direction: row;
      }

      .season-tab {
        flex-shrink: 0;
      }

      .ep-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
      }

      .ep-img {
        width: 100%;
        aspect-ratio: 16/9;
      }

      .nav-search {
        display: none !important;
      }
    }
