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

  :root {
    --red: #7c5cff;
    --red-dark: #5a3fd6;
    --accent2: #5ad1ff;
    --gold: #ffd166;
    --bg: #12102a;
    --bg2: #1b1840;
    --bg3: #252154;
    --text: #ffffff;
    --text-muted: #b8b4d8;
    --text-dim: #7d78a8;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  /* Galaktika fon — yorqinroq, animatsiyali nebula */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
      radial-gradient(ellipse 70% 55% at 12% 8%, rgba(124,92,255,0.40), transparent 60%),
      radial-gradient(ellipse 60% 50% at 88% 15%, rgba(90,209,255,0.30), transparent 60%),
      radial-gradient(ellipse 55% 50% at 50% 95%, rgba(255,110,199,0.22), transparent 60%),
      radial-gradient(ellipse 50% 45% at 95% 85%, rgba(124,92,255,0.25), transparent 55%);
    animation: nebula-drift 22s ease-in-out infinite alternate;
  }
  @keyframes nebula-drift {
    0%   { transform: translate(0,0) scale(1); opacity: 0.9; }
    50%  { transform: translate(2%,-1.5%) scale(1.05); opacity: 1; }
    100% { transform: translate(-1.5%,2%) scale(1.02); opacity: 0.92; }
  }
  /* Yulduzlar qatlami — zich, xira, miltillaydigan */
  /* 1-qatlam: ko'p mayda yulduzlar (sekin miltillaydi) */
  body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.95), transparent),
      radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 80% 20%, rgba(157,123,255,0.95), transparent),
      radial-gradient(1px 1px at 35% 85%, rgba(90,209,255,0.92), transparent),
      radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 10% 60%, rgba(255,110,199,0.88), transparent),
      radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.90), transparent),
      radial-gradient(1px 1px at 70% 90%, rgba(90,209,255,0.90), transparent),
      radial-gradient(1px 1px at 5% 12%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 27% 48%, rgba(255,255,255,0.80), transparent),
      radial-gradient(1px 1px at 43% 8%, rgba(157,123,255,0.88), transparent),
      radial-gradient(1px 1px at 88% 78%, rgba(255,255,255,0.85), transparent);
    background-repeat: repeat;
    background-size: 260px 260px;
    animation: stars-flicker-a 4.5s steps(1, end) infinite;
  }

  /* 2-qatlam: o'rtacha zichlik (tezroq, boshqa ritmda miltillaydi) */
  .stars2 {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      radial-gradient(1px 1px at 14% 22%, rgba(255,255,255,0.92), transparent),
      radial-gradient(1px 1px at 72% 36%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 38% 64%, rgba(90,209,255,0.90), transparent),
      radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.82), transparent),
      radial-gradient(1px 1px at 58% 88%, rgba(157,123,255,0.88), transparent),
      radial-gradient(1px 1px at 8% 76%, rgba(255,255,255,0.80), transparent),
      radial-gradient(1px 1px at 48% 30%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 82% 60%, rgba(255,110,199,0.85), transparent);
    background-repeat: repeat;
    background-size: 190px 190px;
    animation: stars-flicker-b 3.2s steps(1, end) infinite;
  }

  /* 3-qatlam: kamroq, biroz yorqinroq lo'lpix yulduzlar (boshqa tezlikda) */
  .stars3 {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      radial-gradient(1.5px 1.5px at 30% 18%, rgba(255,255,255,1.0), transparent),
      radial-gradient(1.5px 1.5px at 78% 72%, rgba(157,123,255,1.0), transparent),
      radial-gradient(1.5px 1.5px at 18% 52%, rgba(90,209,255,1.0), transparent),
      radial-gradient(1.5px 1.5px at 62% 40%, rgba(255,255,255,0.95), transparent),
      radial-gradient(1.5px 1.5px at 46% 84%, rgba(255,255,255,0.95), transparent);
    background-repeat: repeat;
    background-size: 340px 340px;
    animation: stars-flicker-c 5.8s steps(1, end) infinite;
  }

  /* Xira miltillash — har bir qatlam boshqa ritmda yonib-o'chadi */
  @keyframes stars-flicker-a {
    0%,100% { opacity: 0.85; }
    20%     { opacity: 0.45; }
    40%     { opacity: 1.0; }
    55%     { opacity: 0.60; }
    75%     { opacity: 0.95; }
    90%     { opacity: 0.50; }
  }
  @keyframes stars-flicker-b {
    0%,100% { opacity: 0.80; }
    15%     { opacity: 1.0; }
    35%     { opacity: 0.50; }
    60%     { opacity: 0.90; }
    80%     { opacity: 0.58; }
  }
  @keyframes stars-flicker-c {
    0%,100% { opacity: 0.95; }
    25%     { opacity: 0.55; }
    50%     { opacity: 1.0; }
    70%     { opacity: 0.65; }
    85%     { opacity: 0.90; }
  }
  @media (prefers-reduced-motion: reduce) {
    body::after, .stars2, .stars3 { animation: none; opacity: 0.9; }
  }

  /* Uchar yulduzlar (kometalar) */
  .comet {
    position: fixed; top: -10%; width: 4px; height: 4px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,0.95);
    z-index: -1; pointer-events: none;
  }
  .comet::after {
    content: ''; position: absolute; bottom: 50%; left: 50%;
    width: 2px; height: 160px; transform: translateX(-50%);
    background: linear-gradient(to top, rgba(157,123,255,0.9), rgba(90,209,255,0.3), transparent);
  }
  .comet.c1 { left: 15%; animation: comet-fall 7s linear infinite; }
  .comet.c2 { left: 48%; animation: comet-fall 9s linear infinite 3s; }
  .comet.c3 { left: 78%; animation: comet-fall 8s linear infinite 5s; }
  .comet.c4 { left: 33%; animation: comet-fall 10s linear infinite 6.5s; }
  .comet.c5 { left: 65%; animation: comet-fall 7.5s linear infinite 1.5s; }
  @keyframes comet-fall {
    0%   { transform: translate(0,0) rotate(18deg); opacity: 0; }
    10%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { transform: translate(-22vw, 115vh) rotate(18deg); opacity: 0; }
  }

  /* NAVBAR */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 48px;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: background 0.3s;
  }
  nav.scrolled { background: rgba(20,20,20,0.98); }

  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--red);
    letter-spacing: 2px;
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
  }
  .nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: #fff; }

  .nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  .nav-search:hover { opacity: 1; }

  .nav-login {
    display: flex; align-items: center; gap: 7px;
    background: #229ED9; color: #fff; border: none;
    padding: 7px 13px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
  }
  .nav-login:hover { background: #1d8dc2; }
  .nav-login svg { display: block; }

  .nav-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    padding: 0; border: 2px solid var(--gold);
    overflow: hidden; cursor: pointer;
    background: var(--bg3);
  }
  .nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .nav-avatar.av-initial {
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: var(--gold);
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
  }

  .user-menu {
    position: absolute; top: 64px; right: 24px;
    background: var(--bg2); border: 1px solid var(--bg3);
    border-radius: 12px; padding: 10px; min-width: 220px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 120;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .user-menu.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .user-menu-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid var(--bg3); margin-bottom: 8px; }
  .user-menu-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
  .user-menu-name { font-weight: 700; font-size: 14px; }
  .user-menu-sub { font-size: 11px; color: var(--text-dim); }
  .user-menu-btn {
    display: block; width: 100%; text-align: left;
    background: none; border: none; color: var(--text);
    padding: 10px 8px; border-radius: 8px; font-size: 14px; cursor: pointer;
  }
  .user-menu-btn:hover { background: var(--bg3); }

  .login-modal-bg {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .login-modal-bg.show { opacity: 1; pointer-events: auto; }
  .login-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%);
    background: var(--bg2); border: 1px solid var(--bg3);
    border-radius: 16px; padding: 30px 26px; width: 340px; max-width: 92vw;
    text-align: center; z-index: 201;
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  .login-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
  .login-modal h3 { margin: 0 0 8px; font-size: 19px; }
  .login-modal p { color: var(--text-muted); font-size: 13px; margin: 0 0 18px; line-height: 1.5; }
  .login-modal #tgLoginBtn { display: flex; justify-content: center; min-height: 46px; }
  .login-note { color: var(--gold); font-size: 12px; margin-top: 12px !important; }
  .login-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; color: var(--text-dim);
    font-size: 26px; cursor: pointer; line-height: 1;
  }
  .login-close:hover { color: var(--text); }

  /* HERO */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0 48px 80px;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, rgba(20,20,20,0.95) 30%, rgba(20,20,20,0.3) 70%, transparent 100%),
      linear-gradient(to top, rgba(20,20,20,1) 0%, transparent 40%);
    z-index: 1;
  }

  .hero-poster-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 70% 40%, #1a3a6a 0%, transparent 55%),
      radial-gradient(ellipse at 80% 70%, #2a1040 0%, transparent 45%),
      #0a0a1a;
    z-index: 0;
  }

  /* Film strip decoration */
  .hero-strip {
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 4px;
    transform: skewX(-2deg);
  }
  .hero-strip-cell {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    animation: flicker 4s infinite alternate;
  }
  .hero-strip-cell:nth-child(odd) { animation-delay: 0.5s; }
  .hero-strip-cell:nth-child(3n) { animation-delay: 1.2s; }

  @keyframes flicker {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    animation: fadeUp 0.8s ease both;
  }

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

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 16px;
    animation: fadeUp 0.8s 0.1s ease both;
  }
  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
  }

  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 0.9;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 6px;
    animation: fadeUp 0.8s 0.15s ease both;
  }

  .hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 18px;
    animation: fadeUp 0.8s 0.2s ease both;
  }

  .hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeUp 0.8s 0.25s ease both;
  }
  .hero-meta .match { color: #46d369; font-weight: 600; }
  .hero-meta .age { border: 1px solid var(--text-muted); padding: 1px 5px; font-size: 11px; }
  .hero-meta-sep { opacity: 0.3; }

  .hero-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #c8c8c8;
    margin-bottom: 28px;
    max-width: 420px;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  .hero-btns {
    display: flex;
    gap: 10px;
    animation: fadeUp 0.8s 0.35s ease both;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
  }
  .btn-play {
    background: #fff;
    color: #000;
  }
  .btn-play:hover { background: rgba(255,255,255,0.85); }

  .btn-info {
    background: rgba(109,109,110,0.7);
    color: #fff;
  }
  .btn-info:hover { background: rgba(109,109,110,0.5); }

  .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

  /* SCROLL ROWS */
  main { padding: 0 48px; }

  .row { margin-bottom: 40px; }

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

  .row-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e5e5;
    letter-spacing: 0.01em;
  }

  .row-see-all {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .row:hover .row-see-all { opacity: 1; }
  .row-see-all:hover { color: #fff; }

  .cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .cards .card, .cards-top10 .card-top10 {
    animation: cardIn 0.5s ease both;
  }
  .cards .card:nth-child(1) { animation-delay: 0.03s; }
  .cards .card:nth-child(2) { animation-delay: 0.06s; }
  .cards .card:nth-child(3) { animation-delay: 0.09s; }
  .cards .card:nth-child(4) { animation-delay: 0.12s; }
  .cards .card:nth-child(5) { animation-delay: 0.15s; }
  .cards .card:nth-child(6) { animation-delay: 0.18s; }
  .cards .card:nth-child(n+7) { animation-delay: 0.2s; }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, z-index 0s 0.3s;
    aspect-ratio: 16/9;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .card:hover {
    transform: scale(1.08) translateY(-4px);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(124,92,255,0.45), 0 0 0 1px rgba(157,123,255,0.4);
    transition: transform 0.3s, box-shadow 0.3s, z-index 0s;
  }
  .card-top10 { text-decoration: none; color: inherit; }

  .card-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    position: relative;
  }
  /* Nom ostida qoraytiruvchi gradient — har qanday posterda o'qilsin */
  .card-img::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  .card-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    line-height: 1.25;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card:hover .card-overlay { background: rgba(0,0,0,0.2); }

  .card-play {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s;
  }
  .card:hover .card-play { opacity: 1; transform: scale(1); }
  .card-play svg { width: 14px; height: 14px; margin-left: 2px; }

  /* TOP 10 row */
  .cards-top10 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .card-top10 {
    position: relative;
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s;
    aspect-ratio: 2/3;
  }
  .card-top10:hover { transform: scale(1.05); z-index: 10; }

  .card-top10-img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }

  .top10-number {
    position: absolute;
    bottom: -10px;
    left: -14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: 2;
  }

  /* GENRES */
  .genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .genre-pill {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    color: #e5e5e5;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
  }
  .genre-pill:hover, .genre-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
  }

  /* FOOTER */
  footer {
    padding: 48px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 40px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .footer-link {
    color: var(--text-dim);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-link:hover { color: var(--text-muted); }
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--red);
  }
  .footer-copy {
    font-size: 12px;
    color: var(--text-dim);
  }

  /* Color palettes for fake posters */
  .c1 { background: linear-gradient(135deg, #1a3060 0%, #0a0a30 100%); }
  .c2 { background: linear-gradient(135deg, #3a1a1a 0%, #600a0a 100%); }
  .c3 { background: linear-gradient(135deg, #1a3a2a 0%, #0a2a1a 100%); }
  .c4 { background: linear-gradient(135deg, #2a2a1a 0%, #3a3010 100%); }
  .c5 { background: linear-gradient(135deg, #2a1a3a 0%, #1a0a30 100%); }
  .c6 { background: linear-gradient(135deg, #3a2a1a 0%, #502010 100%); }
  .c7 { background: linear-gradient(135deg, #1a2a3a 0%, #0a1a30 100%); }
  .c8 { background: linear-gradient(135deg, #3a1a2a 0%, #500a30 100%); }
  .c9 { background: linear-gradient(135deg, #1a3a3a 0%, #0a2a2a 100%); }
  .c10 { background: linear-gradient(135deg, #2a3a1a 0%, #1a3010 100%); }

  /* Search overlay */
  .search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .search-overlay.open { opacity: 1; pointer-events: all; }
  .search-input-wrap {
    width: 100%;
    max-width: 600px;
    position: relative;
  }
  .search-input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    font-family: 'DM Sans', sans-serif;
    padding: 12px 48px 12px 16px;
    outline: none;
  }
  .search-input::placeholder { color: rgba(255,255,255,0.3); }
  .search-close {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #fff; font-size: 22px;
    cursor: pointer; opacity: 0.7;
  }
  .search-close:hover { opacity: 1; }

  /* Scroll hint */
  .scroll-hint {
    position: absolute;
    bottom: 24px;
    right: 48px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    animation: fadeUp 0.8s 0.8s ease both;
  }
  .scroll-hint span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
  }
  .scroll-line {
    width: 1px;
    height: 40px;
    background: #fff;
    animation: scrollDown 1.5s infinite;
  }
  @keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* === Responsive (telefon) === */
  @media (max-width: 900px) {
    nav { padding: 0 20px; gap: 16px; }
    .nav-links { display: none; }
    .hero { padding: 0 20px 60px; min-height: 520px; }
    main { padding: 0 20px; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .cards-top10 { grid-template-columns: repeat(3, 1fr); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    /* Telefonda poster tepada, matn pastda o'qilsin */
    .hero-poster-bg { background-position: center top !important; }
    .hero-bg {
      background:
        linear-gradient(to top, rgba(20,20,20,1) 0%, rgba(20,20,20,0.5) 35%, transparent 70%) !important;
    }
  }
  @media (max-width: 560px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards-top10 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 44px; }
    .nav-logo { font-size: 24px; }
  }

  /* Loading spinner */
  .loader { text-align:center; padding:60px 20px; color:var(--text-muted); }
  .spin { width:40px; height:40px; border:3px solid rgba(255,255,255,0.1); border-top-color:var(--red); border-radius:50%; animation:spin 0.8s linear infinite; margin:0 auto 16px; }
  @keyframes spin { to { transform:rotate(360deg); } }

  /* Real poster image in cards */
  .card-img img, .card-top10-img img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; z-index:0; }
  .card-img { position:relative; }
  .card-name { position:relative; z-index:2; }

  /* Movie modal */
  .movie-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,0.85); backdrop-filter:blur(8px); z-index:300; display:none; align-items:center; justify-content:center; padding:20px; }
  .movie-modal-bg.open { display:flex; }
  .movie-modal { background:var(--bg2); border-radius:12px; max-width:720px; width:100%; max-height:92vh; overflow-y:auto; animation:fadeUp 0.3s ease; }
  .mm-hero { position:relative; min-height:240px; display:flex; align-items:flex-end; padding:24px; background-size:cover; background-position:center; }
  .mm-hero::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(31,31,31,0.4),rgba(31,31,31,0.97)); }
  .mm-hero-in { position:relative; z-index:1; display:flex; gap:18px; align-items:flex-end; width:100%; }
  .mm-poster { width:110px; aspect-ratio:2/3; border-radius:8px; object-fit:cover; flex-shrink:0; }
  .mm-poster.ph { display:flex; align-items:center; justify-content:center; font-size:38px; background:var(--bg3); }
  .mm-info h2 { font-family:'Bebas Neue',sans-serif; font-size:34px; letter-spacing:1px; line-height:1; margin-bottom:8px; }
  .mm-original-title { font-style:italic; color:var(--text-muted); font-size:15px; margin:-2px 0 10px; }
  .mm-crew { color:var(--text-muted); font-size:13px; margin:0 0 6px; line-height:1.5; }
  .mm-crew b { color:#fff; font-weight:600; }
  .mm-person { cursor:pointer; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:2px; }
  .mm-person:hover { color:#5ad1ff; }
  .mm-person:not(:last-child)::after { content:","; text-decoration:none; margin-right:3px; color:var(--text-muted); }
  .mm-tag.tmdb { background:rgba(90,209,255,0.15); color:#5ad1ff; }
  .mm-tags { display:flex; gap:8px; flex-wrap:wrap; }
  .mm-tag { font-size:11px; padding:3px 9px; background:rgba(255,255,255,0.12); border-radius:4px; color:#fff; }
  .mm-tag.r { background:var(--red); }
  .mm-lang-switch { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
  .mm-lang-btn { font-size:12px; padding:6px 14px; border-radius:20px; border:1px solid rgba(255,255,255,0.25);
    background:rgba(255,255,255,0.08); color:#fff; cursor:pointer; transition:background .15s,border-color .15s; }
  .mm-lang-btn:hover:not(:disabled) { background:rgba(255,255,255,0.18); }
  .mm-lang-btn.active { background:var(--red); border-color:var(--red); cursor:default; font-weight:600; }
  .mm-lang-btn:disabled { cursor:default; }
  .mm-body { padding:24px; }
  .mm-trailer { position:relative; width:100%; aspect-ratio:16/9; border-radius:10px; overflow:hidden; cursor:pointer; margin-bottom:18px; background:#000; }
  .mm-trailer img { width:100%; height:100%; object-fit:cover; display:block; opacity:0.85; transition:opacity 0.2s; }
  .mm-trailer:hover img { opacity:1; }
  .mm-trailer iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
  .mm-play { position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%; background:rgba(229,9,20,0.92); display:flex; align-items:center; justify-content:center; color:#fff; font-size:25px; padding-left:5px; pointer-events:none; box-shadow:0 6px 24px rgba(0,0,0,0.5); }
  .mm-trailer-lbl { position:absolute; left:12px; top:12px; background:rgba(0,0,0,0.65); color:#fff; font-size:12px; font-weight:600; padding:5px 10px; border-radius:20px; pointer-events:none; }
  .mm-desc { color:#c8c8c8; font-size:14px; line-height:1.7; margin-bottom:22px; }

  /* Izohlar */
  .mm-reviews { margin-top:26px; border-top:1px solid #262626; padding-top:18px; }
  .rev-head { font-family:'Bebas Neue',sans-serif; font-size:22px; letter-spacing:1px; margin-bottom:14px; }
  .rev-form { background:#1b1b1b; border:1px solid #2a2a2a; border-radius:10px; padding:12px; margin-bottom:18px; }
  .rev-stars { font-size:22px; color:#ffc107; cursor:pointer; margin-bottom:8px; user-select:none; }
  .rev-stars span { padding:0 1px; }
  .rev-form textarea { width:100%; min-height:64px; background:#111; border:1px solid #333; border-radius:8px; color:#fff; padding:10px; font-size:14px; resize:vertical; font-family:inherit; }
  .rev-send { margin-top:10px; background:var(--accent2,#e50914); color:#fff; border:none; padding:10px 22px; border-radius:8px; font-weight:700; cursor:pointer; font-size:14px; }
  .rev-send:hover { filter:brightness(1.1); }
  .rev-login { background:#1b1b1b; border:1px solid #2a2a2a; border-radius:10px; padding:14px; font-size:13.5px; color:#bbb; margin-bottom:18px; }
  .rev-login a { color:#5ad1ff; }
  .rev-list { display:flex; flex-direction:column; gap:14px; }
  .rev-item { display:flex; gap:11px; }
  .rev-av img, .rev-av-ph { width:38px; height:38px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
  .rev-av-ph { background:linear-gradient(135deg,#444,#222); display:flex; align-items:center; justify-content:center; font-weight:700; color:#ffd166; }
  .rev-main { flex:1; min-width:0; }
  .rev-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; }
  .rev-rate { color:#ffc107; font-size:12.5px; }
  .rev-date { color:#777; font-size:12px; }
  .rev-del { background:none; border:none; color:#a55; cursor:pointer; font-size:13px; margin-left:auto; }
  .rev-text { color:#d2d2d2; font-size:14px; line-height:1.55; margin-top:3px; white-space:pre-wrap; word-break:break-word; }
  .rev-empty { color:#777; font-size:13.5px; padding:6px 0; }
  .mm-watch { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:15px; background:var(--red); color:#fff; border:none; border-radius:6px; font-family:'DM Sans',sans-serif; font-size:16px; font-weight:600; cursor:pointer; text-decoration:none; transition:background 0.2s; }
  .mm-watch:hover { background:var(--red-dark); }
  .mm-note { text-align:center; color:var(--text-dim); font-size:12px; margin-top:12px; }
  .mm-close { position:absolute; top:14px; right:14px; z-index:2; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,0.6); border:none; color:#fff; font-size:20px; cursor:pointer; }

  /* Empty/error state */
  .state-msg { text-align:center; padding:50px 20px; color:var(--text-muted); }

  /* Sevimlilar — bo'sh holat va son */
  .row-count {
    display: inline-block; margin-left: 8px;
    background: var(--bg3); color: var(--gold);
    font-size: 0.62em; font-weight: 700; vertical-align: middle;
    padding: 2px 9px; border-radius: 999px;
  }
  .fav-empty {
    text-align: center; padding: 70px 24px;
    max-width: 420px; margin: 0 auto;
  }
  .fav-empty-ic { font-size: 56px; margin-bottom: 14px; }
  .fav-empty-t { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
  .fav-empty-s { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
  .fav-empty-btn {
    background: var(--accent2); color: #0a0820; border: none;
    padding: 11px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: filter 0.2s;
  }
  .fav-empty-btn:hover { filter: brightness(1.1); }

  /* === Hamburger + mobil menyu === */
  .nav-burger { display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:6px; }
  .nav-burger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:all 0.3s; }
  body.menu-open .nav-burger span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
  body.menu-open .nav-burger span:nth-child(2) { opacity:0; }
  body.menu-open .nav-burger span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

  .mobile-menu { position:fixed; top:0; left:0; bottom:0; width:260px; max-width:80vw; z-index:250;
    background:#1a1a24; border-right:1px solid rgba(255,255,255,0.08); padding:80px 0 30px;
    transform:translateX(-100%); transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); overflow-y:auto; }
  body.menu-open .mobile-menu { transform:translateX(0); }
  .mobile-menu .mm-logo { font-family:'Bebas Neue',sans-serif; font-size:26px; color:var(--red); padding:0 24px 20px; letter-spacing:1px; }
  .mobile-menu a { display:flex; align-items:center; gap:11px; padding:14px 24px; color:#e5e5e5; text-decoration:none; font-size:16px; transition:all 0.2s; border-left:3px solid transparent; }
  .mobile-menu a svg { flex-shrink:0; opacity:0.85; }
  .mobile-menu a:hover { background:rgba(124,92,255,0.1); border-left-color:var(--red); color:#fff; }
  .mobile-menu-bg { position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(3px); z-index:240; opacity:0; visibility:hidden; transition:all 0.3s; }
  body.menu-open .mobile-menu-bg { opacity:1; visibility:visible; }

  @media (max-width: 900px) {
    .nav-burger { display:flex; }
  }

  /* Hero almashinish (fade) */
  .hero-poster-bg { transition: opacity 0.6s ease; }

  /* Hero slide almashinish */
  .hero-content { transition: transform 0.4s ease, opacity 0.4s ease; }
  .hero-slide-out { transform: translateX(-40px); opacity: 0; }
  .hero-slide-in { animation: heroSlideIn 0.6s ease; }
  @keyframes heroSlideIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  /* Saralash tugmalari */
  .sort-bar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:24px; }
  .sort-bar .sort-label { color:var(--text-muted); font-size:13px; margin-right:4px; }
  .sort-btn { padding:7px 14px; border-radius:18px; border:1px solid rgba(255,255,255,0.2); font-size:13px; color:#e5e5e5; cursor:pointer; background:rgba(255,255,255,0.05); transition:all 0.2s; }
  .sort-btn:hover, .sort-btn.active { background:#fff; color:#000; border-color:#fff; }
  .random-btn { padding:7px 16px; border-radius:18px; border:1px solid var(--red); background:rgba(229,9,20,0.1); color:var(--red); font-size:13px; cursor:pointer; margin-left:auto; transition:all 0.2s; }
  .random-btn:hover { background:var(--red); color:#fff; }

  /* O'xshash kinolar (modalda) */
  .similar-row { margin-top:20px; }
  .similar-row h4 { font-size:15px; margin-bottom:12px; color:#e5e5e5; }
  .similar-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
  @media(max-width:560px){ .similar-cards{ grid-template-columns:repeat(3,1fr); } }
  .similar-card { cursor:pointer; transition:transform 0.2s; }
  .similar-card:hover { transform:scale(1.05); }
  .similar-poster { aspect-ratio:2/3; border-radius:6px; overflow:hidden; position:relative; background:#2a2a34; }
  .similar-poster img { width:100%; height:100%; object-fit:cover; }
  .similar-card .st { font-size:11px; color:#c8c8c8; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  /* ============================================================
     FON EFFEKTLARI — har biri body klassi bilan yoqiladi
     (admin paneldan boshqariladi)
     ============================================================ */

  /* 1) Porlovchi yulduzlar — yulduz nuqtalari atrofida yumshoq nur */
  body.fx-glow::after { filter: drop-shadow(0 0 2px rgba(255,255,255,0.55)); }
  body.fx-glow .stars2 { filter: drop-shadow(0 0 2px rgba(90,209,255,0.55)); }
  body.fx-glow .stars3 { filter: drop-shadow(0 0 4px rgba(157,123,255,0.7)); }

  /* 2) Yiltirovchi katta yulduzlar (✦) */
  .bigstars { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
  body.fx-bigstars .bigstars { display: block; }
  .bigstar {
    position: absolute; color: #fff; line-height: 1;
    text-shadow: 0 0 8px rgba(157,123,255,0.9), 0 0 14px rgba(90,209,255,0.6);
    opacity: 0.85; transform: scale(0.6);
    animation: bigstar-twinkle 6s ease-in-out infinite;
  }
  .bigstar.b1 { top: 14%; left: 12%; font-size: 18px; animation-delay: 0s; }
  .bigstar.b2 { top: 28%; left: 82%; font-size: 22px; color: #cbb8ff; animation-delay: 1.4s; }
  .bigstar.b3 { top: 62%; left: 22%; font-size: 16px; color: #b8ecff; animation-delay: 2.7s; }
  .bigstar.b4 { top: 75%; left: 70%; font-size: 24px; animation-delay: 0.8s; }
  .bigstar.b5 { top: 45%; left: 50%; font-size: 14px; color: #ffd9f0; animation-delay: 3.6s; }
  .bigstar.b6 { top: 88%; left: 40%; font-size: 18px; color: #cbb8ff; animation-delay: 2.0s; }
  @keyframes bigstar-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.5) rotate(0deg); }
    45%      { opacity: 0.95; transform: scale(1.1) rotate(8deg); }
    55%      { opacity: 1;    transform: scale(1.25) rotate(-4deg); }
    70%      { opacity: 0.5;  transform: scale(0.8) rotate(0deg); }
  }

  /* 3) Parallaks — JS qatlamlarni siljitadi (faqat klass bo'lsa ishlaydi) */
  body.fx-parallax .stars2,
  body.fx-parallax .stars3,
  body.fx-parallax .bigstars { transition: transform 0.25s ease-out; will-change: transform; }

  /* 4) Sayyora silueti — burchakda xira sayyora + halqa */
  .planet { position: fixed; z-index: -1; pointer-events: none; display: none;
    right: -90px; top: 8%; width: 260px; height: 260px; }
  body.fx-planet .planet { display: block; }
  .planet-body {
    position: absolute; inset: 0; border-radius: 50%;
    background:
      radial-gradient(circle at 35% 30%, rgba(157,123,255,0.55), rgba(90,90,160,0.25) 55%, rgba(20,18,46,0.0) 72%),
      radial-gradient(circle at 70% 75%, rgba(90,209,255,0.30), transparent 60%);
    box-shadow: inset -18px -10px 40px rgba(0,0,0,0.45), 0 0 60px rgba(124,92,255,0.25);
    opacity: 0.7;
    animation: planet-float 18s ease-in-out infinite alternate;
  }
  .planet-ring {
    position: absolute; top: 42%; left: -22%; width: 144%; height: 60px;
    border-radius: 50%; border: 2px solid rgba(157,123,255,0.35);
    border-top-color: rgba(90,209,255,0.5);
    transform: rotate(-22deg); opacity: 0.6;
  }
  @keyframes planet-float {
    0% { transform: translateY(0); } 100% { transform: translateY(26px); }
  }

  /* 5) Yulduz changi — pastdan yuqoriga ko'tariladigan zarrachalar */
  .stardust { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; overflow: hidden; }
  body.fx-stardust .stardust { display: block; }
  .dust {
    position: absolute; bottom: -12px; width: 2px; height: 2px; border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 6px 1px rgba(157,123,255,0.7);
    animation: dust-rise linear infinite;
  }
  @keyframes dust-rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
  }

  /* 6) Aurora to'lqini — yuqorida sekin to'lqinlanuvchi shafaq */
  .aurora { position: fixed; top: -10%; left: -20%; width: 140%; height: 55%;
    z-index: -2; pointer-events: none; display: none; filter: blur(40px); opacity: 0.5; }
  body.fx-aurora .aurora { display: block; }
  .aurora::before, .aurora::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
  }
  .aurora::before {
    background: radial-gradient(ellipse 60% 80% at 30% 40%, rgba(90,209,255,0.5), transparent 60%),
                radial-gradient(ellipse 50% 70% at 70% 30%, rgba(124,92,255,0.45), transparent 60%);
    animation: aurora-wave 16s ease-in-out infinite alternate;
  }
  .aurora::after {
    background: radial-gradient(ellipse 55% 75% at 55% 50%, rgba(255,110,199,0.30), transparent 60%);
    animation: aurora-wave 20s ease-in-out infinite alternate-reverse;
  }
  @keyframes aurora-wave {
    0%   { transform: translateX(0) scaleY(1); }
    50%  { transform: translateX(6%) scaleY(1.15); }
    100% { transform: translateX(-5%) scaleY(0.95); }
  }
  @media (prefers-reduced-motion: reduce) {
    .bigstar, .planet-body, .dust, .aurora::before, .aurora::after { animation: none; }
  }

  /* ============ YANGI EFFEKTLAR ============ */

  /* 7) Burjlar chizig'i — yulduzlarni bog'lovchi xira chiziqlar */
  .constellation { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
  body.fx-constellation .constellation { display: block; }
  .constellation svg { width: 100%; height: 100%; }
  .constellation line { stroke: rgba(157,123,255,0.20); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .constellation circle { fill: rgba(255,255,255,0.9); }
  .constellation .cl-glow { filter: drop-shadow(0 0 3px rgba(157,123,255,0.85)); }
  .constellation .cl-dim { animation: const-pulse 7s ease-in-out infinite; }
  @keyframes const-pulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.7; } }

  /* 8) Galaktika pulslari — uzoqdagi porlovchi sharlar */
  .orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; display: none; }
  body.fx-orbs .orbs { display: block; }
  .orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: 0.0;
    animation: orb-pulse 11s ease-in-out infinite; }
  .orb.o1 { top: 20%; left: 8%;  width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(124,92,255,0.5), transparent 70%); animation-delay: 0s; }
  .orb.o2 { top: 60%; left: 78%; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(90,209,255,0.45), transparent 70%); animation-delay: 3.5s; }
  .orb.o3 { top: 78%; left: 30%; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,110,199,0.4), transparent 70%); animation-delay: 6.5s; }
  @keyframes orb-pulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50%      { opacity: 0.8; transform: scale(1.15); }
  }

  /* 9) Meteorlar yomg'iri — tez-tez uchadigan qo'shimcha yulduzlar */
  body.fx-meteors .meteor { display: block; }
  .meteor { display: none; position: fixed; top: -8%; width: 3px; height: 3px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 10px 2px rgba(255,255,255,0.9); z-index: -1; pointer-events: none; }
  .meteor::after { content: ''; position: absolute; bottom: 50%; left: 50%;
    width: 1.5px; height: 110px; transform: translateX(-50%);
    background: linear-gradient(to top, rgba(90,209,255,0.9), transparent); }
  .meteor.m1 { left: 25%; animation: meteor-fall 3.5s linear infinite; }
  .meteor.m2 { left: 55%; animation: meteor-fall 4.2s linear infinite 1.2s; }
  .meteor.m3 { left: 85%; animation: meteor-fall 3s linear infinite 2.1s; }
  .meteor.m4 { left: 10%; animation: meteor-fall 4.6s linear infinite 0.6s; }
  .meteor.m5 { left: 70%; animation: meteor-fall 3.3s linear infinite 2.8s; }
  .meteor.m6 { left: 40%; animation: meteor-fall 5s linear infinite 1.7s; }
  @keyframes meteor-fall {
    0%   { transform: translate(0,0) rotate(30deg); opacity: 0; }
    8%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: translate(-30vw, 120vh) rotate(30deg); opacity: 0; }
  }

  /* 10) Rang o'zgaruvchi tumanlik — nebula sekin rang aylantiradi */
  body.fx-hueshift::before { animation: nebula-drift 22s ease-in-out infinite alternate, hue-cycle 30s linear infinite; }
  @keyframes hue-cycle { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

  @media (prefers-reduced-motion: reduce) {
    .orb, .meteor, .constellation .cl-dim { animation: none; }
    body.fx-hueshift::before { animation: none; }
  }

  /* ============ FOOTER (yangilangan) + ALOQA ============ */
  footer { position: relative; z-index: 1; margin-top: 60px; padding: 40px 6% 24px;
    border-top: 1px solid rgba(157,123,255,0.18);
    background: linear-gradient(180deg, rgba(27,24,64,0.0), rgba(27,24,64,0.5)); }
  .footer-grid { max-width: 1100px; margin: 0 auto; display: grid;
    grid-template-columns: 2fr 1fr 1.3fr; gap: 36px; }
  .footer-col h4.footer-h { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 1px; }
  .footer-col a { display: block; color: var(--text-muted); text-decoration: none;
    font-size: 14px; padding: 4px 0; transition: color .15s; }
  .footer-col a:hover { color: #fff; }
  .footer-about { color: var(--text-dim); font-size: 13px; line-height: 1.7; max-width: 320px; }
  .footer-tg { display: inline-flex !important; align-items: center; gap: 8px; color: #5ad1ff !important;
    border: 1px solid rgba(90,209,255,0.35); border-radius: 10px; padding: 9px 14px !important; font-weight: 500; }
  .footer-tg:hover { background: rgba(90,209,255,0.12); color: #fff !important; }
  .footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 18px;
    border-top: 1px solid rgba(157,123,255,0.12); text-align: center; }
  .footer-copy { color: var(--text-dim); font-size: 12.5px; }
  @media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  }

  /* ============ TEPAGA QAYTISH TUGMASI ============ */
  #toTop { position: fixed; right: 22px; bottom: 22px; z-index: 50;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, #7c5cff, #5ad1ff); color: #fff;
    box-shadow: 0 6px 20px rgba(124,92,255,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; }
  #toTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
  #toTop:hover { transform: translateY(-3px) scale(1.05); }

  /* ============ SEVIMLILAR (heart tugmasi) ============ */
  .card { position: relative; }
  .fav-btn {
    position: absolute; top: 8px; right: 8px; z-index: 4;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(10,8,24,0.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.8); transition: opacity .2s, transform .2s, background .2s;
  }
  .card:hover .fav-btn { opacity: 1; transform: scale(1); }
  .fav-btn.faved { opacity: 1; transform: scale(1); }
  .fav-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
  .fav-btn.faved svg { fill: #ff4d6d; stroke: #ff4d6d; }
  .fav-btn:hover { background: rgba(255,77,109,0.25); }
  @media (hover:none) { .fav-btn { opacity: 1; transform: scale(1); } }
  /* ============ AKTIV NAVIGATSIYA (qaysi bo'limdaligini ko'rsatadi) ============ */
  .nav-links a.nav-active {
    color: #fff;
    position: relative;
  }
  .nav-links a.nav-active::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #7c5cff, #5ad1ff);
  }
  .mobile-menu a.nav-active {
    color: #fff;
    background: rgba(157,123,255,0.15);
    border-radius: 8px;
  }

  /* ============ TELEGRAM OGOHLANTIRISHI ============ */
  .tg-notice {
    display: flex; align-items: center; gap: 12px;
    max-width: 1100px; margin: 18px auto 6px; padding: 13px 16px;
    background: linear-gradient(135deg, rgba(34,158,217,0.16), rgba(124,92,255,0.12));
    border: 1px solid rgba(34,158,217,0.4); border-radius: 12px;
    color: #d6ecff; font-size: 14px; line-height: 1.5;
  }
  .tg-notice svg { color: #38b6ff; }
  .tg-notice b { color: #fff; }
  .tg-notice button {
    margin-left: auto; flex-shrink: 0; background: none; border: none;
    color: #9bb8d4; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  }
  .tg-notice button:hover { background: rgba(255,255,255,0.1); color: #fff; }
  @media (max-width: 600px) { .tg-notice { font-size: 13px; padding: 11px 13px; } }

/* Karta belgilari (reyting, premium, til) — bir-birining ustiga tushmasin deb ustunga tizilgan */
.card-badges {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.card-rate, .card-langs, .card-prem {
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  backdrop-filter: blur(2px); white-space: nowrap;
}
.card-rate { background: rgba(0,0,0,0.72); color: #ffc107; }
.card-langs { background: rgba(0,0,0,0.72); color: #8ec9ff; font-size: 11px; }
.card-prem {
  background: linear-gradient(90deg,#f7d046,#e0950b); color: #231803;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* "Yuqoriga" tugmasi */
.to-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red, #e50914); color: #fff;
  border: none; font-size: 22px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { filter: brightness(1.12); }

/* ═══════════ IZOHGA JAVOB (reply / thread) ═══════════ */
.rev-replyto { color: var(--accent2); font-size: 12px; }
.rev-actions { margin-top: 6px; }
.rev-reply-btn {
  background: none; border: none; color: var(--accent2);
  font-size: 12.5px; cursor: pointer; padding: 2px 0; font-family: inherit;
}
.rev-reply-btn:hover { text-decoration: underline; }
.rev-reply-form { margin-top: 9px; }
.rev-reply-form textarea {
  width: 100%; min-height: 48px; background: #111; border: 1px solid #333;
  border-radius: 8px; color: #fff; padding: 9px; font-size: 13.5px;
  resize: vertical; font-family: inherit;
}
.rev-reply-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.rev-send.sm { margin-top: 0; padding: 7px 16px; font-size: 13px; }
.rev-cancel {
  background: none; border: 1px solid #3a3a52; color: var(--text-dim);
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit;
}
.rev-cancel:hover { color: #fff; border-color: #555; }
.rev-replies {
  margin-top: 12px; padding-left: 14px;
  border-left: 2px solid rgba(124,92,255,0.35); display: flex;
  flex-direction: column; gap: 12px;
}
.rev-reply .rev-av img, .rev-reply .rev-av-ph { width: 30px; height: 30px; }
.rev-reply .rev-text { font-size: 13.5px; }

/* ═══════════ TEZ ORADA (coming soon) ═══════════ */
.soon-head { margin: 4px 0 18px; }
.soon-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px;
  margin: 0 0 6px; color: #fff;
}
.soon-sub { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 720px; margin: 0; }
.soon-sub b { color: var(--gold); }

.soon-request { display: flex; gap: 10px; margin: 0 0 6px; max-width: 560px; flex-wrap: wrap; }
.soon-req-input {
  flex: 1; min-width: 200px; background: var(--bg2); border: 1px solid var(--bg3);
  border-radius: 10px; color: #fff; padding: 12px 14px; font-size: 14px; font-family: inherit;
}
.soon-req-input:focus { outline: none; border-color: var(--red); }
.soon-req-btn {
  background: var(--red); color: #fff; border: none; border-radius: 10px;
  padding: 12px 24px; font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit;
}
.soon-req-btn:hover { filter: brightness(1.1); }
.soon-req-msg { font-size: 13px; margin: 0 0 18px; min-height: 18px; }
.soon-req-msg.ok { color: #67e08a; }
.soon-req-msg.err { color: #ff8088; }

.soon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.soon-card {
  background: var(--bg2); border: 1px solid var(--bg3); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.soon-card:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.5); }
.soon-poster {
  position: relative; aspect-ratio: 2/3; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.soon-poster img { width: 100%; height: 100%; object-fit: cover; }
.soon-ph { font-size: 42px; opacity: 0.5; }
.soon-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(124,92,255,0.92);
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.soon-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.soon-name { font-weight: 600; font-size: 14.5px; color: #fff; line-height: 1.35; }
.soon-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.soon-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.soon-cnt { font-size: 11.5px; color: var(--text-muted); }
.soon-cnt-0 { color: var(--text-dim); }
.soon-bell {
  width: 100%; background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.5);
  color: #c7b6ff; padding: 10px; border-radius: 9px; font-weight: 600; cursor: pointer;
  font-size: 13px; font-family: inherit; transition: all .15s;
}
.soon-bell:hover { background: rgba(124,92,255,0.25); }
.soon-bell.on { background: rgba(103,224,138,0.16); border-color: rgba(103,224,138,0.55); color: #87e8a4; }
.soon-bell:disabled { opacity: 0.6; cursor: default; }

/* Bosh sahifadagi "Tez orada" mini-qator */
.row-more {
  font-size: 12.5px; color: var(--accent2); text-decoration: none; white-space: nowrap;
}
.row-more:hover { text-decoration: underline; }
.card.soon-mini { cursor: pointer; }
.card.soon-mini .card-img { position: relative; }

@media (max-width: 560px){
  .soon-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .soon-title { font-size: 27px; }
}

/* ═══════════ ULASHISH (Do'stga yuborish) ═══════════ */
.mm-share {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 10px; padding: 13px;
  background: var(--bg3); color: #fff; border: 1px solid rgba(124,92,255,0.4);
  border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s;
}
.mm-share:hover { background: rgba(124,92,255,0.22); border-color: rgba(124,92,255,0.7); }
.mm-share svg { flex: 0 0 auto; }

.share-sheet-bg {
  position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px);
}
.share-sheet-bg.show { opacity: 1; }
.share-sheet {
  width: 100%; max-width: 440px; background: var(--bg2);
  border: 1px solid var(--bg3); border-bottom: none;
  border-radius: 18px 18px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(20px); transition: transform .25s ease;
}
.share-sheet-bg.show .share-sheet { transform: translateY(0); }
@media (min-width: 560px){
  .share-sheet-bg { align-items: center; }
  .share-sheet { border-radius: 18px; border-bottom: 1px solid var(--bg3); margin: 0 16px; }
}
.share-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.share-name { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.share-url {
  font-size: 12.5px; color: var(--text-dim); background: var(--bg);
  border: 1px solid var(--bg3); border-radius: 9px; padding: 10px 12px;
  margin-bottom: 16px; word-break: break-all; line-height: 1.4;
}
.share-opts { display: flex; flex-direction: column; gap: 9px; }
.share-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border-radius: 11px; border: 1px solid var(--bg3);
  background: var(--bg3); color: #fff; font-size: 14.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s;
}
.share-opt:hover { filter: brightness(1.15); }
.share-opt.tg { background: linear-gradient(135deg, #2aabee, #229ed9); border-color: transparent; }
.share-opt.copy.done { background: rgba(103,224,138,0.18); border-color: rgba(103,224,138,0.5); color: #87e8a4; }
.share-ic { font-size: 19px; width: 24px; text-align: center; flex: 0 0 auto; }
.share-cancel {
  width: 100%; margin-top: 14px; padding: 12px; background: none;
  border: 1px solid var(--bg3); border-radius: 11px; color: var(--text-muted);
  font-size: 14px; font-family: inherit; cursor: pointer;
}
.share-cancel:hover { color: #fff; border-color: #555; }

/* ═══════════ SKELETON (yuklanish — miltillovchi bo'sh kartalar) ═══════════ */
@keyframes skel-shimmer {
  0%   { background-position: -480px 0; }
  100% { background-position:  480px 0; }
}
.skel {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.045) 25%,
    rgba(255,255,255,0.12)  50%,
    rgba(255,255,255,0.045) 75%);
  background-size: 480px 100%;
  animation: skel-shimmer 1.3s ease-in-out infinite;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce){
  .skel { animation-duration: 2.4s; }
}
.skel-row { margin-bottom: 40px; }
.skel-row-title { height: 19px; width: 170px; margin-bottom: 14px; border-radius: 6px; }
.skel-card { aspect-ratio: 16/9; border-radius: 8px; }
.skel-card.tall { aspect-ratio: 2/3; }
.skel-card.skel-soon { border-radius: 14px; }
.skel-modal-hero { width: 100%; height: 220px; border-radius: 0; }
.skel-line { height: 13px; border-radius: 5px; margin: 9px 0; }

/* ═══════════ SAHIFALASH (pagination) ═══════════ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap; margin: 30px 0 10px;
}
.pg-num, .pg-arrow {
  min-width: 38px; height: 38px; padding: 0 11px; border-radius: 9px;
  background: var(--bg2); border: 1px solid var(--bg3); color: var(--text-muted);
  font-size: 14px; font-family: inherit; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.pg-arrow { font-size: 20px; line-height: 1; }
.pg-num:hover, .pg-arrow:hover:not(:disabled) { border-color: var(--red); color: #fff; }
.pg-num.active {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 700;
  box-shadow: 0 4px 14px rgba(124,92,255,.4);
}
.pg-arrow:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--text-dim); padding: 0 4px; user-select: none; }

/* Qidiruv natijalari ko'p bo'lsa — oyna ichida aylantirish mumkin */
.search-overlay { overflow-y: auto; }

/* ═══════════ BILDIRISHNOMA QO'NG'IROG'I ═══════════ */
.nav-bell {
  position: relative; background: none; border: none; color: #fff;
  cursor: pointer; padding: 6px; opacity: .85; display: flex; align-items: center;
}
.nav-bell:hover { opacity: 1; }
.nav-bell-badge {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}
.notif-panel {
  position: absolute; top: 64px; right: 16px; width: 340px; max-width: calc(100vw - 24px);
  background: var(--bg2); border: 1px solid var(--bg3); border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,.55); overflow: hidden; z-index: 1200;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.notif-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif-head { padding: 14px 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--bg3); }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--text-dim); font-size: 14px; }
.notif-item {
  display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.notif-item.clickable { cursor: pointer; }
.notif-item.clickable:hover { background: rgba(124,92,255,.1); }
.notif-item.unread { background: rgba(124,92,255,.07); }
.notif-ic { font-size: 18px; flex: 0 0 auto; }
.notif-body { min-width: 0; }
.notif-text { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.notif-date { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
@media (max-width: 560px){ .notif-panel { top: 58px; right: 8px; } }

/* ═══════════ FILTR PANELI ═══════════ */
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: -8px 0 22px; }
.filter-sel {
  background: var(--bg2); border: 1px solid var(--bg3); color: var(--text);
  border-radius: 10px; padding: 9px 13px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.filter-sel:focus { outline: none; border-color: var(--red); }
.filter-sel:hover { border-color: rgba(124,92,255,.5); }
.filter-clear {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #f87171;
  border-radius: 10px; padding: 9px 14px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.filter-clear:hover { background: rgba(248,113,113,.2); }

/* ═══════════ YUMSHOQ FADE (sahifa o'tishlari) ═══════════ */
@keyframes viewFade { from { opacity: 0; } to { opacity: 1; } }
.view-fade { animation: viewFade .28s ease both; }
@media (prefers-reduced-motion: reduce){ .view-fade { animation: none; } }

/* ═══════════ KARTA HOVER — qisqa ma'lumot (Netflix uslubi) ═══════════ */
.card-meta {
  position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2;
  font-size: 11px; color: #cfc9f0; opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.card:hover .card-name { transform: translateY(-14px); transition: transform .25s; }
.card:hover .card-meta { opacity: 1; transform: translateY(0); }
/* ========================================================================
   TELEFON UCHUN TEZLASHTIRISH — og'ir GPU effektlarini o'chiramiz (qotmaslik)
   ======================================================================== */
@media (max-width: 768px) {
  /* Doimiy animatsiyali katta blur fonlar — telefonda eng ko'p qotiradi */
  .aurora, .orbs { display: none !important; }
  .orb { animation: none !important; filter: none !important; }
  .aurora { filter: none !important; }
  /* Modal/menyu orqa fonidagi blur — telefonda oddiy quyuq rang bilan almashtiramiz */
  .movie-modal-bg, .mobile-menu-bg { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
