/* Viki-like prototype styles */
:root {
  --bg: #071021;
  --card: #0b1722;
  --muted: #9aa0a6;
  --accent: #6b72ff;
  --accent-2: #6bc4ff;
  --glass: rgba(255,255,255,0.03);
  --container: 1100px;
  --radius: 14px;

  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #04121a 0%, #07202a 60%);
  color: #eaf1f7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  height: 52px;
}

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

.nav-item {
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all .16s;
}

.nav-item:hover {
  background: var(--glass);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 60px 0;
}

.hero-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.tagline {
  color: var(--muted);
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04121a;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.06);
  color: inherit;
  background: transparent;
}

.hero-right {
  width: 380px;
}

.mock-player {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 12px;
  padding: 14px;
}

.mock-thumb {
  height: 160px;
  background: linear-gradient(90deg, #0a2230, #05202b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.mock-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.mock-play {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #04121a;
}

.mock-meta .m-title {
  font-weight: 800;
}

.m-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.image {
  height: 160px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.feature {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  color: var(--muted);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Catalog */
.catalog-main h2 {
  font-size: 24px;
  margin: 8px 0 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.card .thumb {
  height: 140px;
  background: linear-gradient(90deg, #061722, #05202b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.card .body {
  padding: 12px;
}

.title {
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.card button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}

/* Watch */
.watch-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
  padding-top: 20px;
}

.player-panel {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
}

.embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

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

.watch-sidebar {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  height: fit-content;
}

.watch-sidebar h4 {
  margin: 0 0 8px;
}

.watchlist-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.watchlist-thumb {
  width: 84px;
  height: 56px;
  background: #032329;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.watchlist-title {
  font-weight: 700;
}

/* Search */
.search-wrap input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--glass);
  min-width: 220px;
  color: inherit;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-right {
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .watch-main {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 14px;
  }
}
