@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --red: #E8192C;
  --dark: #080808;
  --surface: #141414;
  --surface2: #1f1f1f;
  --border: #272727;
  --text: #f0f0f0;
  --muted: #777;
  --gold: #C8962A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── LOGO ── */
.logo-svg { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px; background: var(--red);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; gap: 0; }
.logo-wordmark {
  font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 700;
  letter-spacing: 1.5px; line-height: 1; text-transform: uppercase;
}
.logo-wordmark em { font-style: normal; color: var(--red); }
.logo-tagline {
  font-size: 8.5px; font-weight: 500; color: var(--muted);
  letter-spacing: 1.8px; text-transform: uppercase; margin-top: 1px;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(8,8,8,0.98), rgba(8,8,8,0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 48px; display: flex; align-items: center; gap: 36px; height: 64px;
}

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  padding: 7px 13px; border-radius: 4px; font-size: 12px; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.07); }

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

.search-wrap { position: relative; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  border-radius: 4px; padding: 7px 14px; cursor: text; transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: rgba(255,255,255,0.3); }
.search-bar svg { width: 14px; height: 14px; opacity: 0.4; flex-shrink: 0; }
.search-bar input {
  background: none; border: none; color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 13px; outline: none; width: 140px;
}
.search-bar input::placeholder { color: var(--muted); }

.btn-signin {
  background: var(--red); color: #fff; border: none; padding: 8px 20px;
  border-radius: 4px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; letter-spacing: 0.3px; transition: background 0.2s;
}
.btn-signin:hover { background: #c8111f; }

.user-menu-wrap { position: relative; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 4px; background: var(--surface2);
  border: 2px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden;
  transition: border-color 0.2s;
}
.user-avatar:hover { border-color: var(--text); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-dropdown {
  display: none; position: absolute; right: 0; top: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; min-width: 200px; z-index: 200; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: fadeIn 0.15s ease;
}
.user-dropdown.open { display: block; }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dropdown-header .name { font-weight: 600; font-size: 14px; }
.dropdown-header .email { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13px; color: var(--text);
  transition: background 0.15s; cursor: pointer; border: none;
  background: none; width: 100%; text-align: left; font-family: 'Inter', sans-serif;
}
.dropdown-item:hover { background: var(--surface2); }
.dropdown-item.danger { color: #f87171; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); }

/* ── HERO ── */
.hero { position: relative; height: 580px; overflow: hidden; background: var(--surface); }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  filter: brightness(0.45); transition: background-image 0.6s ease;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--dark) 30%, transparent 65%),
    linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 40%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px; max-width: 620px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-tag {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1.5px;
}
.hero-title {
  font-family: 'Teko', sans-serif; font-size: 66px; font-weight: 600;
  line-height: 0.95; margin-bottom: 14px; letter-spacing: -1px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap;
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.hero-meta .lang-badge {
  border: 1px solid var(--muted); padding: 1px 6px;
  border-radius: 2px; font-size: 11px; font-weight: 600;
}
.hero-desc {
  font-size: 14px; color: rgba(240,240,240,0.65); margin-bottom: 26px;
  max-width: 420px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn-play {
  background: #fff; color: #000; border: none; padding: 12px 28px;
  border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.btn-play:hover { background: rgba(255,255,255,0.85); }
.btn-play svg { width: 18px; height: 18px; }
.btn-more {
  background: rgba(109,109,110,0.7); color: #fff; border: none; padding: 12px 26px;
  border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.btn-more:hover { background: rgba(109,109,110,0.5); }
.hero-dots { position: absolute; bottom: 20px; right: 48px; display: flex; gap: 6px; z-index: 3; }

/* ── CATEGORY PILLS ── */
.cats-bar {
  padding: 20px 48px 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.cats-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: 7px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.cat-pill:hover { background: var(--surface); color: var(--text); }
.cat-pill.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── ROWS ── */
.row { padding: 32px 48px 8px; }
.row-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.row-title {
  font-family: 'Teko', sans-serif; font-size: 22px; font-weight: 500;
  color: rgba(240,240,240,0.9); display: flex; align-items: center; gap: 10px;
}
.row-title::before { content: ''; display: block; width: 3px; height: 20px; background: var(--red); border-radius: 2px; }
.see-all { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; transition: color 0.2s; }
.see-all:hover { color: var(--red); }

.cards-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.cards-scroll::-webkit-scrollbar { display: none; }

/* ── CARD ── */
.card {
  flex-shrink: 0; width: 196px; border-radius: 4px; overflow: hidden;
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
  position: relative; background: var(--surface);
}
.card:hover { transform: scale(1.07); box-shadow: 0 20px 40px rgba(0,0,0,0.7); z-index: 10; }

.card-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--surface2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-thumb img { transform: scale(1.05); }

.card-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.card:hover .card-play-overlay { opacity: 1; }
.play-circle {
  width: 44px; height: 44px; background: rgba(255,255,255,0.92);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.play-circle svg { width: 18px; height: 18px; fill: #000; margin-left: 3px; }

.card-cat-badge {
  position: absolute; top: 6px; left: 6px; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* Like button on card */
.card-like-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.6); border: none; border-radius: 4px;
  color: var(--text); cursor: pointer; padding: 4px 7px;
  font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}
.card:hover .card-like-btn { opacity: 1; }
.card-like-btn.liked { color: #ff4d6d; background: rgba(0,0,0,0.75); opacity: 1; }
.card-like-btn:hover { background: rgba(0,0,0,0.85); }

.card-body { padding: 10px 10px 12px; }
.card-title {
  font-family: 'Teko', sans-serif; font-size: 16px; font-weight: 500; line-height: 1.2;
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sub { font-size: 11px; color: var(--muted); }

/* ── TOP N CARDS ── */
.num-card { flex-shrink: 0; width: 160px; cursor: pointer; display: flex; align-items: flex-end; }
.num-big {
  font-family: 'Teko', sans-serif; font-size: 110px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.12);
  margin-right: -14px; flex-shrink: 0; z-index: 1; user-select: none;
}
.num-card-img {
  width: 110px; height: 62px; border-radius: 4px; flex-shrink: 0;
  overflow: hidden; transition: transform 0.3s; background: var(--surface2);
}
.num-card:hover .num-card-img { transform: scale(1.06); }
.num-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.87);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: 8px; width: 100%; max-width: 860px;
  border: 1px solid var(--border); overflow: hidden;
  transform: translateY(20px); transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-video { position: relative; aspect-ratio: 16/9; background: #000; }
.modal-video iframe { width: 100%; height: 100%; border: none; }

.modal-body { padding: 22px 26px 26px; }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.modal-title { font-family: 'Teko', sans-serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.modal-close {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  width: 32px; height: 32px; border-radius: 4px; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s; margin-left: 12px;
}
.modal-close:hover { background: var(--red); border-color: var(--red); }

.modal-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.modal-play-btn {
  background: #fff; color: #000; border: none; padding: 9px 22px;
  border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 7px;
}
.modal-play-btn svg { width: 16px; height: 16px; }

.modal-like-btn {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 4px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
}
.modal-like-btn:hover { border-color: var(--text); }
.modal-like-btn.liked { color: #ff4d6d; border-color: #ff4d6d; background: rgba(255,77,109,0.1); }

.modal-fav-btn {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 4px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
}
.modal-fav-btn:hover { border-color: var(--text); }
.modal-fav-btn.saved { color: var(--gold); border-color: var(--gold); background: rgba(200,150,42,0.1); }

.modal-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.modal-meta strong { color: var(--text); }
.modal-desc { font-size: 14px; color: rgba(240,240,240,0.7); line-height: 1.75; margin-bottom: 16px; }

.claim-btn {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.claim-btn:hover { background: var(--gold); color: #000; }

.verified { display: inline-flex; align-items: center; gap: 4px; background: rgba(200,150,42,0.15); color: var(--gold); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(200,150,42,0.3); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── LOADING / EMPTY ── */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--muted); gap: 12px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.empty { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  z-index: 2000; opacity: 0; transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 48px 28px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-about p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 300px; margin-top: 12px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .search-bar { padding: 7px 12px; }
  .search-bar input { width: 130px; }
  .search-bar svg { width: 18px; height: 18px; opacity: 0.7; }
  .hero { height: 420px; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: 46px; }
  .hero-desc { display: none; }
  .row { padding: 24px 20px 8px; }
  .cats-bar { padding: 16px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 36px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Series episode-count badge on cards */
.card-ep-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(196,30,58,0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Verified artist badge */
.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; background: var(--gold); color: #000;
  border-radius: 50%; font-size: 10px; font-weight: 900; vertical-align: middle;
}
.verified-label {
  font-size: 11px; color: var(--gold); font-weight: 700; margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}
.user-avatar.verified { border-color: var(--gold); }
.artist-card-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; background: var(--gold); color: #000;
  border-radius: 50%; font-size: 10px; font-weight: 900; margin-left: 4px;
  vertical-align: middle;
}
.artist-name-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--gold); color: #000;
  border-radius: 50%; font-size: 13px; font-weight: 900; margin-left: 8px;
  vertical-align: middle;
}

/* Real like count display on cards (read-only) */
.card-like-count {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.65); border-radius: 4px;
  color: #fff; padding: 3px 7px; font-size: 11px; font-weight: 600;
}

/* Logo image in nav */
.nav-logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 900px) { .nav-logo-img { height: 34px; } }