:root {
  --bg: #0b0b0c;
  --panel: #151517;
  --panel-2: #1e1e21;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --muted: #9a9aa3;
  --hot: #ff3d00;
  --hot-2: #ffb800;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* Ticker */
.ticker { display: flex; align-items: center; background: var(--hot); color: #000; font-weight: 800; font-size: 13px; overflow: hidden; }
.ticker-tag { background: #000; color: var(--hot-2); padding: 6px 12px; white-space: nowrap; z-index: 1; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner { display: inline-flex; gap: 48px; padding-left: 100%; white-space: nowrap; animation: scroll 40s linear infinite; }
.ticker-inner span { cursor: pointer; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11,11,12,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 10px; }
.logo { font-family: Anton, Impact, sans-serif; font-size: 34px; letter-spacing: 1px; line-height: 1; }
.logo span { background: linear-gradient(90deg, var(--hot), var(--hot-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.small { font-size: 24px; }
.search { flex: 1; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 10px 16px; outline: none; }
.search input:focus { border-color: var(--hot); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { background: none; border: 0; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 13px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.cats button:hover { color: var(--text); }
.cats button.active { color: #000; background: var(--hot-2); }

/* Buttons */
.btn { border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 800; white-space: nowrap; }
.btn-hot { background: linear-gradient(90deg, var(--hot), #ff6a00); color: #fff; }
.btn-hot:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.full { width: 100%; margin-top: 8px; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.chip.active { color: #000; background: var(--text); border-color: var(--text); }

/* Ads */
.ad { display: grid; place-items: center; text-align: center; color: #666; font-size: 13px; font-weight: 600; background: repeating-linear-gradient(45deg, #111 0 10px, #141416 10px 20px); border: 1px dashed #333; border-radius: var(--radius); }
.ad-leaderboard { height: 90px; max-width: 728px; margin: 16px auto; }
.ad-rect { height: 250px; }
.ad-tall { height: 600px; }
.ad-inline { height: 90px; margin-top: 16px; }
.ad-infeed { grid-column: 1 / -1; height: 120px; }
.sticky { position: sticky; top: 130px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-bottom: 48px; }

/* Hero */
.hero { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/7; cursor: pointer; margin-bottom: 24px; }
.hero .thumb { position: absolute; inset: 0; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.hero h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(26px, 4vw, 46px); line-height: 1.05; margin: 8px 0; text-transform: uppercase; }

/* Thumbs (generated art — swap for real thumbnails) */
.thumb { background: var(--g, linear-gradient(135deg, #333, #111)); display: grid; place-items: center; }
.thumb::after { content: "▶"; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; padding-left: 4px; transition: transform .15s; }
.card:hover .thumb::after, .hero:hover .thumb::after { transform: scale(1.12); background: var(--hot); }
.thumb .emoji { position: absolute; font-size: 64px; opacity: .25; transform: rotate(-12deg); }

/* Feed */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 28px; margin: 0; text-transform: uppercase; }
.sort { display: flex; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .thumb { position: relative; aspect-ratio: 16/9; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.badge { position: absolute; left: 8px; top: 8px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; }
.card-body { padding: 10px 12px 14px; }
.card h3 { font-size: 15px; line-height: 1.3; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--hot-2); letter-spacing: .5px; }
.meta { font-size: 12px; color: var(--muted); }
.load-more { display: block; margin: 24px auto 0; }
.empty { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--muted); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h3 { margin: 0 0 10px; font-size: 16px; }
.box p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.box-hot { border-color: var(--hot); background: linear-gradient(160deg, #2a0d02, var(--panel) 60%); }
.trending { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.trending li { counter-increment: t; display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; }
.trending li:first-child { border-top: 0; }
.trending li::before { content: counter(t); font-family: Anton, Impact, sans-serif; font-size: 22px; color: var(--hot); min-width: 20px; line-height: 1; }
.trending li:hover { color: var(--hot-2); }
.newsletter { display: flex; gap: 6px; }
.newsletter input, .form input, .form select { flex: 1; width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: #070708; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--hot-2); }

/* Modals */
.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: min(520px, calc(100% - 32px)); }
.modal-wide { width: min(900px, calc(100% - 32px)); padding: 0; overflow: hidden; }
.modal::backdrop { background: rgba(0,0,0,.8); }
.modal h2 { margin-top: 0; }
.close { position: absolute; top: 8px; right: 12px; background: rgba(0,0,0,.6); border: 0; color: #fff; font-size: 26px; width: 38px; height: 38px; border-radius: 50%; z-index: 2; }
.player-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.player-frame .thumb { position: absolute; inset: 0; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-meta { padding: 18px 22px 22px; }
.player-meta h2 { margin: 6px 0; font-size: 22px; }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.reactions button { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.reactions button.on { border-color: var(--hot); background: #2a0d02; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form label.check input { width: auto; flex: none; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pkg { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; }
.pkg h4 { margin: 0; }
.pkg-hot { border-color: var(--hot); }
.price { font-family: Anton, Impact, sans-serif; font-size: 26px; color: var(--hot-2); margin: 4px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--hot-2); color: #000; font-weight: 800; padding: 12px 20px; border-radius: 8px; transition: transform .25s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar .ad-tall { display: none; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .header-row .btn { margin-left: auto; padding: 8px 12px; font-size: 13px; }
  .logo { font-size: 28px; }
  .ad-leaderboard { height: 60px; }
  .hero { aspect-ratio: 4/3; }
  .packages { grid-template-columns: 1fr; }
}

/* Keep the hero play button clear of the headline */
.hero .thumb { place-items: start end; padding: 18px; }

/* Category thumbnail images */
.thumb { overflow: hidden; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb-img.flip { transform: scaleX(-1); }
.card:hover .thumb-img { transform: scale(1.05); }
.card:hover .thumb-img.flip { transform: scaleX(-1) scale(1.05); }
.thumb::after, .dur, .badge { z-index: 1; }
.thumb::after { position: relative; }
.hero .thumb-img { filter: saturate(1.1); }
