:root {
  --bg: #0b0b0f;
  --bg-elev: #14141b;
  --bg-card: #1a1a22;
  --red: #e50914;
  --red-hot: #f40612;
  --text: #f5f5f5;
  --muted: #a3a3b2;
  --line: #2a2a35;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

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

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.95), rgba(11, 11, 15, 0.7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.45rem;
}

.brand-net { color: var(--red); }
.brand-bob { color: #fff; }
.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-tip,
.btn-submit-nav,
.btn-primary,
.btn-ghost,
.btn-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-tip,
.btn-stripe,
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}

.btn-tip:hover,
.btn-stripe:hover,
.btn-primary:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
}

.btn-submit-nav,
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-submit-nav:hover,
.btn-ghost:hover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(229, 9, 20, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(80, 40, 120, 0.25), transparent 50%),
    linear-gradient(180deg, #1a0508 0%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect fill='%23111118' width='40' height='40'/%3E%3Crect fill='%2316161e' x='40' y='40' width='40' height='40'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 48px 48px;
  opacity: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.55) 55%, rgba(11, 11, 15, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-kicker {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.hero h1 .net { color: var(--red); }
.hero h1 .slash { color: #555; font-weight: 400; }
.hero h1 .flix { color: #fff; }

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.categories {
  padding: 0.5rem clamp(1rem, 4vw, 3rem) 0;
  position: sticky;
  top: 58px;
  z-index: 40;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.96), rgba(11, 11, 15, 0.85));
  backdrop-filter: blur(8px);
}

.tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.75rem 0 1rem;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  color: #fff;
  border-color: #555;
}

.tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
}

.gallery {
  padding: 1.25rem clamp(1rem, 4vw, 3rem) 3rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: var(--shadow);
}

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

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card:hover .thumb-wrap img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.2s ease;
}

.card:hover .play-btn { transform: scale(1.05); }

.card-body {
  padding: 0.9rem 0.95rem 1.05rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(229, 9, 20, 0.18);
  color: #ff7b84;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.45rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.card-author {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}

.tip-section {
  padding: 0 clamp(1rem, 4vw, 3rem) 3.5rem;
}

.tip-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(229, 9, 20, 0.22), transparent 40%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.tip-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.tip-card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.btn-stripe {
  min-width: 200px;
  margin: 0 auto 0.7rem;
}

.tip-note {
  font-size: 0.8rem !important;
  opacity: 0.75;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 3rem) 2.5rem;
  background: #08080c;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-brand { color: var(--red); }

.footer p { color: var(--muted); margin-top: 0.25rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
}

.footer-links a {
  color: #ddd;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red);
  border-color: rgba(229, 9, 20, 0.5);
}

.footer-copy {
  color: #555;
  font-size: 0.8rem;
}

.modal[hidden],
.toast[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: pop 0.22s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-meta {
  padding: 1rem 1.1rem 0.4rem;
}

.modal-meta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.modal-meta p { color: var(--muted); font-size: 0.9rem; }

.embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 120;
  background: #222;
  border: 1px solid var(--line);
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .btn-submit-nav { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card-title { font-size: 0.9rem; }
  .card-body { padding: 0.7rem; }
}

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