/* ============================================================
   Portfolio — Frutiger Aero / Wii Channel Style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

html {
  /* Gradient on html = browser paints it as the viewport canvas, naturally fixed with no scroll repaint */
  background: linear-gradient(180deg,
    #0b5899 0%,
    #1674c0 10%,
    #2c9adc 26%,
    #52b8ee 46%,
    #84cef5 63%,
    #b4e2fa 78%,
    #d6f0fe 90%,
    #e8f8ff 100%
  );
  min-height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  color: #1a3a5c;
  background: transparent;
  cursor: var(--cursor);
}

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

/* Custom cursor — single rule using a CSS variable, no specificity conflicts */
:root {
  --cursor: url('../images/cursor.png') 17 0, auto;
}

*, *:hover, *:focus, *:active,
a, button, input, label, select, textarea, [role="button"] {
  cursor: var(--cursor) !important;
}

/* ============================================================
   BACKGROUND — clouds, light haze, bokeh
   ============================================================ */

/* Soft cloud shapes */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 420px 190px at 82%  6%, rgba(255,255,255,0.42) 0%, transparent 65%),
    radial-gradient(ellipse 320px 150px at  9% 14%, rgba(255,255,255,0.34) 0%, transparent 65%),
    radial-gradient(ellipse 270px 120px at 54% 22%, rgba(255,255,255,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 180px  80px at 30% 36%, rgba(255,255,255,0.18) 0%, transparent 65%),
    /* sun glow top-right */
    radial-gradient(circle 220px at 97% 4%,  rgba(255,248,200,0.28) 0%, transparent 70%),
    /* bottom haze */
    radial-gradient(ellipse 900px 280px at 50% 106%, rgba(255,255,255,0.22) 0%, transparent 60%);
}

/* Scattered bokeh light orbs */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 58px at  7% 58%, rgba(255,255,255,0.14) 0%, transparent 70%),
    radial-gradient(circle 40px at 94% 44%, rgba(255,255,255,0.11) 0%, transparent 70%),
    radial-gradient(circle 78px at 50% 88%, rgba(255,255,255,0.10) 0%, transparent 70%),
    radial-gradient(circle 48px at 22% 93%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(circle 32px at 68% 74%, rgba(200,235,255,0.13) 0%, transparent 70%);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ============================================================
   GLASS TILE — shared base
   ============================================================ */

.tile {
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(185, 225, 255, 0.65) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  border-radius: 26px;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.80),
    inset 0 -1px 1px rgba(80, 160, 220, 0.12),
    0 8px 36px rgba(6, 60, 140, 0.20),
    0 2px 8px  rgba(6, 60, 140, 0.10),
    0 1px 0    rgba(255, 255, 255, 0.55);
  overflow: hidden;
  position: relative;
}

/* Oval gloss highlight — Frutiger Aero glass shine
   No mix-blend-mode: avoids per-frame compositing overhead */
.tile::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 7%;
  width: 86%;
  height: 52%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.70) 0%,
    rgba(255, 255, 255, 0.38) 38%,
    rgba(255, 255, 255, 0.05) 72%,
    rgba(255, 255, 255, 0.00) 100%
  );
  border-radius: 50% 50% 40% 40% / 80% 80% 20% 20%;
  pointer-events: none;
  z-index: 4;
}

/* ============================================================
   ABOUT BANNER
   ============================================================ */

.about-banner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 48px;
  margin-bottom: 28px;
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(175, 220, 255, 0.52) 100%
  );
}

.about-photo-placeholder,
img.about-photo {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.32),
    0 0 0 9px rgba(100, 180, 230, 0.15),
    0 6px 24px rgba(6, 70, 150, 0.28),
    inset 0 2px 4px rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  object-fit: cover;
}

.about-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.about-text h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0c4585;
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.85),
    0 1px 1px rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.about-text p {
  font-size: 1.0rem;
  font-weight: 600;
  color: #1a5890;
  line-height: 1.68;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}

/* ============================================================
   CHANNEL GRID
   6-column track: tiles are span-2, last two center in row 2
   ============================================================ */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.channel-tile { grid-column: span 2; }

/* Center the bottom two tiles */
.channel-tile:nth-child(4) { grid-column: 2 / span 2; }
.channel-tile:nth-child(5) { grid-column: 4 / span 2; }

/* ============================================================
   CHANNEL TILE
   ============================================================ */

.channel-tile {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform  0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.channel-tile {
  will-change: transform;
}

.channel-tile:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.85),
    0 18px 52px rgba(6, 60, 140, 0.32),
    0 4px 16px  rgba(6, 60, 140, 0.18),
    0 0 0 2px   rgba(255, 255, 255, 0.65);
}

.channel-tile:active {
  transform: translateY(-3px) scale(1.01);
  transition-duration: 0.08s;
}

/* --- Channel preview area --- */
.channel-preview-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Channel video previews */
.channel-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Per-channel gradient colors */
.channel-games   .channel-preview-placeholder { background: linear-gradient(148deg, #8070d8 0%, #5448cc 45%, #9282ea 100%); }
.channel-art     .channel-preview-placeholder { background: linear-gradient(148deg, #f0a4c4 0%, #de6a9e 45%, #ca4888 100%); }
.channel-music   .channel-preview-placeholder { background: linear-gradient(148deg, #48d0e8 0%, #1eb4cc 45%, #1492b0 100%); }
.channel-contact .channel-preview-placeholder { background: linear-gradient(148deg, #62b4ee 0%, #3094dc 45%, #1474c0 100%); }
.channel-support   .channel-preview-placeholder { background: linear-gradient(148deg, #f09478 0%, #de6240 45%, #c44428 100%); }
.channel-projects  .channel-preview-placeholder { background: linear-gradient(148deg, #f0c060 0%, #e09020 45%, #c07010 100%); }
.channel-consoles  .channel-preview-placeholder { background: linear-gradient(148deg, #a0d8a0 0%, #4db84d 45%, #2a8a2a 100%); }

/* Inset shadow to give the preview a "screen" feel */
.channel-preview-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0  4px 14px rgba(0, 0, 0, 0.22),
    inset 0 -2px  8px rgba(0, 0, 0, 0.10);
  pointer-events: none;
}

/* Wii-style orb icon inside the preview */
.channel-icon-bubble {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  /* Solid-ish white base so the orb reads against any channel colour */
  background:
    radial-gradient(circle at 36% 30%,
      rgba(255, 255, 255, 1.00) 0%,
      rgba(255, 255, 255, 0.82) 28%,
      rgba(255, 255, 255, 0.40) 58%,
      rgba(255, 255, 255, 0.12) 80%,
      rgba(255, 255, 255, 0.00) 100%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  z-index: 2;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.30),
    0 1px 4px  rgba(0, 0, 0, 0.16),
    inset 0 2px 6px rgba(255, 255, 255, 0.80),
    0 0 36px  rgba(255, 255, 255, 0.40);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}

.channel-tile:hover .channel-icon-bubble {
  transform: scale(1.12);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.34),
    0 2px 6px  rgba(0, 0, 0, 0.18),
    inset 0 2px 6px rgba(255, 255, 255, 0.85),
    0 0 56px  rgba(255, 255, 255, 0.55);
}

/* --- Info bar (bottom of channel tile) --- */
.channel-info {
  padding: 14px 20px 18px;
  background: rgba(255, 255, 255, 0.30);
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  position: relative;
  z-index: 2;
  flex: 1;
}

.channel-info h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0c4280;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.channel-info p {
  font-size: 0.84rem;
  font-weight: 600;
  color: #2c64a0;
  line-height: 1.52;
}

/* ============================================================
   CHANNEL PAGE LAYOUT (games.html, art.html, etc.)
   ============================================================ */

.channel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 32px;
  margin-bottom: 28px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1458a0;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(6, 60, 140, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: background 0.15s, transform 0.15s;
  position: relative;
  z-index: 2;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.90);
  transform: translateX(-4px);
}

.channel-header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: #0c4585;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
}

.channel-content {
  padding: 32px 36px;
}

/* Content grid for items inside channel pages */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.content-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(6, 60, 140, 0.30),
    0 0 0 2px rgba(255, 255, 255, 0.65);
}

.content-card img,
.content-card .card-preview-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #b4dcf0 0%, #d4ecfc 100%);
}

.content-card .card-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.content-card .card-info {
  padding: 12px 16px 16px;
  position: relative;
  z-index: 2;
}

.content-card .card-info h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0c4280;
  margin-bottom: 3px;
}

.content-card .card-info p {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2c64a0;
  line-height: 1.5;
}

/* ============================================================
   MUSIC PAGE — Player + Track Grid
   ============================================================ */

/* --- Player tile --- */
.music-player {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  margin-bottom: 22px;
}

/* Album art box */
.player-art {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 6px 24px rgba(6, 60, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

.player-art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  background: linear-gradient(145deg, #7c6fd4, #5448cc);
  transition: background 0.4s ease;
}

/* Info + controls column */
.player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.player-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0c4585;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.80);
  line-height: 1.2;
}

.player-desc {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3070b0;
  margin-top: -10px;
}

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

.player-time {
  font-size: 0.76rem;
  font-weight: 700;
  color: #3070b0;
  min-width: 34px;
}

.player-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(6, 60, 140, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.60);
  box-shadow: inset 0 1px 3px rgba(6, 60, 140, 0.14);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5ec6f2 0%, #1e8ed8 100%);
  box-shadow: 0 0 8px rgba(30, 142, 216, 0.50);
  transition: width 0.25s linear;
  position: relative;
}

/* Gloss on progress fill */
.player-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0 0 50% 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
}

/* Playback controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  color: #1060a8;
  cursor: pointer;
  box-shadow:
    0 3px 12px rgba(6, 60, 140, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease,
              background 0.15s;
}

.player-btn:hover {
  transform: translateY(-3px) scale(1.08);
  background: rgba(255, 255, 255, 0.80);
  box-shadow:
    0 6px 18px rgba(6, 60, 140, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Play/pause is bigger */
.player-play-btn {
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
  background: linear-gradient(180deg, #5ec6f2 0%, #1e8ed8 60%, #1270be 100%);
  border-color: rgba(100, 200, 255, 0.60);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  box-shadow:
    0 4px 16px rgba(14, 96, 200, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.player-play-btn:hover {
  background: linear-gradient(180deg, #72d0f8 0%, #2898e0 60%, #1880cc 100%);
}

/* --- Streaming links row --- */
.player-stream-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}




.stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.90);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(6,60,140,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s, opacity 0.15s;
  opacity: 0.9;
}

.stream-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 5px 16px rgba(6,60,140,0.20), inset 0 1px 0 rgba(255,255,255,0.8);
  opacity: 1;
}

.stream-btn-icon {
  width: 80px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   ART PAGE
   ============================================================ */

/* DeviantArt link button in header */
.da-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 16px;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.90);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a3a5c;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(6,60,140,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s;
}
.da-link-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 16px rgba(6,60,140,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}
.da-link-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ---- Featured Carousel ---- */
.featured-section {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-window {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  height: 420px;
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  box-shadow: 0 4px 24px rgba(6, 60, 140, 0.15), inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 18px;
  background: linear-gradient(to top, rgba(10, 30, 70, 0.65), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  color: #1a3a5c;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(6, 60, 140, 0.15);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

.carousel-arrow:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(100, 160, 220, 0.6);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #3a8fe8;
  border-color: #3a8fe8;
  transform: scale(1.25);
}

/* Section tile */
.art-section {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.art-section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a3a5c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Gallery grid — z-index 5 keeps it above the tile::before gloss overlay */
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 5;
}

/* Each image item */
.art-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(6,60,140,0.12);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
}
.art-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(6,60,140,0.20);
}
.art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title overlay — slides up on hover */
.art-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}
.art-item:hover .art-item-title {
  transform: translateY(0);
}

/* ---- Lightbox ---- */
#art-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#art-lightbox.active {
  display: flex;
}
#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 50, 0.85);
  backdrop-filter: blur(10px);
}
#lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  object-fit: contain;
}
#lightbox-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
#lightbox-close,
#lightbox-prev,
#lightbox-next {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255,255,255,0.32);
  transform: scale(1.1);
}
#lightbox-close { top: 20px; right: 20px; font-size: 1rem; }
#lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); font-size: 2rem; }
#lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
#lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
#lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* Responsive */
@media (max-width: 760px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .art-section { padding: 18px; }
}
@media (max-width: 480px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* --- Player art image (real cover) --- */
.player-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 0;
}

/* --- Album meta above track title --- */
.player-album-name {
  font-size: 0.80rem;
  font-weight: 700;
  color: #3070b0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* --- Volume control --- */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.volume-icon-btn {
  font-size: 1rem;
  width: 36px;
  height: 36px;
}

.volume-slider {
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
}

.volume-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(6, 60, 140, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.60);
  box-shadow: inset 0 1px 3px rgba(6, 60, 140, 0.14);
}

.volume-fill {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5ec6f2 0%, #1e8ed8 100%);
  box-shadow: 0 0 6px rgba(30, 142, 216, 0.40);
  pointer-events: none;
}

.volume-thumb {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #72d0f8 0%, #1e8ed8 100%);
  border: 2px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 2px 8px rgba(14, 96, 200, 0.40), 0 0 0 1px rgba(94,198,242,0.30);
  transition: transform 0.10s, box-shadow 0.10s;
}

.volume-thumb:hover,
.volume-slider.dragging .volume-thumb {
  transform: translate(50%, -50%) scale(1.25);
  box-shadow: 0 3px 12px rgba(14, 96, 200, 0.55), 0 0 0 2px rgba(94,198,242,0.45);
}

/* --- Album Grid --- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.album-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform  0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease;
  overflow: hidden;
}

.album-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.85),
    0 14px 40px rgba(6, 60, 140, 0.28),
    0 0 0 2px rgba(255, 255, 255, 0.65);
}

.album-card.active {
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.85),
    0 8px 28px rgba(14, 96, 200, 0.32),
    0 0 0 2.5px rgba(94, 198, 242, 0.70);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.album-info {
  padding: 10px 14px 12px;
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 2;
}

.album-info h3 {
  font-size: 0.90rem;
  font-weight: 800;
  color: #0c4280;
  text-shadow: 0 1px 2px rgba(255,255,255,0.80);
  margin-bottom: 2px;
}

.album-info p {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3070b0;
}

/* --- Track List Panel --- */
.track-list-panel {
  display: none;
  padding: 20px 24px;
  margin-bottom: 22px;
}

.track-list-panel.visible {
  display: block;
}

.track-list-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.tracklist-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(6, 60, 140, 0.22);
  flex-shrink: 0;
}

.tracklist-album-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0c4280;
  text-shadow: 0 1px 2px rgba(255,255,255,0.80);
}

.tracklist-album-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3070b0;
  margin-top: 2px;
}

/* Track rows */
.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(4px);
}

.track-row.active {
  background: rgba(94, 198, 242, 0.22);
  box-shadow: 0 0 0 1.5px rgba(94, 198, 242, 0.50);
}

.track-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8ab0d0;
  min-width: 20px;
  text-align: right;
}

.track-row-indicator {
  font-size: 0.65rem;
  color: #1878c8;
  opacity: 0;
  transition: opacity 0.15s;
  min-width: 12px;
}

.track-row.active .track-row-indicator {
  opacity: 1;
}

.track-row:hover .track-row-indicator {
  opacity: 0.5;
}

.track-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0c4280;
  text-shadow: 0 1px 2px rgba(255,255,255,0.70);
}

/* ============================================================
   CONTACT & SUPPORT
   ============================================================ */

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 700;
  color: #0c4280;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(80, 160, 230, 0.50);
  background: rgba(255, 255, 255, 0.74);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #0c4280;
  outline: none;
  box-shadow: inset 0 1px 4px rgba(6, 60, 140, 0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38a0e0;
  box-shadow: 0 0 0 3px rgba(56, 160, 224, 0.22),
              inset 0 1px 4px rgba(6, 60, 140, 0.08);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Glossy aqua button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  background: linear-gradient(180deg, #5ec6f2 0%, #1e8ed8 58%, #1270be 100%);
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(14, 96, 200, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -2px 4px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

/* Gloss on button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 8%;
  width: 84%;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50% 50% 30% 30% / 80% 80% 20% 20%;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 26px rgba(14, 96, 200, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -2px 4px rgba(0, 0, 0, 0.14);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.support-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0c4280;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(6, 60, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.support-link-btn:hover {
  background: rgba(255, 255, 255, 0.90);
  transform: translateY(-3px);
  box-shadow:
    0 10px 26px rgba(6, 60, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* ============================================================
   WII BAR — fixed bottom strip
   ============================================================ */

/* Extra bottom padding so the channel grid doesn't hide behind the bar */
.page-wrapper {
  padding-bottom: 100px;
}

.wii-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 100;
  /* Promote to own GPU layer — prevents video repaints behind it from
     triggering a re-composite of the bar every frame */
  transform: translateZ(0);

  /* Fully opaque so no blending with moving content behind it */
  background: linear-gradient(
    180deg,
    #ddeeff 0%,
    #c5dff8 100%
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.88);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 -4px 24px rgba(6, 60, 140, 0.14);

  display: flex;
  align-items: center;
  padding: 0 24px;
}

/* Thin gloss line along the very top edge */
.wii-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.85) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.wii-bar-section {
  display: flex;
  align-items: center;
}

.wii-bar-left   { flex: 0 0 auto; justify-content: flex-start; gap: 10px; }
.wii-bar-center { flex: 1 1 0; justify-content: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.wii-bar-right  { flex: 0 0 auto; justify-content: flex-end; gap: 8px; }

/* Start menu button */
.start-menu-container {
  position: relative;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(6, 60, 140, 0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a3a5c;
  font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}
.start-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(6, 60, 140, 0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}
.start-btn-icon {
  font-size: 1rem;
}

/* Start menu popup */
.start-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: linear-gradient(158deg, #e8f4ff 0%, #cce4fa 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow:
    0 -8px 32px rgba(6, 60, 140, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 8px;
  min-width: 190px;
  display: none;
  z-index: 2000;
}
.start-menu.open {
  display: block;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  text-decoration: none;
  color: #1a3a5c;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.12s;
}
.start-menu-item:hover {
  background: rgba(255, 255, 255, 0.55);
}
.start-menu-item.active {
  background: rgba(30, 130, 230, 0.18);
  border: 1.5px solid rgba(30, 130, 230, 0.35);
  color: #0a5aaa;
}
.start-menu-icon {
  font-size: 1.1rem;
  width: 26px;
  text-align: center;
}

/* --- Clock --- */
.wii-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.wii-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0c4585;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.80);
  letter-spacing: 0.02em;
}

.wii-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3070b0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.70);
  letter-spacing: 0.03em;
}

/* --- Social icon buttons --- */
.wii-bar-social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.wii-bar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(6, 60, 140, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease,
              background 0.15s;
}

.wii-bar-icon-btn:hover {
  transform: translateY(-4px) scale(1.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 6px 18px rgba(6, 60, 140, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* --- Music toggle button --- */
.wii-bar-music-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.42);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4a7ab0;
  cursor: pointer;
  box-shadow:
    0 2px 10px rgba(6, 60, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* Gloss on the music button */
.wii-bar-music-btn::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 10%;
  width: 80%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50% 50% 30% 30% / 80% 80% 20% 20%;
  pointer-events: none;
}

.music-btn-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.22s;
}

/* Active (music ON) state */
.wii-bar-music-btn.music-on {
  background: linear-gradient(180deg, #5ec6f2 0%, #1e8ed8 60%, #1270be 100%);
  border-color: rgba(100, 200, 255, 0.70);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  box-shadow:
    0 4px 16px rgba(14, 96, 200, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 14px rgba(60, 160, 240, 0.35);
}

.wii-bar-music-btn.music-on .music-btn-icon {
  opacity: 1;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hide Ko-fi below 900px — too wide to fit the bar */
@media (max-width: 900px) {
  .kofi-btn {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Override the centering rules on small screens */
  .channel-tile,
  .channel-tile:nth-child(4),
  .channel-tile:nth-child(5) {
    grid-column: span 1;
  }

  .about-banner {
    padding: 26px 30px;
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .channel-content {
    padding: 22px 18px;
  }

  /* Wii bar — compact on mobile */
  .wii-bar {
    padding: 0 8px;
    height: 54px;
  }

  .wii-bar-section {
    flex: 0 0 auto;
  }

  /* Center social links: shrink icons, tighter gap */
  .wii-bar-center {
    flex: 1 1 0;
    gap: 2px;
    overflow: hidden;
    min-width: 0;
  }

  .wii-bar-icon-btn {
    width: 32px;
    height: 32px;
  }

  .wii-bar-social-icon {
    width: 16px;
    height: 16px;
  }


  /* Hide cursor toggle on mobile — no custom cursor on touch */
  #cursor-toggle {
    display: none;
  }

  .wii-bar-left {
    gap: 6px;
  }

  /* Hide text labels, keep icons only */
  .music-btn-label {
    display: none;
  }

  .wii-bar-music-btn {
    padding: 7px 10px;
    min-width: 36px;
    justify-content: center;
  }

  .wii-time {
    font-size: 0.95rem;
  }

  .wii-date {
    font-size: 0.65rem;
  }

  /* Music page — player stacks vertically */
  .music-player {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }

  .player-art {
    width: 100%;
    height: 180px;
  }

  /* Controls row: wrap volume below buttons */
  .player-controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  .volume-control {
    width: 100%;
    margin-left: 0;
  }

  .volume-slider {
    flex: 1;
    width: auto;
  }

  /* Album grid: 2 columns */
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .about-text h1 {
    font-size: 1.65rem;
  }

  .page-wrapper {
    padding: 24px 14px 56px;
  }

  /* Music page — tighter on very small screens */
  .player-art {
    height: 140px;
  }

  .player-title {
    font-size: 1.1rem;
  }

  .player-btn {
    width: 38px;
    height: 38px;
  }

  .player-play-btn {
    width: 48px;
    height: 48px;
  }
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.projects-section {
  padding: 20px;
}

.projects-intro {
  font-size: 0.9rem;
  color: #3a5a8c;
  margin-bottom: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  z-index: 5;
}

.project-card {
  background: rgba(255, 255, 255, 0.60);
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(6, 60, 140, 0.12);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(6, 60, 140, 0.20);
}

.project-card-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.project-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #1a3a5c;
  margin: 0;
}

.project-card-desc {
  font-size: 0.82rem;
  color: #2a4a6c;
  line-height: 1.55;
  margin: 0;
}

.project-card-notes {
  font-size: 0.78rem;
  color: #4a6a8c;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

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

.proj-team {
  font-size: 0.76rem;
  color: #4a7aac;
}

.proj-team-name {
  font-weight: 700;
  color: #1a3a5c;
  text-decoration: none;
}

.proj-team-name:hover { text-decoration: underline; }

.proj-team-role {
  color: #6a9acc;
}

.proj-link-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.proj-link-btn img {
  width: 16px;
  height: 16px;
}

/* ============================================================
   GAMES PAGE
   ============================================================ */

.games-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  align-items: start;
}

/* Right: scrollable game list */
.games-grid-panel {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  position: relative;
  z-index: 5;
}

/* Cover-only game cards */
.game-card {
  will-change: transform;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.15s ease;
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(6, 60, 140, 0.28);
}

.game-card.active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(30, 130, 230, 0.85),
    0 4px 18px rgba(6, 60, 140, 0.35);
  transform: scale(1.02);
}

/* Left: sticky TV + info panel */
.games-info-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(185, 225, 255, 0.65) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  border-radius: 26px;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.80),
    inset 0 -1px 1px rgba(80, 160, 220, 0.12),
    0 8px 36px rgba(6, 60, 140, 0.20),
    0 2px 8px  rgba(6, 60, 140, 0.10);
  padding: 16px;
}

/* Video container */
.tv-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.80);
  box-shadow:
    0 4px 20px rgba(6, 60, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
}

#game-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1a3a5c;
  margin: 0;
  line-height: 1.2;
}

#game-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#proj-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Info below TV */
.game-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}


/* Status + platforms row */
.game-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1.5px solid;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a3a5c;
}

.game-date {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(180, 210, 255, 0.3);
  border: 1.5px solid rgba(100, 160, 255, 0.35);
  color: #1a3a5c;
}

/* Description */
.game-desc {
  font-size: 0.82rem;
  color: #2a4a6c;
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fa5c5c;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-radius: 14px;
  padding: 10px 22px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(200, 40, 40, 0.28);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s, background 0.15s;
}

.play-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.play-btn:hover {
  background: #e84848;
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(200, 40, 40, 0.40);
}

/* Button row (play + soundtrack side by side) */
.game-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.soundtrack-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6c5ce7;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  font-size: 0.90rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(90, 60, 200, 0.30);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s, background 0.15s;
}

.soundtrack-btn:hover {
  background: #5a4bd1;
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(90, 60, 200, 0.45);
}

/* --- Game info card (dev notes / jam / team) --- */
.game-info-card {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-info-section {
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.game-info-section-title {
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a7aac;
}

.game-dev-notes {
  font-size: 0.82rem;
  color: #2a4a6c;
  line-height: 1.55;
  margin: 0;
}

.game-jam-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-jam-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.game-jam-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #1a3a5c;
}

.game-jam-detail {
  font-size: 0.78rem;
  color: #3a5a8c;
}

.game-jam-placement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(255, 210, 0, 0.22);
  border: 2px solid rgba(255, 210, 0, 0.6);
  border-radius: 14px;
  font-weight: 900;
  color: #6a4800;
  flex-shrink: 0;
  text-align: center;
  gap: 2px;
}

.game-jam-placement span {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.game-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-team-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.game-team-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1a3a5c;
  text-decoration: none;
}

.game-team-name:hover {
  text-decoration: underline;
}

.game-team-role {
  font-size: 0.76rem;
  color: #4a7aac;
}

.page-wrapper--wide {
  max-width: 1500px;
}

/* ============================================================
   PROJECTS PAGE — Stacked Layout
   ============================================================ */

/* Full-width video tile */
.proj-video-tile {
  padding: 0;
  overflow: hidden;
}

#proj-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d1a2e;
}

/* Info tile: description left, dev notes + team right */
.proj-info-tile {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Horizontal selector strip */
.proj-selector-tile {
  overflow-x: auto;
  padding: 12px 16px;
}

.proj-strip {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
}

.proj-strip .game-card {
  flex: 0 0 200px;
  width: 200px;
}

/* ============================================================
   CONSOLES PAGE
   ============================================================ */

/* Photo viewer */
.console-photo-container {
  position: relative;
}

#console-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  cursor: zoom-in;
}

/* Prev / Next arrow buttons */
.photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-weight: 900;
  transition: background 0.15s;
  z-index: 10;
}

.photo-nav-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}

.photo-nav-prev { left: 10px; }
.photo-nav-next { right: 10px; }

/* Photo counter */
.photo-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}

/* Category headers in right panel */
.console-category-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(26, 58, 92, 0.5);
  margin: 16px 0 6px;
  padding: 0 2px;
}

.console-category-title:first-child {
  margin-top: 0;
}

/* 2-column grid per category */
.consoles-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 4px;
  position: relative;
  z-index: 5;
}

/* Console meta tags */
.console-color-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(100, 160, 255, 0.15);
  border: 1.5px solid rgba(100, 160, 255, 0.4);
  color: #1a4a8c;
}

.console-style {
  font-size: 0.82rem;
  color: rgba(26, 58, 92, 0.65);
  margin: 6px 0 0;
  font-style: italic;
}

/* Photo filmstrip */
.console-filmstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.filmstrip-thumb {
  width: 100%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}

.filmstrip-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.filmstrip-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.filmstrip-thumb.active {
  opacity: 1;
  border-color: rgba(30, 130, 230, 0.9);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(30, 130, 230, 0.7);
}

/* Stack on smaller screens */
@media (max-width: 700px) {
  .games-layout {
    grid-template-columns: 1fr;
  }

  .games-info-panel {
    position: static;
    padding: 14px 12px;
  }

  .game-meta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .game-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .play-btn, .soundtrack-btn {
    justify-content: center;
  }

  .games-grid-panel {
    max-height: none;
    overflow-y: visible;
  }

  /* Single column game grid on narrow screens */
  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    height: 72px;
  }

  .game-card img {
    width: 110px;
  }
}
