:root {
    --bg: #0b1722; --card: #142333; --card-hover: #1d3041;
    --text: #f2f5f8; --muted: #a6b1be; --accent: #ff315b; --line: rgba(194, 215, 233, 0.15);
    --sidebar-w: 76px;
  }
  * { box-sizing: border-box; }
  button, input { font: inherit; }
  button:focus-visible, input:focus-visible { outline: 3px solid rgba(255,255,255,0.75); outline-offset: 3px; }
  html, body { margin: 0; background:
    radial-gradient(ellipse 100% 52% at 62% -10%, rgba(75, 111, 142, 0.54), transparent 72%),
    linear-gradient(180deg, #101e2c 0%, var(--bg) 42%, #09131d 100%); color: var(--text);
    font: 14px/1.5 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden; min-height: 100vh; }

  /* --- SIDEBAR (Desktop Only) --- */
  .sidebar {
    position: fixed; left: 18px; top: 16px; bottom: 16px; width: var(--sidebar-w);
    isolation: isolate; overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px; display: flex; flex-direction: column; align-items: center;
    padding: 12px 0 14px; z-index: 100;
    box-shadow:
      0 20px 46px rgba(0, 0, 0, 0.36),
      0 2px 0 rgba(255, 255, 255, 0.06) inset,
      0 -18px 36px rgba(0, 0, 0, 0.34) inset;
    -webkit-backdrop-filter: blur(26px) saturate(115%);
    backdrop-filter: blur(26px) saturate(115%);
  }
  .sidebar::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%, transparent 80%, rgba(0, 0, 0, 0.36));
  }
  .sidebar::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    top: 10%; left: -75%; width: 170%; height: 34%;
    background: radial-gradient(ellipse, rgba(255, 49, 91, 0.13), transparent 66%);
    filter: blur(14px);
  }
  .sidebar-brand { position: relative; z-index: 1; flex: 0 0 31px; width: 58px; min-width: 0; max-width: 58px; height: 31px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 2px 0 7px; }
  .sidebar-brand img { display: block; width: 58px; min-width: 0; max-width: 58px; height: 31px; max-height: 31px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.28)); }
  .sidebar-nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: center; margin-top: 0; }
  .sidebar-item {
    position: relative; color: rgba(220, 229, 241, 0.66); display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 17px; transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    background: rgba(255, 255, 255, 0.015); border: 1px solid transparent; cursor: pointer;
  }
  .sidebar-item svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.22s ease, filter 0.22s ease; }
  .sidebar-item:hover { color: #f8fbff; background: rgba(255,255,255,0.075); border-color: rgba(255,255,255,0.11); transform: translateY(-1px); }
  .sidebar-item:hover svg { transform: scale(1.06); }
  .sidebar-item:focus-visible { outline: 3px solid rgba(255,255,255,0.75); outline-offset: 3px; }
  .sidebar-telegram:hover { color: #42b7ef; background: rgba(36,161,222,0.12); border-color: rgba(66,183,239,0.42); }
  .sidebar-item.active {
    color: var(--accent);
    background: linear-gradient(145deg, rgba(255, 58, 101, 0.17), rgba(255, 40, 91, 0.055));
    border-color: rgba(255, 74, 116, 0.36);
    box-shadow: 0 10px 24px rgba(206, 15, 62, 0.2), 0 1px 0 rgba(255,255,255,0.13) inset;
  }
  .sidebar-item.active svg { filter: drop-shadow(0 0 8px rgba(255, 49, 91, 0.45)); }
  .sidebar-bottom { position: relative; z-index: 1; margin-top: auto; padding-top: 18px; }
  .sidebar-bottom::before {
    content: ''; position: absolute; top: 0; left: 11px; right: 11px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  }

  /* --- MAIN LAYOUT --- */
  .main-content { margin-left: calc(var(--sidebar-w) + 40px); min-height: 100vh; padding-bottom: 40px; }

  /* --- Top Nav Tabs --- */
  .top-tabs {
    display: flex; gap: 28px; padding: 20px 4%; overflow-x: auto;
    border-bottom: 1px solid var(--line); scrollbar-width: none;
    position: sticky; top: 0; background: rgba(11, 23, 34, 0.92); backdrop-filter: blur(16px) saturate(130%); z-index: 50;
  }
  .top-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    background: transparent; border: none; color: rgba(224, 232, 240, 0.64);
    font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color 0.2s, text-shadow 0.2s;
  }
  .tab-btn.active { color: var(--text); font-weight: 800; text-shadow: 0 1px 14px rgba(255,255,255,0.18); }
  .tab-btn:hover { color: var(--text); }

  /* --- HOME VIEW --- */
  #home-view { display: none; position: relative; }
  #home-view .top-tabs { position: absolute; top: 0; left: 0; right: 0; z-index: 4; border-bottom: 0; background: linear-gradient(180deg, rgba(7,16,25,0.55), transparent); backdrop-filter: none; }
  .skeleton-hero { height: min(68vh, 690px); min-height: 500px; background: linear-gradient(135deg, #172a3a, #0b1722); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: bold; }
  #hero-banner { position: relative; isolation: isolate; width: 100%; height: min(68vh, 690px); min-height: 500px; background-color: #162839; background-size: cover; background-position: center 18%; display: none; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 7% 52px; }
  #hero-banner::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 54% 70% at 70% 15%, rgba(84, 138, 179, 0.22), transparent 72%); pointer-events: none; }
  #hero-banner::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 23, 34, 0.68) 14%, transparent 54%), linear-gradient(90deg, rgba(7, 17, 27, 0.92) 0%, rgba(10, 29, 43, 0.55) 38%, rgba(10, 26, 39, 0.10) 75%); }
  .hero-content-wrap { position: relative; z-index: 1; max-width: 650px; display: flex; flex-direction: column; align-items: flex-start; }

  /* LOGO FIX: Lartesi fikse qe te gjitha logot te duken njesoj */
  .hero-logo {
    height: 90px;
    max-width: 350px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 14px;
    display: none;
  }

  .hero-title-img { font-size: clamp(42px, 5vw, 64px); font-weight: 900; margin: 0 0 14px; text-transform: uppercase; color: #fff; text-shadow: 0 4px 22px rgba(0,0,0,0.74); line-height: 1.04; letter-spacing: -1.5px; }
  .hero-meta { display: flex; gap: 10px; color: rgba(240, 245, 250, 0.77); margin-bottom: 14px; font-size: 12px; align-items: center; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; flex-wrap: wrap; }
  .hero-meta .rating { background: rgba(255,255,255,0.10); padding: 4px 9px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.13); color: #fff; display: flex; align-items: center; gap: 4px; }
  .hero-meta .rating-star { color: #ffd23f; }
  .hero-overview { max-width: 600px; color: rgba(238,243,248,0.82); font-size: 15px; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 6px rgba(0,0,0,0.72); line-height: 1.55; }
  .hero-actions { display: flex; gap: 12px; align-items: center; }
  .hero-btn-details { background: #fff; color: #111820; padding: 12px 28px; border-radius: 24px; font-weight: 800; font-size: 15px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
  .hero-btn-details:hover { background: #e0e0e0; }
  .btn-icon { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.24); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, transform 0.2s; backdrop-filter: blur(8px); }
  .btn-icon:hover { background: rgba(255,255,255,0.2); }
  .btn-icon.is-saved { color: var(--accent); background: rgba(88, 10, 29, 0.42); border-color: rgba(255,49,91,0.52); }
  .btn-icon svg { width: 20px; height: 20px; fill: currentColor; }
  .hero-dots { display: flex; gap: 7px; margin-top: 26px; }
  .hero-dots span { width: 30px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.32); cursor: pointer; }
  .hero-dots span.active { background: #fff; width: 30px; border-radius: 3px; }

  /* Rows */
  .row { margin-bottom: 42px; padding: 0 4%; }
  .row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .row-title { font-size: 20px; font-weight: 800; margin: 0; text-transform: uppercase; position: relative; padding-bottom: 7px; letter-spacing: 0.3px; }
  .row-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent); box-shadow: 0 2px 10px rgba(255,49,91,0.44); }

  /* RREGULLIMI KRYESOR I KARTELAVE */
  .row-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; align-items: flex-start; }
  .row-scroll::-webkit-scrollbar { display: none; }
  .row-scroll .card {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }

  /* Cards */
  .card { background: transparent; cursor: pointer; position: relative; transition: transform 0.3s; }
  .card:hover { transform: translateY(-5px); }
  .poster { aspect-ratio: 2 / 3; background: #1a2a39 center/cover no-repeat; border-radius: 7px; position: relative; overflow: hidden; margin-bottom: 10px; box-shadow: 0 12px 20px rgba(0,0,0,0.28); width: 100%; }
  .poster .rating { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); }
  .poster .rating span { color: #ffd23f; }
  .poster .quality { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
  .card-save { position: absolute; z-index: 2; top: 8px; left: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.20); border-radius: 50%; color: #fff; background: rgba(5,5,5,0.58); cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease; backdrop-filter: blur(8px); }
  .card:hover .card-save, .card-save:focus-visible, .card-save.is-saved { opacity: 1; transform: translateY(0); }
  .card-save:hover { background: rgba(255,255,255,0.18); }
  .card-save.is-saved { color: var(--accent); background: rgba(45,9,15,0.82); border-color: rgba(255,49,91,0.52); }
  .card-save svg { width: 18px; height: 18px; fill: currentColor; }
  .card-info { padding: 0 4px; }
  .card-title { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
  .card-sub { font-size: 12px; color: var(--muted); }

  /* --- DETAIL VIEW --- */
  #detail-view { display: none; }
  .detail-hero { position: relative; isolation: isolate; width: 100%; min-height: 80vh; background-color: #162839; background-size: cover; background-position: center top; display: flex; align-items: flex-end; padding: 0 7% 48px; }
  .detail-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(11,23,34,0.64) 17%, transparent 74%), linear-gradient(to right, rgba(7,17,27,0.92) 0%, rgba(10,29,43,0.52) 46%, rgba(10,26,39,0.10) 78%); }
  .detail-hero-content { position: relative; z-index: 1; width: 100%; max-width: 900px; }

  /* LOGO FIX DETAIL */
  .detail-logo {
    height: 110px;
    max-width: 400px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 20px;
    display: none;
  }

  .detail-title-img { font-size: clamp(38px, 5vw, 58px); font-weight: 900; margin: 0 0 10px; text-transform: uppercase; line-height: 1.04; letter-spacing: -1.2px; text-shadow: 0 4px 20px rgba(0,0,0,0.82); }
  .detail-meta { display: flex; gap: 10px; color: rgba(240,245,250,0.76); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
  .detail-meta .rating { background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 6px; color: #fff; display: flex; align-items: center; gap: 4px; }
  .detail-meta .rating-star { color: #ffd23f; }
  .detail-overview { max-width: 620px; color: rgba(238,243,248,0.82); font-size: 15px; margin-bottom: 24px; line-height: 1.55; text-shadow: 0 2px 6px rgba(0,0,0,0.72); }

  /* Player Area */
  .detail-player { display: none; padding: 30px 4%; margin-top: -80px; position: relative; z-index: 10; }
  .detail-player.active { display: block; }

  /* Server Selector */
  .server-tabs { display: flex; gap: 10px; margin-bottom: 16px; background: #141416; padding: 6px; border-radius: 8px; width: fit-content; border: 1px solid var(--line); }
  .server-btn { background: transparent; border: none; color: var(--muted); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s; }
  .server-btn:hover { color: #fff; }
  .server-btn.active { background: var(--accent); color: #fff; }

  .iframe-container { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
  .iframe-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  /* Loading Spinner */
  .iframe-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; z-index: 2; pointer-events: none; transition: opacity 0.3s; }
  .spinner { 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; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Seasons & Episodes */
  .detail-seasons { padding: 0 4% 20px; display: flex; gap: 10px; overflow-x: auto; }
  .detail-seasons::-webkit-scrollbar { display: none; }
  .season-tab { background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 8px 20px; border-radius: 24px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s; }
  .season-tab:hover { background: var(--card-hover); }
  .season-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

  /* Episode list */
  .episode-list { display: flex; flex-direction: column; gap: 2px; max-width: 1120px; margin: 0 auto; padding: 0 4% 42px; }
  .episode-card { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 12px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
  .episode-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.07); }
  .episode-img { flex: 0 0 220px; width: 220px; aspect-ratio: 16/9; background: #222 center/cover no-repeat; position: relative; overflow: hidden; border-radius: 4px; }
  .episode-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0.03)); transition: background 0.2s ease; }
  .episode-card:hover .episode-img::after { background: rgba(0,0,0,0.32); }
  .episode-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.82); border-radius: 50%; color: #fff; background: rgba(0,0,0,0.26); opacity: 0; transform: translate(-50%, -42%) scale(0.92); transition: opacity 0.2s ease, transform 0.2s ease; }
  .episode-play svg { width: 21px; height: 21px; margin-left: 2px; fill: currentColor; }
  .episode-card:hover .episode-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .episode-info { flex: 1; min-width: 0; padding: 4px 4px 0 0; }
  .episode-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .episode-info h3 { min-width: 0; margin: 0 0 8px; font-size: 16px; line-height: 1.3; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .episode-duration { flex: 0 0 auto; color: #d2d2d2; font-size: 14px; }
  .episode-info p { max-width: 720px; margin: 0; font-size: 14px; line-height: 1.45; color: #c4c4c4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* RREGULLIMI I CAST */
  .cast-section { padding: 20px 4%; }
  .cast-scroll { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; align-items: flex-start; }
  .cast-scroll::-webkit-scrollbar { display: none; }
  .cast-scroll .cast-card { flex: 0 0 100px !important; width: 100px !important; min-width: 100px !important; max-width: 100px !important; text-align: center; }
  .cast-img { width: 100px; height: 100px; border-radius: 50%; background: #222 center/cover no-repeat; margin-bottom: 12px; border: 2px solid var(--line); }
  .cast-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cast-role { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Details Grid */
  .details-grid-section { padding: 20px 4% 60px; }
  .details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
  .detail-item h4 { margin: 0 0 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
  .detail-item p { margin: 0; font-size: 14px; color: #e0e0e0; font-weight: 500; line-height: 1.5; }

  /* Search & Settings */
  #search-view { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; padding-bottom: 80px; margin-left: calc(var(--sidebar-w) + 40px); }
  .search-header { position: sticky; top: 0; background: var(--bg); z-index: 10; padding: 16px 4%; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
  .search-back-btn { background: transparent; border: none; color: var(--text); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; }
  #main-search-input { flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 14px 20px; border-radius: 12px; font-size: 16px; outline: none; }
  .search-results-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 20px 4%; }

  #watch-later-view { display: none; width: min(1180px, 100%); min-height: 70vh; margin: 0 auto; padding: 46px 4% 80px; }
  .watch-later-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
  .watch-later-header p { margin: 0 0 5px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
  .watch-later-header h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1; }
  #watch-later-count { color: var(--muted); font-size: 14px; font-weight: 600; }
  .watch-later-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 24px 16px; }
  .watch-later-empty { grid-column: 1 / -1; padding: 54px 20px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 14px; color: var(--muted); text-align: center; font-size: 15px; }

  #settings-view { display: none; padding: 40px 4%; max-width: 800px; margin: 0 auto; width: 100%; }
  .settings-group { background: var(--card); border-radius: 12px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); }
  .settings-row { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
  .settings-row:last-child { border-bottom: none; }
  .switch { position: relative; display: inline-block; width: 50px; height: 28px; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .slider { position: absolute; cursor: pointer; inset: 0; background: #444; border-radius: 28px; transition: .4s; }
  .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background: #fff; border-radius: 50%; transition: .4s; }
  input:checked + .slider { background: var(--accent); }
  input:checked + .slider:before { transform: translateX(22px); }
  .btn-danger { background: rgba(229, 9, 20, 0.1); color: var(--accent); border: 1px solid var(--accent); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
  .ads-banner { color: #f7f7f7; background: rgba(229, 9, 20, 0.12); border: 1px solid rgba(229, 9, 20, 0.3); border-radius: 10px; padding: 12px 16px; }
  .ad-slot { position: relative; width: min(100% - 8%, 840px); margin: 26px auto; padding: 18px 12px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(5,5,5,0.5); overflow: hidden; }
  .detail-ad-slot { margin-top: 20px; margin-bottom: 20px; }
  .ad-slot-label { position: absolute; top: 6px; left: 12px; color: rgba(224,230,236,0.46); font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
  .ad-frame { display: block; width: 100%; border: 0; background: transparent; overflow: hidden; }
  .ad-frame-native { height: 150px; }
  .ad-slot-desktop { max-width: 752px; }
  .ad-frame-leaderboard { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }
  .ad-slot-banner { max-width: 492px; }
  .ad-frame-banner { width: 468px; max-width: 100%; height: 60px; margin: 0 auto; }

  /* ============================================================
     MOBILE RESPONSIVE
     ============================================================ */
  @media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar { display: none !important; }
    .main-content { margin-left: 0; padding-bottom: 96px; padding-top: 10px; }
    #search-view { margin-left: 0; padding-bottom: 70px; }

    .top-tabs { padding-left: 4%; gap: 16px; }
    .tab-btn { font-size: 14px; }

    #hero-banner { height: 70vh; padding-bottom: 40px; }

    /* LOGO FIX MOBILE */
    .hero-logo {
        height: 60px;
        max-width: 220px;
    }

    .hero-title-img { font-size: 32px; }
    .hero-overview { -webkit-line-clamp: 4; font-size: 14px; }
    .hero-actions { width: 100%; }
    .hero-btn-details { flex: 1; justify-content: center; }

    /* RREGULLIMI I KARTELAVE NE TELEFON */
    .row-scroll .card {
      flex: 0 0 130px !important;
      width: 130px !important;
      min-width: 130px !important;
      max-width: 130px !important;
    }

    .card-title { font-size: 13px; }
    .card-save { width: 32px; height: 32px; opacity: 1; transform: none; }

    .detail-hero { min-height: 70vh; padding-top: 60px; }

    /* LOGO FIX MOBILE DETAIL */
    .detail-logo {
        height: 70px;
        max-width: 250px;
    }

    .detail-title-img { font-size: 32px; }
    .detail-player { margin-top: -20px; padding: 16px; }
    .server-tabs { width: 100%; justify-content: center; flex-wrap: wrap; }

    .episode-list { gap: 4px; padding: 0 3% 100px; }
    .episode-card { gap: 10px; padding: 10px 6px; border-radius: 4px; }
    .episode-card:hover { background: rgba(255,255,255,0.07); border-color: transparent; }
    .episode-img { flex-basis: 122px; width: 122px; border-radius: 3px; }
    .episode-play { width: 34px; height: 34px; opacity: 1; transform: translate(-50%, -50%); }
    .episode-play svg { width: 18px; height: 18px; }
    .episode-info { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; padding: 0 4px 0 0; }
    .episode-heading { gap: 8px; }
    .episode-info h3 { margin-bottom: 5px; font-size: 14px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .episode-duration { font-size: 12px; color: #bdbdbd; }
    .episode-info p { font-size: 12px; line-height: 1.34; -webkit-line-clamp: 3; }

    #watch-later-view { padding: 30px 4% 102px; }
    .watch-later-header { margin-bottom: 20px; }
    .watch-later-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }

    .mobile-nav { display: flex !important; position: fixed; bottom: 12px; left: 14px; right: 14px; z-index: 100; background: linear-gradient(135deg, rgba(43,57,72,0.9), rgba(19,29,40,0.94)); backdrop-filter: blur(20px) saturate(140%); border: 1px solid rgba(213,227,241,0.17); border-radius: 27px; box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 1px 0 rgba(255,255,255,0.08) inset; padding: 10px 0 12px; justify-content: space-around; }
    .mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; cursor: pointer; text-decoration: none; background: transparent; border: 0; padding: 0; }
    .mobile-nav-item svg { width: 24px; height: 24px; fill: currentColor; }
    .mobile-nav-item.active { color: var(--text); }
    .ad-slot { width: calc(100% - 8%); margin: 20px auto; }
    .ad-frame-native { height: 132px; }
    .ad-slot-desktop { display: none; }
  }

  @media (min-width: 769px) {
    .mobile-nav { display: none !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  }
