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

:root {
  --bg: #151520;
  --bg-card: #1c1c2e;
  --bg-hover: #252540;
  --turquoise: #1ebda5;
  --yellow: #ffe046;
  --orange: #e26a00;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --border: #2a2a40;
  --radius: 12px;
}

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

a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header img { height: 32px; }
.header .greeting {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.header .greeting strong { color: var(--turquoise); }

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--turquoise); }
.hero p { color: var(--text-muted); font-size: 1.05rem; }

/* Sections */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.section {
  margin-bottom: 2.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.section-icon.replays { background: var(--turquoise); color: #fff; }
.section-icon.shorts { background: var(--orange); color: #fff; }
.section-icon.presentations { background: var(--yellow); color: var(--bg); }
.section-icon.photos { background: #6366f1; color: #fff; }

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.card:hover {
  border-color: var(--turquoise);
  transform: translateY(-2px);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d0d18;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 48px; height: 48px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

.card-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-body { padding: 1rem; }
.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card-body .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-body .speaker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--turquoise);
  margin-top: 0.5rem;
}

/* Presentation dual CTA */
.card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--turquoise); color: #fff; }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }

/* Photos card — wider */
.card-photos {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}
.card-photos .card-thumb {
  width: 200px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  flex-shrink: 0;
}
.card-photos .card-body { padding: 0; }
.card-photos .count {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
}

/* Video Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  width: 90vw;
  max-width: 1100px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Video Player */
.player-wrapper { position: relative; background: #000; }
.player-wrapper video { width: 100%; display: block; cursor: pointer; }

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.player-wrapper:hover .player-controls { opacity: 1; }

.player-controls button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  display: flex;
}
.player-controls button:hover { color: var(--turquoise); }

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-bar:hover { height: 6px; }
.progress-fill {
  height: 100%;
  background: var(--turquoise);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.time-display {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.speed-selector {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
}
.speed-selector option { background: var(--bg); }

.modal-info {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.modal-info h3 { font-size: 1.1rem; font-weight: 700; }
.modal-info .subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* Empty section */
.empty-section {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-photos { flex-direction: column; }
  .card-photos .card-thumb { width: 100%; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
}
