/* ke1th.streams - Netflix-inspired streaming UI */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --surface: #232323;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e5e5;
  --text-bright: #ffffff;
  --text-muted: #808080;
  --brand: #e50914;
  --brand-hover: #f40612;
  --accent: #46d369;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --radius: 6px;
  --radius-lg: 12px;
  --poster-w: 180px;
  --landscape-w: 380px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch;
}

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

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.hidden { display: none !important; }

/* ─── Topbar ─── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.topbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  max-width: 1920px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
  flex-shrink: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

.brand-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
  margin-left: 2px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

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

.nav-link.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

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

.action-btn {
  background: none;
  border: none;
  color: var(--text-bright);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 120px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 40%);
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, transparent 50%, rgba(10, 10, 10, 0.4) 100%);
  z-index: 2;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 560px;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

#heroTitle {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-bright);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-meta .rating {
  color: var(--accent);
  font-weight: 700;
}

.hero-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-meta .tag {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-overview {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-play {
  background: var(--text-bright);
  color: #000;
}

.btn-play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.02);
}

.btn-info {
  background: rgba(109, 109, 110, 0.6);
  color: var(--text-bright);
  backdrop-filter: blur(8px);
}

.btn-info:hover {
  background: rgba(109, 109, 110, 0.45);
}

/* ─── Search ─── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  padding-top: 80px;
}

.search-container {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--font);
}

.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color var(--transition);
}

.search-close:hover {
  color: var(--text-bright);
}

.search-results {
  margin-top: 16px;
  max-height: 65vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.search-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-item-poster {
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Rows ─── */
.rows-section {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding-bottom: 60px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1920px;
  margin: 0 auto;
}

.row {
  padding: 0 48px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.row-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.row-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}

.row-tab {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.row-tab:hover {
  color: var(--text);
}

.row-tab.active {
  background: var(--brand);
  color: var(--text-bright);
}

.row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
  flex-shrink: 0;
}

.row:hover .row-arrow {
  opacity: 1;
}

.row-arrow:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.2);
}

.row-arrow:disabled {
  opacity: 0 !important;
  cursor: default;
}

/* ─── Card Rail ─── */
.rail-container {
  position: relative;
  margin: 0 -48px;
  padding: 0 48px;
}

.card-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.card-rail::-webkit-scrollbar { display: none; }

/* ─── Cards ─── */
.card {
  flex: 0 0 var(--poster-w);
  width: var(--poster-w);
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
  font-family: inherit;
}

.card:hover {
  transform: scale(1.05);
  z-index: 5;
}

.card-landscape {
  flex: 0 0 var(--landscape-w);
  width: var(--landscape-w);
}

.card-img-wrap {
  position: relative;
}

.card-poster .card-image {
  aspect-ratio: 2/3;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.card-landscape .card-image {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.card-rank {
  position: absolute;
  left: -8px;
  bottom: 0;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--bg);
  -webkit-text-stroke: 3px var(--text-muted);
  text-stroke: 3px var(--text-muted);
  pointer-events: none;
  z-index: -1;
}

.card-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

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

.card-overlay-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info {
  padding: 8px 4px 0;
}

.card-info-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.card-info-meta {
  display: block;
  font-size: 0.75rem;
  color: #b3b3b3;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ─── Loading ─── */
.row-loading {
  opacity: 0.5;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg-card) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Genre Picker ─── */
.genre-picker {
  position: relative;
}

.genre-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.genre-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.genre-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.genre-picker.open .genre-chevron {
  transform: rotate(180deg);
  color: var(--text-bright);
}

.genre-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px;
}

.genre-menu::-webkit-scrollbar { width: 6px; }
.genre-menu::-webkit-scrollbar-track { background: transparent; }
.genre-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.genre-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.genre-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

.genre-option.active {
  color: var(--brand);
  font-weight: 700;
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  contain: layout style paint;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  contain: layout style paint;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--transition);
  z-index: 510;
  pointer-events: auto;
}

.modal-close:hover {
  color: var(--text-bright);
  background: rgba(0, 0, 0, 0.9);
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  contain: layout style paint;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
  pointer-events: auto;
  contain: layout style paint;
}

/* ─── Server Selector ─── */
.server-selector {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 510;
  backdrop-filter: blur(8px);
}

.server-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.server-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.server-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.server-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-bright);
}

/* Fullscreen overrides */
.modal:-webkit-full-screen,
.modal:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #000;
}

.modal:-webkit-full-screen .modal-content,
.modal:fullscreen .modal-content {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.modal:-webkit-full-screen .video-container,
.modal:fullscreen .video-container {
  width: 100vw;
  height: 100vh;
}

.modal:-webkit-full-screen .modal-close,
.modal:fullscreen .modal-close {
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Mobile Dock ─── */
.mobile-dock {
  display: none;
}

/* ─── Footer ─── */
.site-footer {
  padding: 40px 48px 24px;
  max-width: 1920px;
  margin: 0 auto;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 500px;
}

/* ─── Category Modal ─── */
.cat-opt-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-opt-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.cat-opt-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-bright);
}

/* ─── Disclaimer Modal ─── */
.disclaimer-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.disclaimer-modal.hidden {
  display: none;
}

.disclaimer-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.disclaimer-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: disclaimer-in 0.3s ease;
}

@keyframes disclaimer-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(229, 9, 20, 0.05);
}

.disclaimer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
  flex-shrink: 0;
}

.disclaimer-play {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 3px;
}

.disclaimer-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.disclaimer-body {
  padding: 20px 24px;
}

.disclaimer-notice {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.disclaimer-recommend {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.disclaimer-recommend strong {
  color: var(--text);
}

.disclaimer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclaimer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.option-icon.brave-icon {
  color: #fb542b;
}

.option-icon.ios-icon {
  color: #a2aaad;
}

.option-info {
  flex: 1;
  min-width: 0;
}

.option-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.option-desc a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.option-desc a:hover {
  text-decoration: underline;
}

.disclaimer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.disclaimer-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.disclaimer-btn {
  padding: 10px 28px;
  background: var(--brand);
  color: var(--text-bright);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.disclaimer-btn:hover {
  background: var(--brand-hover);
  transform: scale(1.02);
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  :root {
    --poster-w: 160px;
    --landscape-w: 340px;
  }
}

@media (max-width: 980px) {
  :root {
    --poster-w: 150px;
    --landscape-w: 300px;
  }

  .topbar-inner {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 75vh;
    padding: 0 24px 100px;
  }

  .hero-content {
    max-width: 480px;
  }

  #heroTitle {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .hero-overview {
    -webkit-line-clamp: 2;
  }

  .rows-section {
    margin-top: -60px;
  }

  .row {
    padding: 0 24px;
  }

  .rail-container {
    margin: 0 -24px;
    padding: 0 24px;
  }

  .site-footer {
    padding: 32px 24px 100px;
  }

  .card-overlay {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: auto;
  }

  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all var(--transition);
  }

  .dock-btn.dock-active {
    color: var(--text-bright);
    background: rgba(229, 9, 20, 0.2);
  }

  .dock-btn span {
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 640px) {
  :root {
    --poster-w: 130px;
    --landscape-w: 260px;
  }

  .topbar-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero {
    min-height: 65vh;
    padding: 0 16px 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-overview {
    display: none;
  }

  .hero-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .rows-section {
    margin-top: -40px;
  }

  .row {
    padding: 0 16px;
  }

  .rail-container {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .row-title {
    font-size: 1.15rem;
  }

  .row-arrow {
    display: none;
  }

  .site-footer {
    padding: 24px 16px 90px;
  }

  .modal-content {
    width: 100vw;
    border-radius: 0;
  }

  .modal-close {
    top: -40px;
    right: 4px;
  }
}

@media (max-width: 400px) {
  :root {
    --poster-w: 115px;
    --landscape-w: 220px;
  }
}
