:root {
  --bg: #070b14;
  --bg-soft: #0d1322;
  --surface: rgba(18, 25, 40, 0.76);
  --surface-solid: #131a2b;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #aab6cc;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #f472b6 100%);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --text: #0b1220;
  --muted: #5b6577;
  --accent: #0891b2;
  --accent-2: #4f46e5;
  --accent-3: #db2777;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.10);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.13), transparent 35%),
    radial-gradient(circle at 85% 12%, rgba(129, 140, 248, 0.15), transparent 32%),
    radial-gradient(circle at 75% 85%, rgba(244, 114, 182, 0.08), transparent 30%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  border-radius: 12px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.25);
}

.accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav-link.active {
  color: #111;
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
}

.sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: block;
}

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -170px;
  right: -120px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.12;
  filter: blur(70px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-overline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--text);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-preview {
  position: relative;
}

.tv-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--surface-solid);
}

.tv-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  animation: pulse 1.8s infinite;
}

.play-btn {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.8rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.65);
}

.tv-frame .media-caption {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 16px;
  right: 16px;
  color: #fff;
}

.tv-frame .media-caption h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 32px;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-sub {
  color: var(--muted);
  margin-top: 8px;
  max-width: 620px;
}

.center-btn {
  text-align: center;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #111;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.16);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--gradient);
  color: #111;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.22);
}

.search-box {
  position: relative;
  max-width: 440px;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-box .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.media-card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--shadow-lg);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-solid);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-card:hover .media-thumb img {
  transform: scale(1.06);
}

.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.media-card:hover .media-overlay,
.media-overlay:focus-within {
  opacity: 1;
}

.media-overlay .play-btn {
  position: static;
  transform: none;
  width: 54px;
  height: 54px;
  font-size: 1.4rem;
}

.media-overlay .play-btn:hover {
  transform: scale(1.1);
}

.download-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.25s, border-color 0.25s;
}

.download-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-badge-small {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
}

.media-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.media-cat {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.3;
}

.media-desc {
  color: var(--muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.category-card {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  color: var(--text);
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.category-card .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--accent);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.playlist-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.playlist-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.playlist-info h3 {
  font-size: 0.95rem;
  font-family: var(--font-head);
}

.playlist-info p {
  color: var(--muted);
  font-size: 0.78rem;
}

.cta-banner {
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #0b1220;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.cta-banner p {
  max-width: 520px;
}

.cta-banner .btn {
  background: #0b1220;
  color: #fff;
}

.cta-banner .btn:hover {
  background: #111c33;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-text {
  color: var(--muted);
  margin-top: 8px;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav h4,
.footer-social h4 {
  margin-bottom: 8px;
  font-family: var(--font-head);
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social .social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.25s;
}

.social-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.back-to-top:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.player-modal.open {
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(8px);
}

.player-box {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 5vh auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.player-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #111;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

.player-screen {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.player-screen video,
.player-screen audio {
  width: 100%;
  height: 100%;
}

.player-info {
  padding: 14px 4px 4px;
}

.player-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.player-info p {
  color: var(--muted);
  font-size: 0.85rem;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.queue-panel {
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: background 0.25s;
}

.queue-item:hover,
.queue-item.active {
  background: rgba(34, 211, 238, 0.1);
}

.queue-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

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

.queue-info h4 {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-info span {
  font-size: 0.72rem;
  color: var(--muted);
}

.queue-remove {
  color: var(--danger);
  font-weight: 700;
  padding: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.page-hero {
  padding: clamp(48px, 8vw, 90px) 0 32px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--muted);
  margin-top: 8px;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.post-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-bottom: 24px;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.post-content {
  font-size: 1rem;
}

.post-content p {
  margin-bottom: 18px;
  line-height: 1.85;
  color: var(--muted);
}

.post-content h2 {
  font-family: var(--font-head);
  margin: 28px 0 12px;
  font-size: 1.5rem;
  color: var(--text);
}

.post-quote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.post-tag {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post-share a {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color 0.25s, transform 0.25s;
}

.post-share a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hamburger {
    display: grid;
  }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    display: none;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 6px;
  }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: min(100% - 28px, var(--container));
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    width: 100%;
  }
  .player-box {
    margin: 3vh auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* AI floating chat */
.ai-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9100;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--gradient);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ai-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.35);
}

.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ai-chat-panel {
  position: relative;
  width: min(660px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.ai-chat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ai-chat-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.ai-chat-body > * {
  max-width: 100%;
}

@media (max-width: 560px) {
  .ai-chat-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .ai-chat-panel {
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }
}