:root {
  --bg: #0b0b0f;
  --bg-elevated: #14141c;
  --surface: #1c1c26;
  --text: #ffffff;
  --muted: #b3b3c2;
  --accent: #e50914;
  --accent-soft: #ff4d6d;
  --accent-glow: rgba(229, 9, 20, 0.45);
  --gold: #f5c451;
  --border: rgba(255, 255, 255, 0.08);
  --nav-height: 68px;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button, input, textarea, select {
  font: inherit;
}

.netflix-shell {
  min-height: 100vh;
  background: var(--bg);
}

.netflix-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4%;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.netflix-nav.is-scrolled {
  background: rgba(11, 11, 15, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.brand-logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-apk:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 40px) 4% 80px;
  overflow: hidden;
}

.hero-backdrop,
.hero-backdrop-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.hero-backdrop-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.35), transparent 35%),
    linear-gradient(180deg, #241018 0%, #0b0b0f 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(77deg, rgba(11, 11, 15, 0.95) 28%, rgba(11, 11, 15, 0.45) 58%, rgba(11, 11, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 11, 15, 0.15) 0%, rgba(11, 11, 15, 0.92) 88%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.18);
  color: #ffb4be;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 22px;
  color: #ddd;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover { transform: scale(1.03); }

.btn-play {
  background: #fff;
  color: #111;
}

.btn-info,
.btn-secondary {
  background: rgba(109, 109, 122, 0.7);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.content {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding: 0 0 60px;
}

.row {
  margin-bottom: 34px;
  padding: 0 4%;
}

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

.row-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.row-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.row-slider-wrap {
  position: relative;
}

.row-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.row-slider::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 100%;
  border: none;
  background: rgba(11, 11, 15, 0.72);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.row-slider-wrap:hover .row-arrow { opacity: 1; }

.row-arrow-left { left: 0; }
.row-arrow-right { right: 0; }

.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(180px, 18vw, 260px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.25s ease, z-index 0s;
}

.card:hover {
  transform: scale(1.08);
  z-index: 4;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  font-size: 1.8rem;
}

.card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.chip {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chip-premium {
  background: rgba(229, 9, 20, 0.22);
  color: #ffb4be;
}

.page-shell {
  padding: calc(var(--nav-height) + 28px) 4% 60px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101018;
  color: #fff;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.notice.success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.notice.error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.watch-page {
  min-height: 100vh;
  background: #000;
}

.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4%;
}

.watch-title {
  margin: 0 0 8px;
  padding: 0 4%;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.watch-creator {
  margin: 0 0 18px;
  padding: 0 4%;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.player-shell {
  width: min(1200px, 92%);
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-frame:fullscreen,
.player-frame:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
}

.player-launcher {
  position: relative;
  width: 100%;
  height: 100%;
}

.player-launcher img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 4rem;
  cursor: pointer;
}

.ad-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  z-index: 80;
}

.ad-overlay.is-visible { display: flex; }

.ad-panel {
  width: min(900px, calc(100% - 24px));
  height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #111;
}

.ad-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 70;
}

.detail-modal.is-open { display: flex; }

.detail-card {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  background: #18181f;
  box-shadow: var(--shadow);
}

.detail-banner {
  position: relative;
  aspect-ratio: 16 / 6;
  background-size: cover;
  background-position: center;
}

.detail-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #18181f);
}

.detail-body {
  padding: 24px;
}

.detail-body h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.detail-body p {
  color: var(--muted);
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.empty-state {
  padding: 28px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 30px 4% 50px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-apk-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-apk-link:hover {
  color: var(--accent);
}

.app-shell .app-content {
  padding-top: calc(var(--nav-height) + 8px);
  min-height: calc(100vh - var(--nav-height));
}

.video-feed {
  padding: 0 0 40px;
}

.feed-section-head {
  padding: 18px 16px 8px;
}

.feed-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.feed-section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.feed-item {
  border-bottom: 1px solid var(--border);
}

.feed-item-link {
  display: block;
  padding: 12px 16px 16px;
  color: inherit;
}

.feed-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-lock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.feed-meta {
  padding-top: 10px;
}

.feed-meta h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-empty {
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

.browse-feed {
  display: none;
}

.app-shell .player-shell {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  margin: 0 0 20px;
}

.app-shell .watch-title,
.app-shell .watch-topbar {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .browse-rows { display: none; }
  .browse-feed { display: block; }
  .browse-feed .video-feed {
    margin-top: -24px;
  }

  .player-shell {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin: 0 0 24px;
  }

  .watch-title,
  .watch-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .hero { min-height: 68vh; padding-bottom: 56px; }
  .hero-actions .btn { width: 100%; }
  .row { padding: 0 16px; }
  .app-shell .app-content,
  .app-shell .row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-app-icon {
    width: 112px;
    height: 112px;
  }
}

.landing-shell {
  background: var(--bg);
}

.landing-minimal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.18), transparent 42%),
    var(--bg);
}

.landing-minimal-inner {
  width: min(100%, 360px);
  text-align: center;
}

.landing-minimal-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(229, 9, 20, 0.35);
}

.landing-minimal-brand {
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-minimal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.45);
}

.landing-minimal-cta:hover {
  color: #fff;
  background: #ff1a25;
}

.landing-page {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 36px) 4% 60px;
  overflow: hidden;
}

.landing-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.28) 0%, rgba(229, 9, 20, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.landing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-icon-wrap {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(229, 9, 20, 0.35);
}

.landing-app-icon {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  object-fit: cover;
  background: #e50914;
}

.landing-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  color: #ffb4be;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-page h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.landing-lead {
  margin: 0 auto 24px;
  max-width: 560px;
  color: #ddd;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
}

.landing-download {
  min-width: min(100%, 320px);
  min-height: 52px;
  font-size: 1rem;
}

.landing-note {
  margin: 14px 0 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.install-steps {
  margin: 0 0 34px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: left;
}

.install-steps h2 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  text-align: center;
}

.install-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.install-steps li {
  display: grid;
  gap: 4px;
  padding-left: 42px;
  position: relative;
}

.install-steps li::before {
  counter-increment: install-step;
  content: counter(install-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.install-steps ol {
  counter-reset: install-step;
}

.install-steps li strong {
  font-size: 0.98rem;
}

.install-steps li span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.install-steps code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84em;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  text-align: left;
}

.landing-features article {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.landing-features h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.landing-features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.landing-download-secondary {
  min-width: min(100%, 280px);
}

@media (max-width: 760px) {
  .landing-features {
    grid-template-columns: 1fr;
  }
}
