/* YangiKulgu — rasmiy sayt · premium dark, brend ranglari */
:root {
  --bg: #120d1a;
  --bg2: #191223;
  --card: #1f1730;
  --card2: #261c3a;
  --line: rgba(168, 105, 255, .14);
  --txt: #f3eefc;
  --mut: #9d8fb8;
  --orange: #f7941e;
  --orange2: #ffc93c;
  --purple: #a855f7;
  --red: #f87171;
  --grad: linear-gradient(135deg, #ffc93c 0%, #f7941e 55%, #f0691e 100%);
}
/* ---- Premium shrift: Lenia Sans (Envato, litsenziyali) ---- */
@font-face { font-family: 'Lenia Sans'; src: url('/fonts/LeniaSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lenia Sans'; src: url('/fonts/LeniaSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lenia Sans'; src: url('/fonts/LeniaSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lenia Sans'; src: url('/fonts/LeniaSans-Black.ttf') format('truetype'); font-weight: 800 900; font-style: normal; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font: 15px/1.6 'Lenia Sans', -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- Nav ---- */
.topnav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 12px 5vw; background: rgba(18, 13, 26, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(247,148,30,.5)); }
.brand b { display: block; font-size: 16px; line-height: 1.1; }
.brand i { font-style: normal; font-size: 10.5px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.topnav nav { display: flex; gap: 20px; }
.topnav nav a { color: var(--mut); font-size: 13.5px; font-weight: 600; transition: .15s; }
.topnav nav a:hover { color: var(--txt); }
.lang { display: flex; gap: 4px; }
.lang button { background: var(--card); border: 1px solid var(--line); color: var(--mut); font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: .15s; }
.lang button.on { background: var(--grad); color: #241302; border-color: transparent; }

/* ---- Hero ---- */
.hero { position: relative; text-align: center; padding: 72px 5vw 60px; overflow: hidden; }
.hero-glow { position: absolute; inset: -40% -20% auto; height: 130%; background: radial-gradient(50% 60% at 50% 30%, rgba(168,85,247,.16) 0%, transparent 70%); pointer-events: none; }
.hero-logo { width: 110px; height: 110px; filter: drop-shadow(0 8px 34px rgba(247,148,30,.45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 900; letter-spacing: -1px; margin-top: 14px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--mut); font-size: clamp(14px, 2.4vw, 17px); max-width: 640px; margin: 10px auto 0; }
.hero-stats { display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); margin: 34px 0 30px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: clamp(26px, 4.6vw, 40px); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 12px; color: var(--mut); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 14px; font-size: 14.5px; font-weight: 800; transition: .18s; border: 0; cursor: pointer; }
.btn.primary { background: var(--grad); color: #241302; box-shadow: 0 6px 26px rgba(247,148,30,.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(247,148,30,.5); }
.btn.ghost { background: rgba(168,85,247,.14); color: #d9bcff; border: 1px solid rgba(168,85,247,.35); }
.btn.ghost:hover { background: rgba(168,85,247,.24); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--mut); transition: .15s; }
.socials a:hover { color: var(--txt); border-color: var(--orange); transform: translateY(-1px); }

/* ---- Sections ---- */
.section { padding: 54px 5vw; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center; }
.sec-sub { text-align: center; color: var(--mut); margin: 8px 0 30px; }
.live-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--red); display: inline-block; animation: blink 1.2s infinite; box-shadow: 0 0 14px rgba(248,113,113,.8); }
@keyframes blink { 50% { opacity: .3; } }

/* ---- Player ---- */
.player-wrap { position: relative; padding-top: 56.25%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #000; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Channels ---- */
.ch-search { position: relative; max-width: 420px; margin: 0 auto 26px; }
.ch-search span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .7; }
.ch-search input { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px 11px 40px; color: var(--txt); font-size: 14px; outline: none; transition: .15s; }
.ch-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,148,30,.15); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ch-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; transition: .18s; }
.ch-card:hover { transform: translateY(-4px); border-color: rgba(247,148,30,.55); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.ch-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(247,148,30,.4); }
.ch-card h3 { font-size: 14px; font-weight: 800; margin: 10px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-card p { font-size: 12px; color: var(--mut); font-weight: 600; }
.ch-card p b { color: var(--orange); }

/* ---- Videos ---- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.vid { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: .18s; }
.vid:hover { transform: translateY(-3px); border-color: rgba(247,148,30,.5); }
.vid .thumb { position: relative; padding-top: 56.25%; background: #000; }
.vid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; }
.vid .play i { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-style: normal; color: #241302; font-size: 20px; box-shadow: 0 8px 26px rgba(247,148,30,.5); transition: .18s; }
.vid:hover .play i { transform: scale(1.12); }
.vid .meta { padding: 12px 14px; }
.vid .meta h4 { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid .meta span { font-size: 11.5px; color: var(--mut); font-weight: 600; }

/* ---- Ads ---- */
.ads-card { background: radial-gradient(120% 140% at 10% 0%, #2a1d45 0%, var(--card) 60%); border: 1px solid rgba(168,85,247,.35); border-radius: 24px; padding: clamp(28px, 5vw, 52px); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ads-card h2 { justify-content: center; }
.ads-card > p { color: var(--mut); max-width: 560px; margin: 12px auto 26px; }
.ads-stats { display: flex; justify-content: center; gap: clamp(16px, 4vw, 44px); margin-bottom: 30px; flex-wrap: wrap; }
.ads-stats div { text-align: center; }
.ads-stats b { display: block; font-size: 26px; font-weight: 900; color: var(--orange2); }
.ads-stats span { font-size: 11.5px; color: var(--mut); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---- Footer ---- */
footer { text-align: center; padding: 44px 5vw 54px; border-top: 1px solid var(--line); margin-top: 30px; }
footer img { width: 44px; opacity: .9; }
footer p { color: var(--mut); font-size: 13px; margin-top: 10px; }
.foot-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--mut); font-size: 12.5px; font-weight: 700; }
.foot-links a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .topnav nav { display: none; }
  .hero { padding-top: 48px; }
}

/* ---- Live poster (bosilganda yuklanadi) ---- */
.live-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(80% 100% at 50% 20%, #2a1d45 0%, #0d0916 75%); transition: .2s; }
.live-poster img { width: 90px; filter: drop-shadow(0 8px 30px rgba(247,148,30,.5)); }
.lp-play { width: 68px; height: 68px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #241302; font-size: 26px; box-shadow: 0 10px 36px rgba(247,148,30,.55); transition: .2s; }
.live-poster:hover .lp-play { transform: scale(1.12); }
.lp-text { color: var(--txt); font-size: 15px; font-weight: 800; }

/* ---- Brend ikonkalari ---- */
.icon { display: inline-flex; width: 17px; height: 17px; }
.icon svg { width: 100%; height: 100%; }
.btn .icon { width: 19px; height: 19px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; }

/* ---- AdSense slotlari ---- */
.ad-slot { display: none; }
.ad-slot.on { display: block; padding-top: 10px; padding-bottom: 10px; }
.ad-slot.on ins { border-radius: 14px; overflow: hidden; }

/* ---- Biz haqimizda ---- */
.about-story { max-width: 760px; margin: 0 auto 34px; text-align: center; color: var(--mut); font-size: 15.5px; line-height: 1.8; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px; text-align: center; transition: .2s; }
.about-card:hover { transform: translateY(-5px); border-color: rgba(247,148,30,.5); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.ab-ico { font-size: 38px; margin-bottom: 12px; display: inline-block; animation: abFloat 3.6s ease-in-out infinite; }
.about-card:nth-child(2) .ab-ico { animation-delay: .4s; }
.about-card:nth-child(3) .ab-ico { animation-delay: .8s; }
.about-card:nth-child(4) .ab-ico { animation-delay: 1.2s; }
@keyframes abFloat { 50% { transform: translateY(-7px); } }
.about-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-card p { font-size: 13px; color: var(--mut); line-height: 1.6; }

/* ---- Scroll-reveal animatsiya ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ab-ico, .hero-logo { animation: none; } }

/* ---- Shorts lentasi (vertikal 9:16 kartalar) ---- */
.shorts-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #241302; font-size: 18px; box-shadow: 0 6px 20px rgba(247,148,30,.4); }
.shorts-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shorts-row::-webkit-scrollbar { height: 8px; }
.shorts-row::-webkit-scrollbar-thumb { background: rgba(168,85,247,.35); border-radius: 8px; }
.shorts-row::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 8px; }
.short { flex: 0 0 190px; scroll-snap-align: start; cursor: pointer; }
.sthumb { position: relative; padding-top: 177.78%; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); transition: .18s; }
.short:hover .sthumb { transform: translateY(-4px); border-color: rgba(247,148,30,.55); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.sthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #241302; font-size: 17px; box-shadow: 0 8px 24px rgba(247,148,30,.5); transition: .18s; }
.short:hover .s-play { transform: translate(-50%,-50%) scale(1.14); }
.s-grad { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.86)); pointer-events: none; }
.s-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.s-meta h4 { font-size: 12.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-meta span { font-size: 10.5px; color: rgba(243,238,252,.7); font-weight: 600; }

/* Jonli o'sish (hero) */
.hero-stats .live-stat b { font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.hero-stats .live-stat > span { display: block; }
.hero-stats .tick { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11.5px; font-style: normal; font-weight: 700; color: #4ade80; letter-spacing: .3px; }
.hero-stats .tick svg { width: 14px; height: 14px; }
.hero-stats .tick i { font-style: normal; font-variant-numeric: tabular-nums; }
.hero-stats .growbar { height: 3px; width: 110px; margin: 8px auto 0; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.hero-stats .growbar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 2px; animation: yk-slide 2.4s ease-in-out infinite; }
@keyframes yk-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .hero-stats .growbar i { animation: none; width: 100%; } }

/* "Biz haqimizda" ikonkalari — SVG, brend rang */
.ab-ico { width: 46px; height: 46px; color: var(--orange); }
.ab-ico svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(247,148,30,.35)); }
.ab-ico.ab-live { color: var(--red); }
.ab-ico.ab-live svg { filter: drop-shadow(0 0 12px rgba(248,113,113,.6)); animation: abPulse 1.8s ease-in-out infinite; }
@keyframes abPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.ch-search span { display: inline-flex; color: var(--mut); }
.ch-search span svg { display: block; }
.shorts-badge svg { display: block; color: #1a0d00; }
.btn.ghost .live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(248,113,113,.6); animation: ykDot 1.6s ease-out infinite; vertical-align: 0; margin-right: 2px; }
@keyframes ykDot { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.6); } 100% { box-shadow: 0 0 0 9px rgba(248,113,113,0); } }

/* So'nggi premyeralar */
#premyera h2 { display: flex; align-items: center; justify-content: center; gap: 10px; }
.prem-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #241302; box-shadow: 0 6px 20px rgba(247,148,30,.4); }
.prem-mark svg { width: 19px; height: 19px; }
.prem-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.prem-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--txt); transition: transform .25s, border-color .25s, box-shadow .25s; }
.prem-card.big { grid-row: span 2; }
.prem-card:hover { transform: translateY(-4px); border-color: rgba(247,148,30,.55); box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(247,148,30,.15); }
.prem-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0d0813; }
.prem-card.big .prem-thumb { flex: 1; aspect-ratio: auto; min-height: 260px; }
.prem-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.prem-card:hover .prem-thumb img { transform: scale(1.04); }
.prem-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,8,19,.55)); pointer-events: none; }
.prem-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--grad); color: #241302; font-size: 10.5px; font-weight: 900; letter-spacing: 1.6px; padding: 5px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(247,148,30,.45); }
.prem-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(18,13,26,.72); border: 1.5px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; transition: .25s; }
.prem-play svg { width: 22px; height: 22px; margin-left: 3px; }
.prem-card:hover .prem-play { background: var(--grad); color: #241302; border-color: transparent; transform: scale(1.08); }
.prem-body { padding: 14px 16px 16px; }
.prem-title { font-size: 14.5px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prem-card.big .prem-title { font-size: 19px; }
.prem-date { margin-top: 6px; font-size: 12px; color: var(--mut); font-weight: 600; letter-spacing: .3px; }
.prem-more { text-align: center; margin-top: 22px; }
@media (max-width: 860px) {
  .prem-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .prem-card.big { grid-row: auto; }
  .prem-card.big .prem-thumb { aspect-ratio: 16/9; min-height: 0; flex: none; }
}

/* Saytdagi pleyer (premyera) */
.yk-player { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 3vh 3vw; }
.yk-player[hidden] { display: none; }
.yk-player-back { position: absolute; inset: 0; background: rgba(8,5,14,.86); backdrop-filter: blur(8px); animation: ykFade .18s; }
.yk-player-box { position: relative; width: min(1180px, 96vw); background: #0d0913; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(247,148,30,.12); animation: ykPop .22s cubic-bezier(.2,.8,.2,1); }
.yk-player-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.yk-player-title { flex: 1; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yk-player-yt { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--mut); border: 1px solid var(--line); transition: .2s; }
.yk-player-yt:hover { color: #fff; border-color: #FF0000; background: rgba(255,0,0,.12); }
.yk-player-close { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--txt); cursor: pointer; transition: .2s; }
.yk-player-close svg { width: 18px; height: 18px; }
.yk-player-close:hover { background: var(--grad); color: #241302; border-color: transparent; }
.yk-player-frame { position: relative; padding-top: 56.25%; background: #000; }
.yk-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes ykFade { from { opacity: 0; } }
@keyframes ykPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
