/* Clearing the Vault — site stylesheet
   Dark steampunk-vault theme. Palette tokens are the single source of truth. */

:root {
  --bg:          #16141c;
  --bg-raised:   #1e1b26;
  --bg-sunken:   #100e15;
  --line:        #2e2a3a;
  --text:        #e8e4da;
  --text-dim:    #a39c8f;
  --accent:      #f59e1b;   /* vault glow orange   */
  --accent-hot:  #ffbf47;   /* molten highlight    */
  --accent-deep: #b86a0c;
  --steel:       #8d96a5;
  --twitch:      #9146ff;
  --kick:        #53fc18;
  --youtube:     #ff3d3d;
  --radius:      10px;
  --shadow:      0 10px 30px rgba(0, 0, 0, .45);
  --glow:        0 0 24px rgba(245, 158, 27, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-hot); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #141414; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header ------------------------------------------------------------ */

.site-header {
  background: rgba(16, 14, 21, .92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 10px; padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 56px; object-fit: contain; }
.brand-text {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text);
}
.brand:hover .brand-text { color: var(--accent-hot); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--text-dim); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; font-size: .85rem;
  padding: 8px 12px; border-radius: 6px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-raised); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-hot); }

.header-platforms { display: flex; gap: 8px; }

.platform-pill {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-dim); background: var(--bg-raised);
}
.platform-pill:hover { text-decoration: none; color: #fff; }
.platform-pill.twitch:hover  { border-color: var(--twitch);  color: var(--twitch); }
.platform-pill.kick:hover    { border-color: var(--kick);    color: var(--kick); }
.platform-pill.youtube:hover { border-color: var(--youtube); color: var(--youtube); }

/* ---- Hero -------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; }

.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 20, 28, .55) 0%,
    rgba(22, 20, 28, .35) 45%,
    rgba(22, 20, 28, .96) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  padding-top: clamp(90px, 16vw, 220px);
  padding-bottom: clamp(60px, 9vw, 120px);
  max-width: 820px; text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8), var(--glow);
}

.hero-tagline {
  margin: 10px 0 0;
  color: var(--accent-hot); font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.hero-blurb {
  margin: 18px auto 0; max-width: 620px;
  color: var(--text); font-size: 1.02rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .9);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #1a1206; box-shadow: var(--glow);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffd27a, var(--accent-hot)); color: #1a1206; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(30, 27, 38, .7); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hot); }

/* ---- Sections ---------------------------------------------------------- */

.section { padding: 56px 0; }
.section-alt { background: var(--bg-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding-bottom: 8px; }

.section-title {
  margin: 0 0 22px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
}
.center .section-title::after { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-more { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }

.page-sub { color: var(--text-dim); margin: -8px 0 20px; }

.notice {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: var(--radius); color: var(--text-dim);
}

/* ---- Live tabs ---------------------------------------------------------- */

.live-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.tab-btn {
  font-family: var(--font); font-size: .9rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 22px; border-radius: var(--radius);
  background: var(--bg-raised); color: var(--text-dim);
  border: 1px solid var(--line); cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] { color: #fff; border-color: currentColor; box-shadow: inset 0 -3px 0 currentColor; }
.tab-btn.twitch[aria-selected="true"]  { color: var(--twitch); }
.tab-btn.kick[aria-selected="true"]    { color: var(--kick); }
.tab-btn.youtube[aria-selected="true"] { color: var(--youtube); }

.player-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.panel-link { margin: 10px 2px 0; font-size: .9rem; }

/* ---- Video grid --------------------------------------------------------- */

.video-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 8px;
}

.video-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; padding-bottom: 12px;
  color: var(--text); transition: transform .15s ease, border-color .15s ease;
}
.video-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); color: var(--text); }

.thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--bg-sunken); }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-wrap::after {
  content: "\25B6"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
  background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s ease;
  text-shadow: 0 0 14px rgba(245, 158, 27, .9);
}
.video-card:hover .thumb-wrap::after { opacity: 1; }

.video-title {
  font-weight: 700; font-size: .95rem; line-height: 1.35;
  padding: 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-date { color: var(--text-dim); font-size: .8rem; padding: 0 12px; }

.load-more-wrap { text-align: center; margin-top: 28px; }

/* ---- Archive controls ---------------------------------------------------- */

.archive-controls { margin-top: 6px; }

.search-input {
  width: 100%; max-width: 440px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: 1rem; font-family: var(--font);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 158, 27, .25); }
.search-input::placeholder { color: var(--text-dim); }
.search-input:disabled { opacity: .5; }

/* ---- Modal player -------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 14, .85); }
.modal-dialog { position: relative; width: min(960px, 100%); }
.modal-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: 0; color: var(--text);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.modal-close:hover { color: var(--accent-hot); }
.modal .panel-link a { color: var(--accent-hot); }

/* ---- About --------------------------------------------------------------- */

.about-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.about-text .lead { font-size: 1.2rem; color: var(--accent-hot); letter-spacing: .04em; }
.about-art img { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .6)); }

@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-art { order: -1; max-width: 280px; margin: 0 auto; }
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunken); margin-top: 40px; }
.footer-inner { padding: 32px 20px; text-align: center; }
.footer-brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin: 0 0 10px; }
.footer-links a { color: var(--text-dim); font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: var(--accent-hot); }
.footer-meta { color: var(--text-dim); font-size: .85rem; margin: 0; }

/* ---- Small screens --------------------------------------------------------- */

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .site-nav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .header-platforms { margin-left: auto; }
  .brand-text { font-size: .9rem; }
  .section { padding: 40px 0; }
}
