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

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --card: #1f1f1f;
  --accent: #e50914;
  --accent2: #ff6b35;
  --text: #f0f0f0;
  --muted: #888;
  --radius: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  backdrop-filter: blur(2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
}

.logo span {
  color: var(--text);
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 480px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-content p {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

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

#hero-btn:hover {
  background: #c0000f;
  transform: scale(1.03);
}

/* ── MAIN GRID ── */
main {
  padding: calc(100px + 0.5cm) 48px 60px;
  min-height: calc(100vh - 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  justify-content: center;
}

/* ── CARD ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #2a2a2a;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border-color: var(--accent);
}

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

.card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.card-thumb .thumb-icon {
  display: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .play-overlay {
  opacity: 1;
}

.play-overlay span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(229,9,20,0.6);
}

.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── PLAYER OVERLAY ── */
.player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.player-overlay.open {
  display: flex;
}

.player-box {
  position: relative;
  width: min(92vw, 1000px);
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.player-box video {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

.player-info {
  padding: 14px 20px;
}

.player-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* ── EMPTY STATE ── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty p {
  font-size: 1rem;
  line-height: 1.8;
}

.empty code {
  background: #222;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent2);
  font-size: 0.9rem;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #222;
}

/* ── RESPONSIVE TABLETTE ── */
@media (max-width: 1024px) {
  header { padding: 14px 24px; }
  main { padding: calc(90px + 0.5cm) 24px 50px; max-width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 640px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo { font-size: 1.2rem; }
  .logo-img { height: 36px; }

  nav { gap: 16px; }
  nav a { font-size: 0.85rem; }

  main {
    padding: calc(80px + 0.5cm) 16px 40px;
    min-height: auto;
  }

  .section-title { font-size: 1.1rem; }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-title { font-size: 0.9rem; }

  .player-box { border-radius: 8px; }
  .player-box video { max-height: 55vh; }
  .player-info h3 { font-size: 0.95rem; }
}