/* ==========================================================================
   Oddwine Simwok - Theme & Stylesheet
   Color Scheme: Emerald Neon Green (#00ff88 / #10b981) & Electric Purple (#a855f7 / #9333ea)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Cinzel:wght@600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors: Purple & Green Core Palette */
  --bg-deep: #07030d;
  --bg-main: #0c0717;
  --bg-surface: #140c26;
  --bg-surface-elevated: #1d1236;
  --bg-surface-hover: #261845;
  
  --purple-glow: rgba(168, 85, 247, 0.45);
  --purple-border: rgba(168, 85, 247, 0.3);
  --purple-primary: #a855f7;
  --purple-dark: #7928ca;
  --purple-light: #c084fc;
  
  --green-glow: rgba(0, 255, 136, 0.45);
  --green-border: rgba(0, 255, 136, 0.35);
  --green-primary: #00ff88;
  --green-dark: #059669;
  --green-light: #6ee7b7;

  /* Text colors */
  --text-main: #f3f0fa;
  --text-muted: #a69bb8;
  --text-dim: #746788;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #00ff88 100%);
  --grad-surface: linear-gradient(180deg, rgba(29, 18, 54, 0.8) 0%, rgba(12, 7, 23, 0.95) 100%);
  --grad-card: linear-gradient(145deg, rgba(24, 13, 44, 0.9) 0%, rgba(11, 6, 21, 0.95) 100%);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-purple: 0 0 25px rgba(168, 85, 247, 0.25);
  --shadow-green: 0 0 25px rgba(0, 255, 136, 0.25);
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --container-max: 1240px;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 255, 136, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(121, 40, 202, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #fff;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-green {
  color: var(--green-primary);
}

.text-purple {
  color: var(--purple-primary);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 7, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--purple-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.nav-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green-primary);
  box-shadow: 0 0 14px var(--green-glow);
  object-fit: cover;
  transition: var(--transition);
}

.nav-brand:hover .nav-logo-img {
  transform: rotate(10deg) scale(1.08);
  border-color: var(--purple-primary);
  box-shadow: 0 0 20px var(--purple-glow);
}

.nav-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 40%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px var(--green-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(0, 255, 136, 0.25));
  border: 1px solid var(--green-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--green-primary);
  color: #07030d;
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */
.hero-section {
  padding: 30px 0 50px;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--purple-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.25);
  background: #000;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.05) brightness(0.92);
  transition: transform 0.8s ease;
}

.hero-banner-card:hover .hero-banner-img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 7, 23, 0.15) 0%,
    rgba(12, 7, 23, 0.55) 55%,
    rgba(7, 3, 13, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 44px;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-badge {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 22px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page Header for Subpages */
.page-hero {
  padding: 40px 0 20px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--grad-primary);
  color: #07030d;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 255, 136, 0.55);
}

.btn-outline {
  background: rgba(29, 18, 54, 0.7);
  border: 1px solid var(--purple-border);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-primary);
  box-shadow: 0 0 16px var(--purple-glow);
  transform: translateY(-2px);
}

.btn-green-outline {
  background: rgba(20, 12, 38, 0.7);
  border: 1px solid var(--green-border);
  color: var(--green-primary);
}

.btn-green-outline:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--green-primary);
  box-shadow: 0 0 18px var(--green-glow);
  transform: translateY(-2px);
}

.btn-view-all {
  margin-top: 10px;
  display: inline-flex;
  font-weight: 700;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 50px 0;
  position: relative;
}

.section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 6px;
}

.section-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: 0 0 8px var(--green-primary);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 600px;
}

/* ==========================================================================
   Video Grid & Cards
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--grad-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 24px var(--green-glow);
  transform: translateY(-4px);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 3, 13, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-card:hover .video-play-overlay {
  background: rgba(7, 3, 13, 0.15);
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(12, 7, 23, 0.85);
  border: 2px solid var(--green-primary);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--green-glow);
  transition: var(--transition);
  padding-left: 4px;
}

.video-card:hover .video-play-btn {
  transform: scale(1.15);
  background: var(--green-primary);
  color: #07030d;
  box-shadow: 0 0 25px var(--green-primary);
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.video-category {
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.video-date {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.video-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.video-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.video-btn-play {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.video-btn-play:hover {
  background: var(--green-primary);
  color: #07030d;
}

.video-btn-yt {
  color: var(--purple-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.video-btn-yt:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Video Modal & Error 153 Fallback Controls
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 3, 13, 0.96);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #0c0717;
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--purple-glow);
}

.video-modal-header {
  padding: 12px 20px;
  background: rgba(20, 12, 38, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--purple-border);
}

.video-modal-title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 14px;
}

.video-modal-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.video-modal-close {
  background: none;
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-modal-close:hover {
  background: var(--green-primary);
  color: #07030d;
}

.video-modal-player-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}

.video-modal-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  padding: 14px 20px;
  background: rgba(14, 8, 25, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.local-file-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 600px;
}

.local-file-notice strong {
  color: var(--green-primary);
}

/* ==========================================================================
   Blog Section (.txt Parsing, Companion Images, Newest First)
   ========================================================================== */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.blog-card {
  background: var(--grad-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
}

.blog-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 136, 0.18);
}

.blog-companion-img-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
  background: #000;
  border-bottom: 1px solid var(--purple-border);
}

.blog-companion-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.blog-companion-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(12, 7, 23, 0.85);
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.blog-content-body {
  padding: 30px 32px;
}

.blog-headline-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.blog-meta-tag {
  color: var(--purple-light);
  font-weight: 600;
}

.blog-paragraphs {
  color: #e4ddf0;
  font-size: 1.02rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-video-card-inline {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--purple-border);
  background: #000;
}

/* ==========================================================================
   Gallery Section & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--purple-border);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--green-glow);
  transform: translateY(-4px) scale(1.02);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 7, 23, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-overlay-badge {
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 3, 13, 0.95);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--purple-border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 30px var(--purple-glow);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-counter {
  color: var(--green-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--green-primary);
  padding: 2px 10px;
  border-radius: 50px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 12, 38, 0.8);
  border: 1px solid var(--purple-primary);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3010;
}

.lightbox-btn:hover {
  background: var(--purple-primary);
  box-shadow: 0 0 20px var(--purple-glow);
}

.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(20, 12, 38, 0.8);
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3010;
}

.lightbox-close:hover {
  background: var(--green-primary);
  color: #07030d;
  box-shadow: 0 0 20px var(--green-glow);
}

/* ==========================================================================
   Games Section
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--grad-card);
  border: 2px solid var(--green-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.15);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.game-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 35px var(--green-glow);
  transform: translateY(-4px);
}

.game-card-header {
  height: 180px;
  background: linear-gradient(135deg, #1f0b3d 0%, #063821 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--green-border);
}

.game-icon-large {
  font-size: 4.5rem;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(0, 255, 136, 0.6));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 7, 23, 0.85);
  border: 1px solid var(--purple-primary);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.game-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #fff;
}

.game-subtitle {
  color: var(--green-primary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.game-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.game-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Game Play Modal */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 3, 13, 0.98);
  display: none;
  flex-direction: column;
}

.game-modal.active {
  display: flex;
}

.game-modal-header {
  height: 60px;
  background: rgba(20, 12, 38, 0.95);
  border-bottom: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.game-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-modal-iframe-wrap {
  flex-grow: 1;
  width: 100%;
  height: calc(100vh - 60px);
  background: #0c1017;
}

.game-modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Music Player (Moved RIGHT TO THE BOTTOM)
   ========================================================================== */
.bottom-music-section {
  padding: 30px 0 10px;
}

.bottom-music-card {
  background: linear-gradient(135deg, rgba(29, 18, 54, 0.9) 0%, rgba(12, 7, 23, 0.95) 100%);
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--purple-glow);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.bottom-music-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--green-glow);
}

.bottom-music-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.audio-icon-pulse {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: 1.4rem;
  box-shadow: 0 0 16px var(--green-glow);
}

.bottom-music-title {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.bottom-music-sub {
  font-size: 0.88rem;
  color: var(--green-primary);
  font-weight: 600;
}

.bottom-music-player {
  flex-grow: 1;
  max-width: 480px;
}

.bottom-music-player audio {
  width: 100%;
  height: 42px;
  outline: none;
  filter: hue-rotate(90deg) invert(0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 50px;
  background: #06020a;
  border-top: 1px solid var(--purple-border);
  padding: 40px 0 25px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--purple-primary);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--green-primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-overlay { padding: 24px 20px; }
  .blog-content-body { padding: 22px 20px; }
  .bottom-music-card { padding: 20px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: rgba(12, 7, 23, 0.98);
    border-bottom: 1px solid var(--purple-border);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }
  
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }

  .bottom-music-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .bottom-music-player {
    width: 100%;
    max-width: 100%;
  }
}
