  :root {
    --bg: #0a0a0f;
    --surface: #13131a;
    --surface2: #1c1c27;
    --border: #2a2a3a;
    --accent: #e8c547;
    --accent2: #7b6cf6;
    --text: #e8e8f0;
    --muted: #6b6b80;
    --seen: #4ade80;
    --want: #e8c547;
    --danger: #f87171;
  }

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

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
  }

  .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--accent);
  }

  .nav-links {
    display: flex;
    gap: 4px;
  }

  .nav-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .nav-btn.active {
    color: var(--text);
    background: var(--surface2);
  }

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

  .want-count, .seen-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    display: none;
  }

  .want-count.visible, .seen-count.visible { display: inline; }

  .nav-gear {
    font-size: 18px;
    padding: 8px 10px;
    line-height: 1;
  }

  .settings-menu {
    display: none;
    position: fixed;
    top: 52px;
    right: 32px;
    z-index: 200;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
  }
  .settings-menu.open { display: block; }

  .settings-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
  }
  .settings-item:hover { background: var(--surface); }

  /* PAGES */
  .page {
    display: none;
    padding-top: 60px;
    min-height: 100vh;
  }
  .page.active { display: block; }

  /* DISCOVER PAGE */
  .search-hero {
    padding: 60px 32px 40px;
    max-width: 720px;
    margin: 0 auto;
  }

  .search-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .search-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
  }

  .search-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
  }

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

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

  .search-btn {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .search-btn:hover { background: #f5d060; transform: translateY(-1px); }
  .search-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

  /* FEATURED RESULT */
  .featured-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: none;
  }

  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .featured-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-bottom: 48px;
    position: relative;
  }

  .featured-poster {
    width: 200px;
    height: 280px;
    object-fit: cover;
    display: block;
  }

  .featured-poster-placeholder {
    width: 200px;
    height: 280px;
    background: var(--surface2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .poster-emoji { font-size: 40px; }

  .featured-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .featured-type {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }

  .featured-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 1px;
  }

  .featured-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }

  .featured-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #b0b0c0;
    flex: 1;
  }

  .featured-extras {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 8px;
    color: #ff4444;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }

  .trailer-btn:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: #ff4444;
  }

  .watch-providers {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .watch-providers-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .provider-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
  }

  .providers-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .provider-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.15s;
  }

  .provider-logo:hover {
    transform: scale(1.15);
  }

  .similar-trailer {
    padding: 0 14px 8px;
  }

  .similar-trailer .mini-trailer-btn {
    width: 100%;
    text-align: center;
  }

  .mini-trailer-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    color: #ff4444;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
  }

  .mini-trailer-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
  }

  /* Trailer modal */
  .trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .trailer-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
  }

  .trailer-modal-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    aspect-ratio: 16/9;
  }

  .trailer-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .trailer-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 4px 12px;
    line-height: 1;
  }

  .trailer-modal-close:hover {
    color: #ff4444;
  }

  .featured-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
  }

  .btn-seen, .btn-want, .btn-nope {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }

  .btn-seen {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--seen);
  }
  .btn-seen:hover, .btn-seen.active {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--seen);
  }
  .btn-seen.active { background: var(--seen); color: #000; }

  .btn-want {
    background: rgba(232, 197, 71, 0.1);
    border: 1px solid rgba(232, 197, 71, 0.3);
    color: var(--want);
  }
  .btn-want:hover, .btn-want.active {
    background: rgba(232, 197, 71, 0.2);
    border-color: var(--want);
  }
  .btn-want.active { background: var(--want); color: #000; }

  /* SIMILAR SECTION */
  .similar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .similar-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--muted);
  }
  .similar-nav {
    display: flex;
    gap: 6px;
  }

  .similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .similar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
  }

  .similar-card:hover {
    border-color: var(--accent2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  }

  .similar-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
  }

  .similar-poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--surface2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 28px;
  }

  .similar-body {
    padding: 14px;
  }

  .similar-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .similar-subtitle {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .similar-actions {
    display: flex;
    gap: 6px;
    padding: 0 14px 14px;
  }

  .mini-btn {
    flex: 1;
    padding: 7px 8px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-align: center;
  }

  .mini-seen {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--seen);
  }
  .mini-seen:hover { background: rgba(74, 222, 128, 0.18); }
  .mini-seen.active { background: var(--seen); color: #000; border-color: var(--seen); }

  .mini-want {
    background: rgba(232, 197, 71, 0.08);
    border: 1px solid rgba(232, 197, 71, 0.25);
    color: var(--want);
  }
  .mini-want:hover { background: rgba(232, 197, 71, 0.18); }
  .mini-want.active { background: var(--want); color: #000; border-color: var(--want); }

  .btn-nope {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
  }
  .btn-nope:hover, .btn-nope.active {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--danger);
  }
  .btn-nope.active { background: var(--danger); color: #000; }

  .mini-nope {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--danger);
  }
  .mini-nope:hover { background: rgba(248, 113, 113, 0.18); }
  .mini-nope.active { background: var(--danger); color: #000; border-color: var(--danger); }

  .similar-card.removing {
    animation: fadeOut 0.3s ease forwards;
  }
  @keyframes fadeOut {
    to { opacity: 0; transform: scale(0.95); }
  }

  .similar-card.swapping-in {
    animation: swapIn 0.3s ease forwards;
  }
  @keyframes swapIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  .similar-card.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    cursor: default;
  }
  .similar-card.loading-placeholder:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }
  .similar-card.loading-placeholder .loading-spinner {
    width: 24px; height: 24px;
    margin: 0;
  }

  /* RATING BUTTONS */
  .rating-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }

  .rating-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    transition: all 0.2s;
    opacity: 0.4;
  }
  .rating-btn:hover { opacity: 0.8; }
  .rating-btn.active-loved {
    opacity: 1;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
  }
  .rating-btn.active-liked {
    opacity: 1;
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.4);
  }
  .rating-btn.active-meh {
    opacity: 1;
    background: rgba(200, 180, 100, 0.15);
    border-color: rgba(200, 180, 100, 0.4);
  }
  .rating-btn.active-disliked {
    opacity: 1;
    background: rgba(107, 107, 128, 0.2);
    border-color: rgba(107, 107, 128, 0.4);
  }

  /* .seen-count styles merged with .want-count above */

  /* LOADING */
  .loading-state {
    text-align: center;
    padding: 60px 32px;
    color: var(--muted);
    display: none;
  }

  .loading-spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
  }

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

  .loading-text {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  /* WANT PAGE */
  .want-page-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
  }

  .page-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .page-subheading {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 40px;
  }

  .want-empty {
    text-align: center;
    padding: 80px 32px;
    color: var(--muted);
  }

  .want-empty-icon { font-size: 48px; margin-bottom: 16px; }
  .want-empty-text { font-size: 15px; }

  .want-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .want-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    transition: all 0.2s;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .want-item:hover { border-color: var(--border); background: var(--surface2); }

  .want-item-emoji { font-size: 28px; flex-shrink: 0; }

  .want-item-info { flex: 1; min-width: 0; }

  .want-item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .want-item-meta {
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .want-item-type {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 10px;
    background: rgba(232, 197, 71, 0.08);
    border-radius: 20px;
    flex-shrink: 0;
  }

  .btn-remove {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .btn-remove:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
  }

  /* WATCHLIST CARDS */
  .watchlist-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .watchlist-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    animation: slideIn 0.3s ease;
  }

  .watchlist-card:hover {
    border-color: var(--accent2);
    background: var(--surface2);
  }

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

  .watchlist-poster-placeholder {
    width: 100%;
    min-height: 180px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
  }

  .watchlist-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .watchlist-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .watchlist-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
  }

  .watchlist-type {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 8px;
    background: rgba(232, 197, 71, 0.08);
    border-radius: 20px;
    flex-shrink: 0;
  }

  .watchlist-meta {
    font-size: 12px;
    color: var(--muted);
  }

  .watchlist-desc {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    opacity: 0.8;
  }

  .watchlist-extras {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
  }

  .watchlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }

  .btn-load-more {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-load-more:hover {
    background: var(--surface2);
    border-color: var(--accent);
  }

  /* DISCOVER CAROUSELS */
  .discover-carousels {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .carousel-section {
    margin-bottom: 24px;
  }

  .carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .carousel-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }

  .carousel-nav {
    display: flex;
    gap: 6px;
  }

  .carousel-arrow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
  }
  .carousel-arrow:hover { background: var(--surface2); border-color: var(--accent2); }
  .carousel-arrow:disabled { opacity: 0.3; cursor: default; }
  .carousel-arrow:disabled:hover { background: var(--surface); border-color: var(--border); }

  .carousel-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .carousel-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .carousel-item:hover {
    border-color: var(--accent2);
    background: var(--surface2);
  }

  .carousel-item-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
  }

  .carousel-item-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
  }

  .carousel-item-title {
    padding: 8px 6px 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-item-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 0 4px 6px;
    flex-wrap: wrap;
  }

  .carousel-item-actions .mini-btn {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 0;
  }

  .carousel-item-trailer {
    padding: 0 4px 4px;
  }

  .carousel-item-trailer .mini-trailer-btn {
    font-size: 10px;
    padding: 3px 8px;
    width: 100%;
  }

  .carousel-loading {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 13px;
  }

  @media (max-width: 600px) {
    .carousel-track {
      grid-template-columns: repeat(3, 1fr);
    }
    .discover-carousels { padding: 0 16px; }
    .carousel-item-actions .mini-btn { font-size: 9px; padding: 2px 4px; }
  }

  /* WATCHLIST CONTROLS */
  .watchlist-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
  }

  .watchlist-search {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
  }
  .watchlist-search:focus { border-color: var(--accent); }
  .watchlist-search::placeholder { color: var(--muted); }

  .watchlist-sort {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .watchlist-sort:focus { border-color: var(--accent); }
  .watchlist-sort option { background: var(--surface2); color: var(--text); }

  /* CLICKABLE TITLES + POSTERS (seen + watchlist) */
  .clickable-title {
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s;
  }
  .clickable-title:hover {
    color: var(--accent);
  }
  img.clickable-title:hover {
    opacity: 0.8;
  }

  /* SEEN CARDS (extends watchlist card styles) */
  .seen-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .seen-rating-row .rating-btn {
    font-size: 16px;
    padding: 3px 6px;
  }

  /* TOAST */
  .toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
  }

  .toast.show { transform: translateX(-50%) translateY(0); }

  /* ERROR STATE */
  .error-state {
    text-align: center;
    padding: 40px;
    color: var(--danger);
    font-size: 14px;
    display: none;
  }

  @media (max-width: 600px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-poster, .featured-poster-placeholder { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; }
    .featured-title { font-size: 32px; }
    .featured-extras { flex-direction: column; align-items: flex-start; }
    nav { padding: 0 16px; }
    .search-hero, .featured-section { padding-left: 16px; padding-right: 16px; }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }

    /* Seen + Watchlist items: stack vertically on mobile */
    .want-item {
      flex-wrap: wrap;
      gap: 10px;
      padding: 14px 16px;
    }
    .want-item-title {
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
    }
    .want-item-info {
      flex-basis: calc(100% - 50px);
      min-width: 0;
    }
    .want-item-type {
      order: 3;
    }
    .rating-btns {
      order: 4;
    }
    .btn-remove {
      order: 5;
      margin-left: auto;
    }
    .watchlist-card {
      grid-template-columns: 120px 1fr;
    }
    .watchlist-poster-placeholder {
      min-height: 180px;
    }
    .watchlist-title { font-size: 16px; }
    .watchlist-extras { gap: 8px; }
    .nav-gear { padding: 8px 6px; font-size: 16px; }
    .settings-menu { right: 12px; }
    .watch-providers { flex-wrap: wrap; }
  }
