@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg-void:#090B10;
  --bg-surface:#141926;
  --bg-elevated:#1C2333;
  --text-primary:#F5F6FA;
  --text-muted:#8B93A7;
  --accent:#29E7CD;
  --accent-warm:#FFB84D;
  --accent-violet:#B18CFF;
  --border:#242B3D;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg-void);
  color:var(--text-primary);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}

h1,
h2{
  font-family:'Space Grotesk',sans-serif;
  margin:0;
  letter-spacing:-0.01em;
}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}


/* =========================================================
   GRADIENT POSTER PLACEHOLDERS
========================================================= */

.poster-g1{
  background:linear-gradient(135deg,#3B2A73,#1C1440);
}

.poster-g2{
  background:linear-gradient(135deg,#1D4E89,#0E223F);
}

.poster-g3{
  background:linear-gradient(135deg,#7A2447,#3A0F22);
}

.poster-g4{
  background:linear-gradient(135deg,#1F6B4F,#0E2E24);
}

.poster-g5{
  background:linear-gradient(135deg,#8A4E1E,#3D200B);
}

.poster-g6{
  background:linear-gradient(135deg,#7A2E6B,#39122F);
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 5vw;
  gap:24px;
  flex-wrap:wrap;
}

.brand{
  display:contents;
}

.brand-mark{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:45px;
  color:#d05f51;
  letter-spacing:.02em;
}

.top-nav{
  display:flex;
  align-items:center;
  gap:6px;
}

.top-link{
  padding:9px 16px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  color:var(--text-muted);
  transition:background .15s ease,color .15s ease;
}

.top-link:hover{
  color:var(--text-primary);
  background:var(--bg-surface);
}

.top-link.active{
  color:var(--text-primary);
  background:var(--bg-elevated);
}

.top-login{
  background:var(--accent);
  color:#04231F;
  font-weight:600;
}

.top-login:hover{
  background:var(--accent);
  opacity:.9;
  color:#04231F;
}

.top-login.active{
  background:var(--accent);
  color:#04231F;
}

.top-user{
  color:var(--text-primary);
}


/* =========================================================
   MOBILE NAV BUTTON
========================================================= */

.nav-toggle{
  display:none;
  width:38px;
  height:38px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--bg-surface);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.nav-toggle span{
  width:16px;
  height:2px;
  background:var(--text-primary);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:11px 22px;
  border-radius:8px;
  font-weight:600;
  font-size:14.5px;
  transition:transform .12s ease,opacity .12s ease;
  border:none;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--accent);
  color:#04231F;
}

.btn-primary:hover{
  opacity:.9;
}

.btn-secondary{
  background:var(--bg-elevated);
  color:var(--text-primary);
  border:1px solid var(--border);
}


/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page{
  padding-top:10px;
}

.about-hero{
  max-width:640px;
  margin-bottom:40px;
}

.about-hero h1{
  font-size:clamp(24px,3.4vw,36px);
  font-weight:700;
  margin:14px 0 14px;
}

.about-hero p{
  color:var(--text-muted);
  font-size:15.5px;
  line-height:1.65;
}

.about-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-bottom:44px;
}

.about-card{
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
  transition:border-color .15s ease,transform .15s ease;
}

.about-card:hover{
  border-color:var(--accent);
  transform:translateY(-3px);
}

.about-icon{
  font-size:28px;
  display:block;
  margin-bottom:12px;
}

.about-card h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:16px;
  margin-bottom:8px;
}

.about-card p{
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.55;
  margin:0;
}

.about-cta{
  display:flex;
  align-items:center;
  gap:18px;
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 28px;
  margin-bottom:20px;
}

.about-cta p{
  margin:0;
  color:var(--text-muted);
  font-size:15px;
}


/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page{
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px 0;
}

.auth-card{
  width:100%;
  max-width:380px;
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:36px 32px;
  text-align:center;
}

.auth-card .brand-mark{
  display:block;
  margin-bottom:18px;
  font-size:26px;
}

.auth-card h1{
  font-size:22px;
  margin-bottom:8px;
}

.auth-subtitle{
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.5;
  margin:0 0 22px;
}

.auth-error{
  background:rgba(255,107,107,.12);
  color:#FF8080;
  border:1px solid rgba(255,107,107,.3);
  border-radius:8px;
  padding:10px 14px;
  font-size:13px;
  margin-bottom:16px;
  text-align:left;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
}

.auth-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:var(--text-muted);
}

.auth-form input{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:8px;
  padding:11px 14px;
  color:var(--text-primary);
  font-size:14px;
}

.auth-form input:focus{
  border-color:var(--accent);
  outline:none;
}

.auth-submit{
  width:100%;
  justify-content:center;
  margin-top:4px;
}

.auth-note{
  color:var(--text-muted);
  font-size:12px;
  line-height:1.5;
  margin-top:18px;
}


/* =========================================================
   PRICING PAGE
========================================================= */

.pricing-page{
  padding-top:10px;
}

.pricing-hero{
  max-width:620px;
  margin:0 auto 44px;
  text-align:center;
}

.pricing-hero h1{
  font-size:clamp(24px,3.4vw,36px);
  font-weight:700;
  margin:14px 0 12px;
}

.pricing-hero p{
  color:var(--text-muted);
  font-size:15px;
  line-height:1.6;
}

.pricing-hero .hero-kind{
  display:inline-block;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
  max-width:1000px;
  margin:0 auto;
}

.plan-card{
  position:relative;
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px 26px;
  display:flex;
  flex-direction:column;
  transition:transform .18s ease,border-color .18s ease;
}

.plan-card:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
}

.plan-featured{
  border-color:var(--accent);
  background:linear-gradient(
    180deg,
    rgba(41,231,205,.08),
    var(--bg-surface) 40%
  );
  transform:scale(1.03);
}

.plan-featured:hover{
  transform:scale(1.03) translateY(-4px);
}

.plan-ribbon{
  position:absolute;
  top:-13px;
  left:50%;
  transform:translateX(-50%);
  background:var(--accent);
  color:#04231F;
  font-size:11.5px;
  font-weight:700;
  padding:5px 14px;
  border-radius:20px;
  white-space:nowrap;
}

.plan-name{
  font-size:19px;
  font-weight:700;
  margin-bottom:6px;
}

.plan-tagline{
  color:var(--text-muted);
  font-size:13px;
  margin:0 0 20px;
  min-height:34px;
}

.plan-price{
  display:flex;
  align-items:baseline;
  gap:4px;
  margin-bottom:22px;
}

.plan-amount{
  font-family:'Space Grotesk',sans-serif;
  font-size:36px;
  font-weight:700;
}

.plan-currency{
  font-size:18px;
  font-weight:600;
  color:var(--text-muted);
}

.plan-period{
  font-size:13px;
  color:var(--text-muted);
  margin-left:2px;
}

.plan-features{
  list-style:none;
  padding:0;
  margin:0 0 26px;
  display:flex;
  flex-direction:column;
  gap:11px;
  flex:1;
}

.plan-features li{
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:13.5px;
  color:var(--text-primary);
}

.plan-check{
  color:var(--accent);
  font-weight:700;
  flex-shrink:0;
}

.plan-cta{
  width:100%;
  justify-content:center;
}


/* =========================================================
   PAGE
========================================================= */

.page{
  padding:0 5vw 70px;
}


/* =========================================================
   HERO CAROUSEL
========================================================= */

.hero-carousel{
  position:relative;
  width:100%;
  height:800px;
  min-height:600px;
  border-radius:18px;
  overflow:hidden;
  margin-bottom:52px;
}

.hero-track{
  position:relative;
  width:100%;
  height:100%;
}

.hero-slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:48px;
  opacity:0;
  transform:scale(1.06);
  transition:opacity .9s ease, transform 6s ease;
  pointer-events:none;
}

.hero-slide.active{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    0deg,
    rgba(9,11,16,.95) 5%,
    rgba(9,11,16,.45) 55%,
    rgba(9,11,16,.15) 100%
  );
  z-index:1;
}

.hero-emoji{
  position:absolute;
  right:6%;
  top:50%;
  transform:translateY(-50%);
  font-size:clamp(90px,14vw,190px);
  opacity:.32;
  filter:drop-shadow(0 10px 40px rgba(0,0,0,.5));
}

.hero-info{
  position:relative;
  max-width:900px;
  width:100%;
  z-index:2;
  text-align:center;
}

.hero-kind{
  display:inline-block;
  font-size:12.5px;
  font-weight:600;
  padding:5px 12px;
  border-radius:6px;
  margin-bottom:14px;
}

.hero-kind-news{
  background:rgba(255,184,77,.15);
  color:var(--accent-warm);
}

.hero-kind-movie{
  background:rgba(41,231,205,.15);
  color:var(--accent);
}

.hero-kind-channel{
  background:rgba(177,140,255,.15);
  color:var(--accent-violet);
}

.hero-info h1{
  font-size:clamp(26px,3.6vw,42px);
  font-weight:700;
  margin-bottom:10px;
}

.hero-info p{
  color:var(--text-muted);
  font-size:15.5px;
  line-height:1.5;
  margin:0;
  max-width:480px;
}

.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  background:rgba(10,13,20,.5);
  border:1px solid rgba(255,255,255,.1);
  color:var(--text-primary);
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  z-index:5;
  transition:background .15s ease;
}

.hero-arrow:hover{
  background:rgba(41,231,205,.25);
}

.hero-arrow-prev{
  left:20px;
}

.hero-arrow-next{
  right:20px;
}

.hero-dots{
  position:absolute;
  bottom:20px;
  right:26px;
  display:flex;
  gap:8px;
  z-index:5;
}

.hero-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  border:none;
  cursor:pointer;
  transition:background .2s ease,width .2s ease;
}

.hero-dot.active{
  background:var(--accent);
  width:22px;
  border-radius:5px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}


/* =========================================================
   ROWS
========================================================= */

.row-section{
  margin-bottom:44px;
}

.row-header{
  margin-bottom:16px;
}

.row-header h2{
  font-size:20px;
  font-weight:600;
}

.carousel{
  position:relative;
}

.carousel-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:8px;
  scrollbar-width:thin;
  scrollbar-color:var(--bg-elevated) transparent;
}

.carousel-track::-webkit-scrollbar{
  height:6px;
}

.carousel-track::-webkit-scrollbar-thumb{
  background:var(--bg-elevated);
  border-radius:6px;
}


/* =========================================================
   TILES - GENERAL
========================================================= */

.tile{
  position:relative;
  flex:0 0 190px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:14px;
  transition:transform .18s ease,border-color .18s ease;
}

.tile:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
}


/* =========================================================
   CHANNEL TILES
========================================================= */

.channel-tile{
  height:150px;
}


/* Channel image:
   ամբողջությամբ երևում է,
   չի կտրվում */
.channel-tile .tile-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:18px;
  display:block;
  z-index:0;
}


/* =========================================================
   MOVIE TILES
========================================================= */

.movie-tile{
  height:285px;
}


/* Movie poster:
   ամբողջ tile-ը լցնում է */
.movie-tile .tile-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:0;
}


/* =========================================================
   TILE GLOW
========================================================= */

.tile-glow{
  position:absolute;
  inset:0;
  background:radial-gradient(
    circle at 70% 20%,
    rgba(255,255,255,.14),
    transparent 55%
  );
  z-index:1;
}


/* =========================================================
   TILE INFO
========================================================= */

.tile-info{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:clamp(14px,1.2vw,20px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tile-title{
  font-size:14px;
  font-weight:600;
}

.tile-meta{
  font-size:12px;
  color:rgba(245,246,250,.75);
}


/* =========================================================
   TILE BADGE
========================================================= */

.tile-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  background:rgba(41,231,205,.9);
  color:#04231F;
  font-size:10.5px;
  font-weight:700;
  padding:3px 8px;
  border-radius:5px;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-note{
  color:var(--text-muted);
  font-size:14px;
}

.empty-note code{
  background:var(--bg-elevated);
  padding:2px 6px;
  border-radius:4px;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width:1024px){

  .page{
    padding:0 4vw 60px;
  }

  .pricing-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:640px;
  }

  .plan-featured{
    transform:none;
  }

  .plan-featured:hover{
    transform:translateY(-4px);
  }

  .about-grid{
    grid-template-columns:repeat(2,minmax(180px,1fr));
  }
  
  .hero-carousel{
    height:500px;
    min-height:500px;
  }
}


/* =========================================================
   RESPONSIVE - TABLET / SMALL
========================================================= */

@media (max-width:820px){

  .nav-toggle{
    display:flex;
  }

  .top-nav{
    position:absolute;
    top:64px;
    left:4vw;
    right:4vw;
    flex-direction:column;
    align-items:stretch;
    background:var(--bg-surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:10px;
    gap:2px;
    display:none;
    z-index:20;
  }

  .top-nav.open{
    display:flex;
  }

  .top-link{
    width:100%;
  }

  .topbar{
    position:relative;
  }

  .hero-carousel{
    height:430px;
    min-height:430px;
  }


  /* Channels */
  .channel-tile{
    flex:0 0 165px;
    height:140px;
  }

  .channel-tile .tile-image{
    padding:16px;
  }


  /* Movies */
  .movie-tile{
    flex:0 0 165px;
    height:250px;
  }
}


/* =========================================================
   RESPONSIVE - PHONE
========================================================= */

@media (max-width:700px){

  .topbar{
    padding:16px 5vw;
  }

  .hero-carousel{
    height:380px;
    min-height:380px;
    border-radius:14px;
  }

  .hero-slide{
    padding:26px;
  }

  .hero-emoji{
    opacity:.2;
  }

  .hero-arrow{
    width:36px;
    height:36px;
    font-size:18px;
  }


  /* Channels */
  .channel-tile{
    flex:0 0 150px;
    height:125px;
  }

  .channel-tile .tile-image{
    padding:14px;
  }


  /* Movies */
  .movie-tile{
    flex:0 0 150px;
    height:225px;
  }


  .pricing-grid{
    grid-template-columns:1fr;
    max-width:340px;
  }

  .about-grid{
    grid-template-columns:1fr;
  }

  .about-cta{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .auth-card{
    padding:28px 22px;
  }
}