/* ==========================================================================
   Vlogi z Praktyk
   Authentic Netflix Minimalist Streaming UI (Dark & Red, Fullscreen)
   ========================================================================== */

:root {
  --bg-netflix: #141414;
  --bg-darker: #0c0c0c;
  --bg-card: #181818;
  --bg-card-hover: #242424;

  --accent-red: #e50914;
  --accent-red-hover: #b80710;
  --accent-red-glow: rgba(229, 9, 20, 0.5);

  --text-white: #ffffff;
  --text-gray: #a3a3a3;
  --text-muted: #737373;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);

  --font-netflix: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-netflix: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-netflix);
  color: var(--text-white);
  font-family: var(--font-netflix);
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-netflix);
  color: var(--text-white);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SITE-WIDE PASSWORD GATE
   ========================================================================== */
#siteGate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #141414;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-box {
  width: 100%;
  max-width: 380px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.85);
}

.gate-brand {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-brand svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.gate-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.gate-input {
  width: 100%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}

.gate-input:focus {
  border-color: var(--accent-red);
}

.gate-btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.gate-btn:hover {
  background: var(--accent-red-hover);
}

.gate-btn:active {
  transform: scale(0.99);
}

.gate-error {
  display: none;
  color: #ff4d4d;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 8px 12px;
  border-radius: 4px;
}

/* Site Content Container */
#siteContent {
  display: block;
}

/* ==========================================================================
   NETFLIX TOP NAVIGATION (Pure & Minimalist)
   ========================================================================== */
.netflix-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s ease;
}

.netflix-header.scrolled {
  background: var(--bg-netflix);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.netflix-brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent-red);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.netflix-brand svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.netflix-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.netflix-nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-netflix);
}

.netflix-nav a:hover,
.netflix-nav a.active {
  color: #ffffff;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition-netflix);
}

.yt-link-btn:hover {
  background: var(--accent-red-hover);
}

.yt-link-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   BILLBOARD (Netflix Large Hero Section)
   ========================================================================== */
.billboard {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  max-height: 800px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  overflow: hidden;
}

.billboard-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.billboard-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.65);
  transition: filter 0.5s ease;
}

.billboard-vignette {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(77deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-netflix) 100%);
}

.billboard-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.billboard-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.billboard-title {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.billboard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.billboard-meta .meta-match {
  color: #46d369;
  font-weight: 800;
}

.billboard-meta .meta-box {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 6px;
  font-size: 0.72rem;
  border-radius: 3px;
  color: #fff;
}

.billboard-synopsis {
  font-size: 1.05rem;
  color: #e5e5e5;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  max-width: 600px;
}

.billboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.btn-play-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-netflix);
}

.btn-play-hero:hover {
  background: rgba(255, 255, 255, 0.75);
}

.btn-play-hero svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-info-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-netflix);
}

.btn-info-hero:hover {
  background: rgba(109, 109, 110, 0.4);
}

.btn-info-hero svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ==========================================================================
   CONTENT CONTAINER & EPISODES ROWS
   ========================================================================== */
.content-area {
  position: relative;
  z-index: 10;
  padding: 0 4% 60px;
  margin-top: -40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.row-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.row-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e5e5;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.row-title span {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
}

.row-badge-soon {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 4-Card Episodes Grid (Widescreen 16:9 like Netflix) */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.episode-item {
  position: relative;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-netflix), box-shadow var(--transition-netflix);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.episode-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
  z-index: 20;
}

.episode-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  overflow: hidden;
}

.episode-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.episode-item:hover .episode-thumb-img {
  transform: scale(1.05);
}

.episode-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.episode-ep-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.episode-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-netflix);
}

.episode-item:hover .episode-hover-play {
  opacity: 1;
}

.play-red-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--accent-red-glow);
  transform: scale(0.9);
  transition: transform var(--transition-netflix);
}

.episode-item:hover .play-red-circle {
  transform: scale(1);
}

.play-red-circle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 3px;
}

.episode-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.episode-header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.episode-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.episode-desc {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-footer-yt {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   SEASON 2: CLEAN MINIMAL COMING SOON BANNER
   ========================================================================== */
.coming-soon-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 42px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.coming-soon-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.coming-soon-banner p {
  font-size: 0.95rem;
  color: var(--text-gray);
  max-width: 520px;
  line-height: 1.5;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 28px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  transform: translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-netflix);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .billboard-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .netflix-header {
    height: 56px;
    padding: 0 16px;
  }
  .netflix-nav {
    display: none;
  }
  .billboard {
    height: 70vh;
    padding: 0 16px;
  }
  .billboard-title {
    font-size: 1.8rem;
  }
  .episodes-grid {
    grid-template-columns: 1fr;
  }
  .content-area {
    padding: 0 16px 40px;
  }
  .btn-play-hero, .btn-info-hero {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}
