/* ============================================================
   STACJA SHIBUYA — style.css
   Shibuya Night Theme
   ============================================================ */

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

:root {
  /* Colors */
  --bg:          #07070f;
  --bg2:         #0c0c1a;
  --surface:     #10101f;
  --surface2:    #16162e;
  --border:      rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 0, 144, 0.28);

  --pink:        #ff0090;
  --pink-dim:    rgba(255, 0, 144, 0.12);
  --cyan:        #00f0ff;
  --cyan-dim:    rgba(0, 240, 255, 0.09);
  --purple:      #a259f7;
  --purple-dim:  rgba(162, 89, 247, 0.15);

  --text:        #eaeaf5;
  --text-dim:    rgba(234, 234, 245, 0.55);
  --text-muted:  rgba(234, 234, 245, 0.30);

  /* Glows */
  --glow-pink: 0 0 16px rgba(255, 0, 144, 0.45), 0 0 48px rgba(255, 0, 144, 0.15);
  --glow-cyan: 0 0 16px rgba(0, 240, 255, 0.45), 0 0 48px rgba(0, 240, 255, 0.12);

  /* Layout */
  --player-h:  76px;
  --max-w:     1080px;
  --radius:    14px;
  --radius-sm: 7px;

  /* Typography */
  --font:    'Space Grotesk', system-ui, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ─────────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 0, 144, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 144, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-pink {
  background: rgba(255, 0, 144, 0.10);
  top: -280px;
  right: -180px;
  animation: driftPink 18s ease-in-out infinite alternate;
}

.glow-cyan {
  background: rgba(0, 240, 255, 0.06);
  bottom: 60px;
  left: -220px;
  animation: driftCyan 22s ease-in-out infinite alternate;
}

@keyframes driftPink {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 40px); }
}

@keyframes driftCyan {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -60px); }
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-jp {
  font-family: var(--font-jp);
  font-size: 30px;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.logo-sub {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-family: var(--font-jp);
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.header-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ── Main ───────────────────────────────────────────────── */
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 0;
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  margin-bottom: 52px;
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Section ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-title-jp {
  font-size: 12px;
  font-weight: 400;
  color: var(--pink);
  opacity: 0.65;
  margin-left: 10px;
}

.show-count {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ── Shows Grid ─────────────────────────────────────────── */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ── Show Card ──────────────────────────────────────────── */
.show-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  outline-offset: 3px;
}

.show-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity 0.22s;
}

.show-card:hover,
.show-card:focus-visible {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 0, 144, 0.10);
}

.show-card:hover::after,
.show-card:focus-visible::after {
  opacity: 1;
}

.show-card.is-active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 10px 40px rgba(255, 0, 144, 0.18);
}

.show-card.is-active::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-ep {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pink);
}

.card-date {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 9px;
  color: var(--text);
}

.card-desc {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 9px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(162, 89, 247, 0.22);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.card-duration {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.card-play-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: var(--glow-pink);
}

.show-card:hover .card-play-btn,
.show-card.is-active .card-play-btn,
.show-card:focus-visible .card-play-btn {
  opacity: 1;
  transform: scale(1);
}

/* ── Player Bar ─────────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 10, 22, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-accent);
  height: var(--player-h);
}

.player-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 200px auto 1fr 120px;
  align-items: center;
  gap: 20px;
}

/* Player Info */
.player-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.player-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink-dim), var(--cyan-dim));
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cover-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--pink);
  text-shadow: var(--glow-pink);
}

.player-meta { min-width: 0; }

.player-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.player-ep {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.08em;
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.ctrl-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.ctrl-btn:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.play-btn {
  width: 42px;
  height: 42px;
  background: var(--pink) !important;
  color: #fff !important;
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  transition: transform 0.15s, box-shadow 0.15s !important;
}

.play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255, 0, 144, 0.65) !important;
}

/* Progress */
.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 34px;
  flex-shrink: 0;
}

.time-label:last-of-type { text-align: right; }

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-track:hover { height: 5px; }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 8px rgba(255, 0, 144, 0.5);
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-pink);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.progress-track:hover .progress-thumb { opacity: 1; }

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.volume-track {
  width: 76px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  pointer-events: none;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 0, 144, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 0, 144, 0.55); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .player-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 16px;
    gap: 8px 12px;
  }

  .player-progress-wrap {
    grid-column: 1 / -1;
    order: 3;
  }

  .player-volume { display: none; }

  .player-bar { height: auto; }

  body { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .shows-grid { grid-template-columns: 1fr; }
  .section-title-jp { display: none; }
  .header-tag { display: none; }
}
