/* BREMO.TV — cinematic dark theme */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #09090b;
  --ink: #fafafa;
  --dim: #a1a1aa;
  --gold: #d4af37;
  --crimson: #dc2626;
  --glass: rgba(9, 9, 11, 0.55);
  --line: rgba(250, 250, 250, 0.08);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.5; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
kbd {
  font-family: inherit; font-size: 0.72em; padding: 2px 6px; border-radius: 5px;
  background: rgba(250, 250, 250, 0.1); border: 1px solid var(--line);
}

/* chrome */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px; padding: 16px 28px;
  background: linear-gradient(to bottom, rgba(9,9,11,0.9), transparent);
  transition: opacity 0.6s;
}
.chrome.hidden-chrome { opacity: 0; pointer-events: none; }
.brand { font-weight: 900; font-size: 1.3rem; letter-spacing: 2px; }
.brand span { color: var(--gold); }
.chrome-meta { flex: 1; min-width: 0; }
.chrome-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome-creator { color: var(--gold); font-size: 0.85rem; }
.chrome-creator:hover { text-decoration: underline; }
.chrome-credit { font-size: 0.85rem; color: var(--dim); }
.chrome-credit .sep { opacity: 0.5; margin: 0 2px; }
.search-btn {
  margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--line); color: var(--dim);
  padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.search-btn:hover { color: var(--ink); border-color: rgba(212, 175, 55, 0.5); }

/* hero */
.hero { position: relative; height: 82vh; display: flex; align-items: flex-end; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--backdrop) center/cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* cover a 16:9 stream over the hero regardless of viewport shape */
  width: max(100vw, calc(82vh * 1.7778));
  height: max(82vh, calc(100vw * 0.5625));
  border: 0;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, rgba(9,9,11,0.45) 55%, rgba(9,9,11,0.25)),
              linear-gradient(to right, rgba(9,9,11,0.8), transparent 60%);
}
.hero-body { position: relative; padding: 0 48px 64px; max-width: 720px; }
.hero-kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 10px;
}
.hero-body h1 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.hero-body p { color: var(--dim); margin-bottom: 22px; }
.btn-play {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-weight: 800; padding: 13px 34px; border-radius: 8px; font-size: 1.05rem;
  transition: transform 0.15s, background 0.15s;
}
.btn-play:hover { transform: scale(1.04); background: var(--gold); }

/* rows */
main { position: relative; z-index: 2; }
.home main { margin-top: -40px; }
.row { padding: 18px 0 6px; }
.row h2 { font-size: 1.15rem; font-weight: 800; padding: 0 48px 10px; letter-spacing: 0.2px; }
.strip-wrap { position: relative; }
.strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 48px 18px;
  scrollbar-width: none;  /* no snapping: it fights the infinite-loop wrap */
}
.strip::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 300px; position: relative;
  border-radius: 10px; overflow: hidden; background: #18181b;
  transition: transform 0.25s, box-shadow 0.25s; will-change: transform;
}
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-info {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(9,9,11,0.92), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.6); z-index: 3; }
.card:hover .card-info { opacity: 1; }
.card-title { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.card-sub { color: var(--gold); font-size: 0.75rem; }
.nudge {
  position: absolute; top: 0; bottom: 18px; width: 44px; z-index: 4;
  border: none; cursor: pointer; color: var(--ink); font-size: 2rem;
  background: linear-gradient(to right, rgba(9,9,11,0.85), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.nudge.next { right: 0; background: linear-gradient(to left, rgba(9,9,11,0.85), transparent); }
.nudge.prev { left: 0; }
.strip-wrap:hover .nudge { opacity: 1; }

/* watch page */
.ambient { position: fixed; inset: 0; z-index: 0; }
.ambient::before {
  content: ''; position: absolute; inset: -80px;
  background: var(--backdrop) center/cover no-repeat;
  filter: blur(80px) brightness(0.45) saturate(1.4);
}
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(9,9,11,0.85));
  animation: pulse 9s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.85; } to { opacity: 1; } }
.stage {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 76px 4vw 8px; gap: 14px;
}
.frame {
  width: 100%; max-width: 1520px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 0 1px var(--line);
  background: #000;
}
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.under {
  max-width: 1520px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 0.85rem;
}
.under-tags { color: var(--gold); letter-spacing: 0.4px; }
.under-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.under-link:hover { color: var(--ink); }
.related { position: relative; z-index: 2; padding: 26px 0 40px; }
.fadeable { transition: opacity 0.6s; }
.faded { opacity: 0 !important; pointer-events: none; }

/* creator / director profile page */
.profile { position: relative; z-index: 2; padding: 124px 48px 10px; max-width: 1100px; }
.profile h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.05; margin-bottom: 6px; }
.realname { color: var(--dim); font-size: 1rem; margin-bottom: 6px; }
.factbar {
  display: flex; flex-wrap: wrap; gap: 0 26px; margin: 18px 0 26px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 4px 0; }
.fact-label {
  display: block; color: var(--gold); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700;
}
.fact-value { font-size: 0.95rem; font-weight: 600; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; }
.profile-bio p { color: #d4d4d8; font-size: 1.06rem; margin-bottom: 14px; max-width: 62ch; }
.profile-side > div { margin-bottom: 24px; }
.side-title {
  color: var(--gold); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1.6px; font-weight: 700; margin-bottom: 8px;
}
.profile-side ul { list-style: none; }
.profile-side li {
  color: #d4d4d8; font-size: 0.9rem; padding: 5px 0 5px 14px;
  position: relative; border-bottom: 1px solid var(--line);
}
.profile-side li::before { content: '—'; position: absolute; left: 0; color: var(--gold); opacity: 0.6; }
.style-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.style-tag {
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.12); color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.wall-head { position: relative; z-index: 2; padding: 26px 48px 4px; }
.wall-head h2 { font-size: 1.2rem; font-weight: 800; }
.wall-head .count { color: var(--dim); font-weight: 600; font-size: 0.9rem; }
.selected { position: relative; z-index: 2; padding: 6px 48px 20px; max-width: 1100px; }
.selected .side-title { margin-bottom: 10px; }
.selected ol { list-style: none; }
.selected li {
  display: flex; gap: 14px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid var(--line); color: #d4d4d8; font-size: 0.94rem;
}
.selected .yr { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 700; flex: none; min-width: 3.4em; }
.selected .art { font-weight: 700; }
.selected .off { color: var(--dim); font-size: 0.8rem; margin-left: auto; flex: none; }
.wall {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; padding: 10px 48px 60px;
}
.wall .card { flex: none; }

/* search modal */
.search-modal[hidden] { display: none; }
.search-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(9,9,11,0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 0;
}
.search-panel { width: 100%; max-width: 640px; }
#search-input {
  width: 100%; padding: 18px 22px; font-size: 1.15rem; color: var(--ink);
  background: #18181b; border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px; outline: none;
}
.search-results { margin-top: 10px; max-height: 55vh; overflow-y: auto; border-radius: 14px; }
.search-hit {
  display: flex; gap: 14px; align-items: center; padding: 10px 12px;
  background: rgba(24, 24, 27, 0.92); border-bottom: 1px solid var(--line);
}
.search-hit:hover, .search-hit.active { background: rgba(212, 175, 55, 0.12); }
.search-hit img { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.search-hit-title { font-weight: 700; font-size: 0.92rem; }
.search-hit-sub { color: var(--dim); font-size: 0.78rem; }

/* footer */
.foot { padding: 40px 48px 60px; color: var(--dim); font-size: 0.85rem; border-top: 1px solid var(--line); margin-top: 30px; }
.foot-sub { margin-top: 6px; font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 860px) {
  .profile-body { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .hero-body, .row h2, .profile, .wall-head, .selected, .wall, .foot { padding-left: 20px; padding-right: 20px; }
  .strip { padding-left: 20px; padding-right: 20px; }
  .card { flex-basis: 220px; }
  .stage { padding-top: 66px; }
  .hint { display: none; }
}
