/* eKino — global stylesheet */

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

:root{
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255,255,255,.10);
  --text: #eef1f6;
  --text-dim: #9aa4b5;
  --text-faint: #626b7d;
  --accent: #3d8fd6;
  --accent-2: #2f72ad;
  --red: #e6483b;
  --gold: #f5b83d;
  --danger: #ff5470;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0,0,0,.5);
  --header-top-h: 80px;
  --header-bottom-h: 46px;
}

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

html{scroll-behavior:smooth}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:'Poppins',sans-serif;
  font-weight:700;
  line-height:1.25;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- background ---------- */
.bg-glow{
  position:fixed;
  inset:0;
  z-index:-1;
  background:var(--bg);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 22px;
  border-radius:6px;
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:var(--accent);
  color:#fff;
}
.btn-primary:hover{background:var(--accent-2)}
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost:hover{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.04)}
.btn-gold{
  background:linear-gradient(135deg,var(--gold),#ff9f4d);
  color:#1a1200;
  box-shadow:0 6px 20px rgba(245,184,61,.25);
}
.btn-sm{padding:8px 16px;font-size:.85rem}
.btn-block{width:100%}

/* ---------- header (two rows) ---------- */
header.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}

.header-top{
  height:var(--header-top-h);
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border);
}
.header-top-inner{
  display:flex;
  align-items:center;
  gap:20px;
  width:100%;
}

.header-bottom{
  height:var(--header-bottom-h);
  display:flex;
  align-items:center;
}

.logo{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.logo img.logo-img{
  height:56px;
  width:auto;
}
footer .logo img.logo-img{height:44px}

nav.main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex:1;
  flex-wrap:wrap;
}
nav.main-nav a{
  padding:7px 12px;
  border-radius:6px;
  font-size:.88rem;
  font-weight:500;
  color:var(--text-dim);
  transition:color .15s ease, background .15s ease;
}
nav.main-nav a:hover{color:var(--text);background:rgba(255,255,255,.06)}
nav.main-nav a.highlight{color:var(--red);font-weight:600}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  margin-left:auto;
}

.header-search{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:6px;
  padding:6px 6px 6px 14px;
  min-width:260px;
  margin-left:auto;
}
.header-search input{
  min-width:0;
  background:transparent;
  border:0;
  outline:0;
  color:var(--text);
  font-family:inherit;
  font-size:.88rem;
  width:100%;
}
.header-search input::placeholder{color:var(--text-faint)}
.header-search svg{flex-shrink:0;color:var(--text-faint)}
.header-search-btn{
  flex-shrink:0;
  background:var(--accent);
  color:#fff;
  border:0;
  border-radius:6px;
  padding:8px 16px;
  font-family:inherit;
  font-size:.82rem;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease;
}
.header-search-btn:hover{background:var(--accent-2)}

.nav-toggle{
  display:none;
  width:40px;height:40px;
  align-items:center;justify-content:center;
  border-radius:6px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  margin-left:8px;
}

/* ---------- hero ---------- */
.hero{
  padding:96px 0 72px;
  text-align:center;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(61,143,214,.1);
  border:1px solid rgba(61,143,214,.25);
  color:var(--accent);
  font-size:.82rem;
  font-weight:600;
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(2rem,5vw,3.4rem);
  margin-bottom:16px;
  background:linear-gradient(135deg,#fff 30%,var(--accent) 90%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lead{
  color:var(--text-dim);
  font-size:1.1rem;
  max-width:560px;
  margin:0 auto 36px;
}

.search-panel{
  max-width:640px;
  margin:0 auto;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:10px;
  display:flex;
  gap:10px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.search-panel input{
  flex:1;
  min-width:0;
  background:transparent;
  border:0;
  outline:0;
  color:var(--text);
  font-family:inherit;
  font-size:1rem;
  padding:12px 16px;
}
.search-panel input::placeholder{color:var(--text-faint)}

.hero-hint{
  margin-top:22px;
  color:var(--text-faint);
  font-size:.92rem;
}

/* ---------- sections ---------- */
.section{padding:56px 0}
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:28px;
  gap:16px;
  flex-wrap:wrap;
}
.section-head h2{font-size:1.6rem}
.section-head p{color:var(--text-dim);font-size:.95rem}

/* ---------- category list ---------- */
.cat-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.cat-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.cat-row:hover{
  transform:translateY(-2px);
  border-color:rgba(61,143,214,.4);
  background:var(--bg-card-hover);
}
.cat-row-thumb{
  position:relative;
  width:96px;height:128px;
  flex-shrink:0;
  border-radius:10px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.cat-row-thumb img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
}
.cat-row-thumb::after{
  content:"";
  position:absolute;inset:0;
  z-index:1;
  background:linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.6));
}
.cat-row-num{
  position:absolute;inset:0;
  z-index:2;
  display:flex;align-items:center;justify-content:center;
  font-family:'Poppins',sans-serif;
  font-weight:800;
  font-size:2.4rem;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.7);
}
.cat-row-info h3{font-size:1.05rem;margin-bottom:5px;color:var(--text)}
.cat-row-info p{font-size:.82rem;color:var(--text-faint)}

/* thumb fallback color variants (kategorie bez własnego zdjęcia) */
.c1{background:linear-gradient(135deg,#ff5470,#ff9f4d)}
.c2{background:linear-gradient(135deg,#e6483b,#3d8fd6)}
.c3{background:linear-gradient(135deg,#22c1a1,#3d8fd6)}
.c4{background:linear-gradient(135deg,#f5b83d,#ff5470)}
.c5{background:linear-gradient(135deg,#3d8fd6,#22c1a1)}
.c6{background:linear-gradient(135deg,#ff9f4d,#f5b83d)}

/* ---------- promo / premium band ---------- */
.promo{
  background:linear-gradient(135deg,rgba(230,72,59,.15),rgba(61,143,214,.1));
  border:1px solid rgba(230,72,59,.3);
  border-radius:20px;
  padding:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.promo h2{font-size:1.7rem;margin-bottom:10px}
.promo p{color:var(--text-dim);max-width:460px}

/* ---------- ranking VOD ---------- */
.vod-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.vod-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.vod-card:hover{
  transform:translateY(-2px);
  border-color:rgba(61,143,214,.4);
  background:var(--bg-card-hover);
}
.vod-rank{
  font-family:'Poppins',sans-serif;
  font-weight:800;
  font-size:1.4rem;
  color:var(--text-faint);
  width:28px;
  flex-shrink:0;
}
.vod-logo{
  width:64px;height:64px;
  flex-shrink:0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
}
.vod-logo img{width:100%;height:100%;object-fit:cover}
.vod-body{flex:1;min-width:0}
.vod-body h3{font-size:1.05rem;margin-bottom:4px}
.vod-body p{font-size:.85rem;color:var(--text-dim);margin-bottom:10px}
.vod-banner-single{
  display:block;
  width:100%;
  max-width:750px;
  margin:24px auto 0;
  border-radius:var(--radius-sm);
  overflow:hidden;
  border:1px solid var(--border);
}
.vod-banner-single img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:15/2;
  object-fit:cover;
}
@media(max-width:720px){
  .vod-grid{grid-template-columns:1fr}
  .vod-card{flex-wrap:wrap}
}

/* ---------- info cards (features) ---------- */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.feature-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
}
.feature-card .icon{
  width:44px;height:44px;
  border-radius:12px;
  background:rgba(61,143,214,.12);
  color:var(--accent);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.feature-card h3{font-size:1.05rem;margin-bottom:8px}
.feature-card p{color:var(--text-dim);font-size:.9rem}

/* ---------- SEO text block ---------- */
.seo-block{padding:16px 0 8px}
.seo-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  max-width:1000px;
  margin:0 auto;
  padding:8px;
}
.seo-collapse{
  max-height:210px;
  overflow:hidden;
  position:relative;
  padding:32px 40px 0;
  transition:max-height .35s ease;
}
.seo-collapse::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:90px;
  background:linear-gradient(to bottom, transparent, var(--bg-card));
  transition:opacity .35s ease;
}
.seo-collapse.expanded{max-height:2400px;padding-bottom:8px}
.seo-collapse.expanded::after{opacity:0}

.seo-entry + .seo-entry{margin-top:32px}
.seo-entry h2{
  font-size:1.05rem;
  color:var(--text);
  border-left:3px solid var(--accent);
  padding-left:12px;
  margin-bottom:12px;
}
.seo-entry p{
  color:var(--text-faint);
  font-size:.86rem;
  line-height:1.9;
  max-width:75ch;
}

.seo-toggle-wrap{
  display:flex;
  justify-content:center;
  padding:20px 0 28px;
}
.seo-toggle{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text-dim);
  border-radius:6px;
  padding:8px 20px;
  font-size:.82rem;
  font-weight:600;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.seo-toggle:hover{border-color:rgba(255,255,255,.25);color:var(--text)}

/* ---------- simple content pages ---------- */
.page-hero{
  padding:64px 0 40px;
  text-align:center;
}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.6rem);margin-bottom:12px}
.page-hero p{color:var(--text-dim)}

.content-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:40px;
  max-width:960px;
  margin:0 auto 64px;
}
.content-card h2{font-size:1.25rem;margin:28px 0 12px}
.content-card h2:first-child{margin-top:0}
.content-card p{color:var(--text-dim);margin-bottom:12px;font-size:.96rem}
.content-card ul{margin:0 0 12px 0}
.content-card li{
  color:var(--text-dim);
  font-size:.96rem;
  padding-left:20px;
  position:relative;
  margin-bottom:8px;
}
.content-card li::before{
  content:"";
  position:absolute;left:0;top:.6em;
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);
}
.content-card strong{color:var(--text)}

.empty-state{
  max-width:520px;
  margin:0 auto;
  text-align:center;
  background:var(--bg-card);
  border:1px dashed var(--border);
  border-radius:var(--radius);
  padding:56px 32px;
}
.empty-state .icon{
  width:64px;height:64px;
  margin:0 auto 20px;
  border-radius:16px;
  background:rgba(61,143,214,.12);
  color:var(--accent);
  display:flex;align-items:center;justify-content:center;
}
.empty-state h2{font-size:1.3rem;margin-bottom:10px}
.empty-state p{color:var(--text-dim);font-size:.95rem}

/* ---------- blog: archive grid + post cards ---------- */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.post-card{
  display:flex;
  flex-direction:column;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .18s ease, border-color .18s ease;
}
.post-card:hover{transform:translateY(-3px);border-color:rgba(61,143,214,.4)}
.post-thumb{
  height:140px;
  background:linear-gradient(135deg,var(--accent),var(--red));
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.85);
  overflow:hidden;
}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.post-hero-img{
  width:100%;
  height:auto;
  border-radius:var(--radius);
  margin-bottom:24px;
  display:block;
}
.post-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.post-tag{
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--accent);
}
.post-body h3{font-size:1.05rem}
.post-excerpt{color:var(--text-dim);font-size:.88rem;flex:1}
.post-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
  font-size:.78rem;
  color:var(--text-faint);
}
.post-meta a{color:var(--accent);font-weight:600}

/* ---------- blog: single post ---------- */
.post-single-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
  font-size:.85rem;
  color:var(--text-faint);
}
.post-single-meta .post-tag{margin:0}
.back-link{
  display:inline-block;
  margin-bottom:20px;
  color:var(--accent);
  font-size:.9rem;
  font-weight:600;
}

/* ---------- premiere calendar ---------- */
.premiere-date{
  font-size:1rem;
  font-weight:700;
  color:var(--text);
  background:var(--bg-elevated);
  border-left:3px solid var(--accent);
  padding:9px 14px;
  border-radius:6px;
  margin:28px 0 10px;
}
.premiere-date:first-child{margin-top:0}
.premiere-list{display:flex;flex-direction:column}
.premiere-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 6px;
  border-bottom:1px solid var(--border);
  flex-wrap:wrap;
}
.premiere-item:last-child{border-bottom:0}
.premiere-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.premiere-title{font-weight:600;color:var(--text);font-size:.92rem}
.premiere-orig{color:var(--text-faint);font-size:.78rem;font-style:italic}
.premiere-meta{display:flex;align-items:center;gap:10px;flex-shrink:0}
.premiere-year{color:var(--text-faint);font-size:.8rem}
.premiere-stat{color:var(--text-dim);font-size:.8rem;white-space:nowrap}
.tag-wznowienie{
  background:rgba(245,184,61,.15);
  color:var(--gold);
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  padding:3px 8px;
  border-radius:999px;
  white-space:nowrap;
}

/* ---------- footer ---------- */
footer.site-footer{
  border-top:1px solid var(--border);
  padding:56px 0 28px;
  margin-top:40px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  margin-bottom:36px;
}
.footer-brand p{color:var(--text-dim);font-size:.9rem;margin-top:14px;max-width:320px}
.footer-col h4{font-size:.9rem;color:var(--text);margin-bottom:14px}
.footer-col a{
  display:block;
  color:var(--text-dim);
  font-size:.9rem;
  padding:6px 0;
  transition:color .15s ease;
}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{
  border-top:1px solid var(--border);
  padding-top:22px;
  display:flex;
  justify-content:center;
  text-align:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:.82rem;
  color:var(--text-faint);
}
.footer-bottom a{color:var(--text-faint)}
.footer-bottom a:hover{color:var(--text-dim)}

/* ---------- cookie banner ---------- */
.cookie-banner{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:200;
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  box-shadow:0 -10px 30px rgba(0,0,0,.4);
  flex-wrap:wrap;
  transform:translateY(100%);
  opacity:0;
  transition:transform .35s ease, opacity .35s ease;
}
.cookie-banner.show{transform:translateY(0);opacity:1}
.cookie-banner p{margin:0;font-size:.88rem;color:var(--text-dim);text-align:center}
.cookie-banner p a{color:var(--accent);font-weight:700;text-decoration:underline}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .header-bottom{height:0;border:0;overflow:visible}
  nav.main-nav{
    position:fixed;
    top:var(--header-top-h);
    left:0;right:0;
    background:rgba(0,0,0,.98);
    backdrop-filter:blur(14px);
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-bottom:1px solid var(--border);
    gap:2px;
    transform:translateY(-130%);
    opacity:0;
    transition:transform .25s ease, opacity .25s ease;
  }
  nav.main-nav.open{transform:translateY(0);opacity:1}
  nav.main-nav a{padding:12px 14px}
  .header-search{display:none}
  .nav-toggle{display:flex}
  .header-actions .btn{display:none}
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:28px}
}

@media (max-width:700px){
  .cat-list{grid-template-columns:1fr}
}

@media (max-width:560px){
  .cat-row-thumb{width:72px;height:96px}
  .cat-row-num{font-size:1.8rem}
  .post-grid{grid-template-columns:1fr}
  .promo{flex-direction:column;text-align:center}
  .promo p{margin:0 auto}
  .content-card{padding:26px}
  .cookie-banner{flex-direction:column;align-items:stretch;text-align:center}
}

@media (max-width:480px){
  .container{padding:0 28px}
  .seo-collapse{padding-left:20px;padding-right:20px}
  .cat-row{padding:12px}
}
