/*
Theme Name: Listenr with LineNotes
Theme URI: https://www.listenr.com.au
Description: A modern, dynamic music review magazine theme for WordPress. Features include Spotify Web API integration for automatic album data import, custom post types for reviews, album cards, music player, and a clean responsive design perfect for music content.
Version: 1.1.0
Author: Leigh Stark
Author URI: https://www.leighlo.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: listenr
Tags: blog, music, reviews, magazine, responsive, modern

*/

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode Colors (Default) */
  --color-primary: #000000;
  --color-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F3F4F6;
  --color-text: #111827;
  --color-text-light: #6B7280;
  --color-accent: #EAB308;
  
  /* Spacing */
  --max-width: 1280px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Dark Mode - Automatic (Device Preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #FFFFFF;
    --color-secondary: #9CA3AF;
    --color-border: #374151;
    --color-bg-white: #111827;
    --color-bg-gray: #1F2937;
    --color-text: #F9FAFB;
    --color-text-light: #D1D5DB;
    --color-accent: #FCD34D;
  }
}

/* Dark Mode - Manual Override */
[data-theme="dark"] {
  --color-primary: #FFFFFF;
  --color-secondary: #9CA3AF;
  --color-border: #374151;
  --color-bg-white: #111827;
  --color-bg-gray: #1F2937;
  --color-text: #F9FAFB;
  --color-text-light: #D1D5DB;
  --color-accent: #FCD34D;
}

/* Light Mode - Manual Override */
[data-theme="light"] {
  --color-primary: #000000;
  --color-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F3F4F6;
  --color-text: #111827;
  --color-text-light: #6B7280;
  --color-accent: #EAB308;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Smooth theme transitions for major elements */
.site-header,
.site-footer,
.site-main,
.badge,
.album-card,
.review-accordion,
.accordion-toggle,
.album-info-grid,
.listen-now-box,
.author-bio-box,
.review-right-nav,
.mobile-menu-toggle {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* LINER NOTES TITLE */
.liner-title {
  text-transform: lowercase;
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Ensure the h1 link is touchable on mobile */
.linenotes-header a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.linenotes-header a:hover {
  opacity: 0.8;
}

.linenotes-header a .liner-title {
  pointer-events: none; /* Let the anchor handle all events */
  margin: 0; /* Remove margin so the anchor can be the full touch target */
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .linenotes-header a {
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    padding: var(--spacing-xs); /* Add padding for easier tapping */
  }
}

.line-title-red {
  color: #ae2024;
}


/* ============================================
   LAYOUT
   ============================================ */
.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  background: var(--color-bg-white);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced header styling for dark mode */
[data-theme="dark"] .site-header {
  background: var(--color-bg-white);
  backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: var(--color-bg-white);
    backdrop-filter: blur(10px);
  }
}

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

.site-branding h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.site-branding .site-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Logo Image Styles */
.site-branding .site-logo a {
  display: inline-block;
  text-decoration: none;
}

.site-branding .logo-image,
.site-branding .logo-svg {
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
}

/* Vertical Logo Image Styles */
.review-vertical-logo .logo-image,
.review-vertical-logo .logo-svg {
  max-height: 200px;
  width: auto;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.main-navigation {
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-size: 0.875rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-secondary);
}

.main-navigation ul,
.main-navigation #primary-menu,
.main-navigation #top-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation ul li a,
.main-navigation #primary-menu li a,
.main-navigation #top-menu li a {
  color: var(--color-text);
}

.site-main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.site-main.site-main--review {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  background: var(--color-bg-white);
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.footer-text {
  flex: 1;
  text-align: left;
}

/* LineNotes Footer Content */
.linenotes-footer-content {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm);
}

.footer-theme-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Mobile optimizations for theme selector */
@media (max-width: 768px) {
  .theme-selector-dropdown {
    min-height: 44px; /* Minimum touch target size for mobile */
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 1rem; /* Slightly larger text for mobile */
  }
  
  .footer-theme-selector {
    gap: 1rem;
  }
}

.theme-selector-label {
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 500;
}

.theme-selector-dropdown {
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px;
  min-width: 100px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.theme-selector-dropdown:hover {
  border-color: var(--color-text);
  background-color: var(--color-bg-white);
}

.theme-selector-dropdown:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Dark mode dropdown arrow */
[data-theme="dark"] .theme-selector-dropdown {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F9FAFB' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-selector-dropdown {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F9FAFB' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.reviews-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    padding: 0 1rem;
  }
}

/* ============================================
   ALBUM CARD
   ============================================ */
.album-card {
  display: block;
  transition: all 0.3s ease;
}

.album-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.album-card:hover .album-card-image {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
}

[data-theme="dark"] .album-card:hover .album-card-image,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .album-card:hover .album-card-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

.album-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-card-image img {
  transform: scale(1.05);
}

.album-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-card:hover .album-card-image::after {
  opacity: 1;
}

.album-card-content {
  padding: 0 0.5rem;
}

.album-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.album-card:hover .album-card-title {
  color: var(--color-text-light);
}

.album-card-artist {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.album-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-bg-white);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ============================================
   RATING
   ============================================ */
.rating {
  display: flex;
  gap: 0.125rem;
}

.rating-star {
  font-size: 0.875rem;
}

.rating-star.filled {
  color: var(--color-accent);
}

.rating-star.empty {
  color: var(--color-border);
}

/* ============================================
   SINGLE REVIEW PAGE (LEGACY - NOT USED)
   ============================================ */
/* These styles are kept for backward compatibility but overridden by .single-review-split */

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-player {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 2rem 0;
}

.player-info {
  margin-bottom: 0.75rem;
}

.player-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.player-artist {
  color: #9CA3AF;
  font-size: 0.75rem;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.player-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover {
  color: #9CA3AF;
}

.player-btn-play {
  background: white;
  color: black;
  border-radius: 50%;
  padding: 0.75rem;
}

.player-btn-play:hover {
  background: #E5E7EB;
}

.player-progress {
  background: #374151;
  height: 2px;
  border-radius: 9999px;
  overflow: hidden;
}

.player-progress-bar {
  background: white;
  height: 100%;
  width: 33%;
  border-radius: 9999px;
  transition: width 0.1s ease;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-light);
}

/* Page Content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--color-border);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--color-text-light);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0.75rem;
  color: var(--color-text);
  z-index: 1000;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-text);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 1.5rem;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0.5rem;
    margin-left: 0;
  }
  
  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    padding: 1rem 2rem;
  }

  .site-branding h1 {
    font-size: 1.25rem;
  }

  .site-branding .site-description {
    display: none;
  }

  .main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-white);
    backdrop-filter: blur(10px);
    border-bottom: none;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    z-index: 998;
    align-items: center;
    justify-content: flex-start;
  }

  .main-navigation.is-active {
    display: flex;
  }

  .main-navigation ul,
  .main-navigation #primary-menu,
  .main-navigation #top-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
    width: 100%;
    text-align: center;
  }

  .main-navigation a,
  .main-navigation ul li a,
  .main-navigation #primary-menu li a,
  .main-navigation #top-menu li a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--color-text);
  }

  /* Add spacing for fixed header */
  .site-main {
    padding-top: 5rem;
  }

  /* Don't add top padding on single review pages */
  .site-main.site-main--review {
    padding-top: 0 !important;
  }

  /* Ensure menu toggle is above the menu overlay */
  .mobile-menu-toggle {
    position: relative;
    z-index: 1000;
  }

  /* Show header on single review pages on mobile */
  body.single-review .site-header {
    display: block;
  }

  /* Adjust review left section for mobile - add spacing for fixed header */
  body.single-review .review-left {
    padding-top: 4.5rem;
  }

  /* Ensure featured image container accounts for header */
  body.single-review .review-featured-image {
    min-height: calc(60vh - 4.5rem);
  }
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.625rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Hide theme toggle on desktop (we show dropdown in footer instead) */
@media (min-width: 1024px) {
  .theme-toggle {
    display: none;
  }
}

.theme-toggle:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-text);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:active svg {
  transform: scale(0.9);
}

/* Hide sun in dark mode, moon in light mode */
[data-theme="dark"] .theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: block;
}

/* Auto dark mode without manual override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }
  
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* ============================================
   SINGLE REVIEW SPLIT LAYOUT
   ============================================ */

/* Hide main header on single-review pages (desktop only) */
@media (min-width: 1024px) {
  body.single-review .site-header {
    display: none;
  }
}

.single-review-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .single-review-split {
    grid-template-columns: 50% 50%;
    gap: 0;
    padding: 0;
  }
}

/* Left Column - Sticky Cover */
.review-left {
  background: var(--color-bg-gray);
  padding: 0;
  position: relative;
  min-height: 60vh;
}

@media (min-width: 1024px) {
  .review-left {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    background: var(--color-primary);
    overflow: hidden;
  }
}

.review-left-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* Vertical Logo on Left Side */
.review-vertical-logo {
  display: none;
}

@media (min-width: 1024px) {
  .review-vertical-logo {
    display: block;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  
  .review-vertical-logo a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }
  
  .review-vertical-logo a:hover {
    opacity: 0.8;
    color: white;
  }
  
  .review-vertical-logo img {
    max-height: 200px;
    width: auto;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  }
  
  .vertical-site-name {
    display: block;
  }
}

.single-review-split .review-featured-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 50vh;
  margin: 0;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-gray);
}

@media (min-width: 1024px) {
  .single-review-split .review-featured-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 100% !important;
    z-index: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .single-review-split .review-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }
}

.single-review-split .review-featured-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .single-review-split .review-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Music Embed - Mobile Version (Spotify or Apple Music) */
.single-review-split .music-embed-mobile,
.single-review-split .spotify-embed-mobile {
  margin: 0 0 2rem 0;
  padding: 0;
  position: relative;
}

/* Music Embed - Desktop Version (in left column) */
.single-review-split .music-embed-desktop,
.single-review-split .spotify-embed-desktop {
  display: none;
  margin: 0;
  padding: 1.5rem;
  position: relative;
}

@media (min-width: 1024px) {
  /* Hide mobile version on desktop */
  .single-review-split .music-embed-mobile,
  .single-review-split .spotify-embed-mobile {
    display: none;
  }
  
  /* Show and position desktop version */
  .single-review-split .music-embed-desktop,
  .single-review-split .spotify-embed-desktop {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-radius: 0;
    padding: 2rem;
  }
  
  .single-review-split .music-embed-container iframe,
  .single-review-split .spotify-embed-container iframe {
    position: relative;
    z-index: 11;
  }
}

/* Right Column - Content */
.review-right {
  padding: 2rem;
}

@media (min-width: 1024px) {
  .review-right {
    padding: 3rem 4rem;
    overflow-y: auto;
  }
}

/* Right Side Navigation */
.review-right-nav {
  display: none;
}

@media (min-width: 1024px) {
  .review-right-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    padding-left: 4rem;
    padding-right: 4rem;
    margin-top: -3rem;
    margin-left: -4rem;
    margin-right: -4rem;
    margin-bottom: 100px;
    border-bottom: 2px solid var(--color-border);
    background: var(--color-bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  }
  
  /* Add spacing after the nav using adjacent sibling */
  .review-right-nav + * {
    margin-top: 3rem;
  }
  
  .review-right-nav .back-link {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .review-right-nav .back-link:hover {
    color: var(--color-primary);
  }
  
  .review-right-nav .review-nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .review-right-nav .review-nav-menu ul,
  .review-right-nav .review-nav-menu #review-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  
  .review-right-nav .review-nav-menu ul li,
  .review-right-nav .review-nav-menu #review-menu li {
    margin: 0;
    padding: 0;
  }
  
  .review-right-nav .review-nav-menu a,
  .review-right-nav .review-nav-menu ul li a,
  .review-right-nav .review-nav-menu #review-menu li a {
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
  }
  
  .review-right-nav .review-nav-menu a:hover,
  .review-right-nav .review-nav-menu ul li a:hover,
  .review-right-nav .review-nav-menu #review-menu li a:hover {
    color: var(--color-secondary);
  }
}

.single-review-split .review-header {
  text-align: left;
  margin-bottom: 2rem;
}

.review-genres {
  margin-bottom: 1rem;
}

.review-genres .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .review-title {
    font-size: 3rem;
  }
}

.review-artist {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.single-review-split .review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  justify-content: flex-start;
  margin-top: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.single-review-split .review-content {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.single-review-split .review-content p {
  margin-bottom: 1.5rem;
}

.single-review-split .review-content h2,
.single-review-split .review-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ============================================
   ACCORDION
   ============================================ */
.review-accordion {
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-bg-gray);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced dark mode styling for accordion */
[data-theme="dark"] .review-accordion {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .review-accordion {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
}

.accordion-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Dark mode hover state */
[data-theme="dark"] .accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] + .accordion-content {
  max-height: 500px;
}

.album-info-grid {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: transparent;
}

/* Subtle background for dark mode */
[data-theme="dark"] .album-info-grid {
  background: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .album-info-grid {
    background: rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 640px) {
  .album-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.album-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.album-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  font-weight: 600;
}

.album-info-value {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================
   LISTEN NOW BOX
   ============================================ */
.listen-now-box {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.listen-now-title {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  margin-right: 1rem;
}

.listen-now-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .listen-now-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .listen-now-title {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .listen-now-buttons {
    width: 100%;
  }
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.listen-btn:hover {
  background: var(--color-bg-white);
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.listen-btn--spotify {
  color: var(--color-text);
}

.listen-btn--spotify:hover {
  background: var(--color-bg-white);
  border-color: var(--color-text-light);
}

.listen-btn--apple {
  color: var(--color-text);
}

.listen-btn--apple:hover {
  background: var(--color-bg-white);
  border-color: var(--color-text-light);
}

.listen-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ============================================
   AUTHOR BIO BOX
   ============================================ */
.author-bio-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark mode author bio box */
[data-theme="dark"] .author-bio-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-bio-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
}

.author-bio-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Dark mode bio header divider */
[data-theme="dark"] .author-bio-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-bio-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode avatar border */
[data-theme="dark"] .author-avatar {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-avatar {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.author-link {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.author-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.author-bio-content {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
}

.author-bio-content p {
  margin-bottom: 0.75rem;
}

.author-bio-content p:last-child {
  margin-bottom: 0;
}

.author-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .author-social-links {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-social-links {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  transition: all 0.2s ease;
  text-decoration: none;
}

.author-social-link:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .author-social-link {
  background: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-social-link {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ============================================
   AUTHOR PAGE BIO BOX
   ============================================ */
.author-page-bio {
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.author-page-bio-inner {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark mode author page bio box */
[data-theme="dark"] .author-page-bio-inner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-page-bio-inner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
}

.author-page-bio-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.author-page-avatar {
  flex-shrink: 0;
}

.author-page-avatar .author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode author page avatar */
[data-theme="dark"] .author-page-avatar .author-avatar {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .author-page-avatar .author-avatar {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}

.author-page-info {
  flex: 1;
}

.author-page-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.author-page-bio-content {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.author-page-bio-content p {
  margin-bottom: 0.75rem;
}

.author-page-bio-content p:last-child {
  margin-bottom: 0;
}

/* Author page sections */
.author-posts-section {
  margin-bottom: 4rem;
}

.author-section-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .author-page-bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .author-page-info {
    text-align: center;
  }
  
  .author-page-name {
    font-size: 1.75rem;
  }
  
  .author-page-avatar .author-avatar {
    width: 100px;
    height: 100px;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-text);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-light);
  opacity: 0.5;
}

.breadcrumb-separator svg {
  width: 14px;
  height: 14px;
}

/* Breadcrumbs in review right nav */
.review-breadcrumbs .breadcrumbs {
  margin-bottom: 0;
}

/* ============================================
   NEWS SECTION STYLES
   ============================================ */

/* Homepage Layout */
.homepage {
  padding: 0;
}

.homepage > section {
  padding: 4rem 0;
}

.news-section {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.reviews-section {
  background: var(--color-bg-white);
}

/* Section Headers */
.section-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-header-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-header-content p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-all-link:hover {
  color: var(--color-text-light);
  gap: 0.75rem;
}

.view-all-link svg {
  transition: transform 0.2s ease;
}

.view-all-link:hover svg {
  transform: translateX(2px);
}

/* News Grid */
.news-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* News Card */
.news-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.news-card-inner {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  height: 100%;
}

.news-card:hover .news-card-inner {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

[data-theme="dark"] .news-card:hover .news-card-inner,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-card:hover .news-card-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

.news-card-image {
  position: relative;
  width: 40%;
  flex-shrink: 0;
  overflow: hidden;
  min-height: 200px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.05), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-card-image-overlay {
  opacity: 1;
}

.news-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-header {
  flex: 1;
}

.news-card-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-bg-gray);
  color: var(--color-text);
  border-radius: 4px;
}

.news-badge-outline {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 4px;
}

.news-date {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: var(--color-text-light);
}

.news-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 500;
  transition: gap 0.2s ease;
}

.news-card:hover .news-card-footer {
  gap: 0.75rem;
}

.news-card-footer svg {
  transition: transform 0.2s ease;
}

.news-card:hover .news-card-footer svg {
  transform: translateX(2px);
}

/* Mobile News Card Layout */
@media (max-width: 640px) {
  .news-card-inner {
    flex-direction: column;
  }
  
  .news-card-image {
    width: 100%;
    height: 200px;
  }
}

/* Empty State Small */
.empty-state-small {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
}

/* ============================================
   SINGLE NEWS PAGE STYLES
   ============================================ */

.single-news {
  padding: 3rem 0;
}

.single-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-button:hover {
  color: var(--color-text);
  gap: 0.75rem;
}

.back-button svg {
  transition: transform 0.2s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

/* Two Column Header */
.single-news-header-wrapper {
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.single-news-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 500px;
}

/* Header Split Ratios */
.single-news-header-grid.header-split-3070 {
  grid-template-columns: 30fr 70fr;
}

.single-news-header-grid.header-split-4060 {
  grid-template-columns: 40fr 60fr;
}

.single-news-header-grid.header-split-5050 {
  grid-template-columns: 50fr 50fr;
}

.single-news-header-grid.header-split-6040 {
  grid-template-columns: 60fr 40fr;
}

.single-news-header-grid.header-split-7030 {
  grid-template-columns: 70fr 30fr;
}

@media (max-width: 768px) {
  .single-news-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  /* Reset all split ratios on mobile */
  .single-news-header-grid.header-split-3070,
  .single-news-header-grid.header-split-4060,
  .single-news-header-grid.header-split-5050,
  .single-news-header-grid.header-split-6040,
  .single-news-header-grid.header-split-7030 {
    grid-template-columns: 1fr;
  }
}

.single-news-header-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.single-news-header-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 12px;
}

.single-news-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .single-news-header-image {
    order: -1;
    min-height: 400px;
  }
}

/* Byline with integrated bio */
.single-news-byline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 400;
}

/* Publication Date */
/* Share and Reading Time */
.single-news-meta-extras {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.single-news-meta-extras .single-news-date {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 400;
  margin: 0;
}

/* Taxonomy Pills Overlay */
.post-taxonomy-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.taxonomy-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.taxonomy-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.taxonomy-category {
  background: rgba(255, 255, 255, 0.95);
  color: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.taxonomy-category:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.1);
}

.taxonomy-tag {
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.taxonomy-tag:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .taxonomy-category,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .taxonomy-category {
    background: rgba(31, 41, 55, 0.95);
    color: #F3F4F6;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

[data-theme="dark"] .taxonomy-category:hover {
  background: rgba(31, 41, 55, 1);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .taxonomy-category:hover {
    background: rgba(31, 41, 55, 1);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .post-taxonomy-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  
  .taxonomy-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
  }
}

/* Single News Grid */
.single-news-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .single-news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Main Content */
.single-news-content {
  min-width: 0;
}

.single-news-header {
  margin-bottom: 2rem;
}

.single-news-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .single-news-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .single-news-title {
    font-size: 2.25rem;
  }
}

.single-news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.single-news-meta span {
  display: inline-block;
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.single-news-share {
  display: flex;
  gap: 0.75rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-button:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-text-light);
}

/* Featured Image */
.single-news-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.single-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Body */
.single-news-body {
  color: var(--color-text-light);
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-news-body p {
  margin-bottom: 1.5rem;
}

.single-news-body p:first-of-type {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.single-news-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.single-news-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-news-body a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.single-news-body a:hover {
  color: var(--color-text-light);
}

.single-news-body blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-border);
  font-style: italic;
  color: var(--color-text);
}

/* Related Articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related-articles h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

.related-article a {
  text-decoration: none;
  color: inherit;
}

.related-article-image {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  transition: color 0.2s ease;
  margin-top: 0.5rem;
}

.related-article:hover h4 {
  color: var(--color-text-light);
}

/* Sidebar */
.single-news-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

.sidebar-widget {
  background: var(--color-bg-gray);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-widget-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.sidebar-widget-header svg {
  color: var(--color-text);
}

/* Popular Posts */
.popular-posts-list {
  display: flex;
  flex-direction: column;
}

.popular-post-item a {
  text-decoration: none;
  color: inherit;
}

.popular-post-item p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.popular-post-item:hover p {
  color: var(--color-text-light);
}

.popular-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popular-read-time {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.popular-separator {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* Newsletter Widget */
.sidebar-newsletter {
  background: var(--color-primary) !important;
  color: var(--color-bg-white);
}

[data-theme="dark"] .sidebar-newsletter,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sidebar-newsletter {
    background: var(--color-bg-white) !important;
    color: var(--color-text);
  }
}

.sidebar-newsletter .sidebar-widget-header h3 {
  color: var(--color-bg-white);
}

.sidebar-newsletter .sidebar-widget-header svg {
  color: var(--color-bg-white);
}

[data-theme="dark"] .sidebar-newsletter .sidebar-widget-header h3,
[data-theme="dark"] .sidebar-newsletter .sidebar-widget-header svg,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sidebar-newsletter .sidebar-widget-header h3,
  :root:not([data-theme="light"]) .sidebar-newsletter .sidebar-widget-header svg {
    color: var(--color-text);
  }
}

.newsletter-description {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-bg-white);
  transition: all 0.2s ease;
}

[data-theme="dark"] .newsletter-form input[type="email"],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .newsletter-form input[type="email"] {
    background: var(--color-bg-gray);
    border-color: var(--color-border);
    color: var(--color-text);
  }
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .newsletter-form input[type="email"]::placeholder,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-light);
  }
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .newsletter-submit,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .newsletter-submit {
    background: var(--color-text);
    color: var(--color-bg-white);
  }
}

.newsletter-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Table of Contents */
.table-of-contents {
  background: var(--color-bg-gray);
  border-radius: 12px;
  padding: 1.5rem;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.toc-header svg {
  color: var(--color-text);
}

.toc-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.toc-nav {
  margin: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li {
  margin: 0;
}

.toc-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toc-link:hover,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toc-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

.toc-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toc-link.active,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toc-link.active {
    background: rgba(255, 255, 255, 0.05);
  }
}

.toc-level-3 .toc-link {
  padding-left: 1.25rem;
}

.toc-level-4 .toc-link {
  padding-left: 2rem;
}

/* TOC Sidebar (Desktop) */
.toc-sidebar-wrapper {
  display: block;
}

@media (max-width: 1024px) {
  .toc-sidebar-wrapper {
    display: none;
  }
}

/* TOC Mobile (Sticky at top, flat with dropdown) */
.toc-mobile-wrapper {
  display: none;
  margin-bottom: 2rem;
  position: relative;
}

/* Mobile TOC Toggle Button (Flat View) */
.toc-mobile-toggle {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.toc-mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toc-mobile-toggle:hover,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toc-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

.toc-mobile-current {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-mobile-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-light);
}

.toc-mobile-toggle[aria-expanded="true"] .toc-mobile-chevron {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .toc-mobile-wrapper {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 70px; /* Default fallback, updated by JS */
    z-index: 100;
    margin-bottom: 2rem;
    margin-top: 0;
  }
  
  .toc-mobile-wrapper .table-of-contents {
    background: var(--color-bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 0;
  }
  
  [data-theme="dark"] .toc-mobile-wrapper .table-of-contents,
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .toc-mobile-wrapper .table-of-contents {
      background: var(--color-bg-white);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
  }
  
  /* Hide desktop header on mobile */
  .toc-mobile-wrapper .toc-header {
    display: none;
  }
  
  /* Show mobile toggle on mobile */
  .toc-mobile-wrapper .toc-mobile-toggle {
    display: flex;
  }
  
  /* Hide nav by default, show when expanded */
  .toc-mobile-wrapper .toc-nav {
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  .toc-mobile-wrapper .table-of-contents[data-expanded="true"] .toc-nav {
    display: block;
  }
  
  /* Hide scrollbar but keep functionality */
  .toc-mobile-wrapper .toc-nav::-webkit-scrollbar {
    width: 4px;
  }
  
  .toc-mobile-wrapper .toc-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .toc-mobile-wrapper .toc-nav::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
  }
  
  .toc-mobile-wrapper .toc-nav::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
  }
}

/* Desktop: Hide mobile toggle */
@media (min-width: 1025px) {
  .toc-mobile-toggle {
    display: none !important;
  }
  
  .toc-mobile-wrapper .toc-nav {
    display: block !important;
  }
}

/* ============================================
   GEAR REVIEW TEMPLATE
   ============================================ */

/* ============================================
   LINER NOTES GAME
   ============================================ */

.site-main--linenotes {
  padding: var(--spacing-lg) var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.linenotes-game {
  width: 100%;
}

.linenotes-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.linenotes-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.linenotes-title {
  text-transform: lowercase;
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.linenotes-artist {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.linenotes-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Game Info */
.linenotes-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--color-bg-gray);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--color-border);
  align-items: start;
}

.linenotes-info-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

/* Mobile-only stats display */
.linenotes-info-stats-mobile {
  display: none;
}

@media (max-width: 768px) {
  .linenotes-info-stats-mobile {
    display: flex;
    background: var(--color-bg-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
  }
}

.linenotes-track-preview {
  width: 100%;
  min-height: 152px;
  margin-bottom: var(--spacing-lg);
  background: var(--color-bg-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.linenotes-spotify-embed-wrapper {
  position: relative;
  width: 100%;
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
}

.linenotes-spotify-iframe {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.linenotes-spotify-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-bg-white);
  border-radius: 12px;
  padding: 15px;
}

[data-theme="dark"] .linenotes-spotify-overlay {
  background: var(--color-bg-gray);
}

.linenotes-mystery-thumbnail-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.linenotes-mystery-thumbnail {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.linenotes-mystery-thumbnail-empty {
  background-color: var(--color-bg-gray);
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linenotes-mystery-thumbnail-empty::after {
  content: "🎵";
  font-size: 48px;
  opacity: 0.3;
}

[data-theme="dark"] .linenotes-mystery-thumbnail {
  background-color: var(--color-bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.linenotes-mystery-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
  flex: 1;
}

.linenotes-mystery-instruction {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary, var(--color-text-primary));
  margin-top: 8px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Player controls - positioned over thumbnail */
.linenotes-player-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: all;
  width: 56px;
  height: 56px;
}

.linenotes-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.linenotes-control-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.linenotes-control-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 2px; /* Slight offset for play icon to appear centered */
}

/* Hide Spotify iframe completely */
.linenotes-spotify-iframe {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .linenotes-info {
    grid-template-columns: 1fr;
  }
}

.linenotes-progress,
.linenotes-hints {
  margin: var(--spacing-xs) 0;
  color: var(--color-text);
}

.linenotes-progress span,
.linenotes-hints span {
  font-weight: bold;
  color: var(--color-accent);
}

/* Game Area */
.linenotes-game-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  align-items: start;
}

/* Left Column: Music Sample + Word Search Grid */
.linenotes-left-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  height: 100%;
}

@media (max-width: 768px) {
  .linenotes-game-area {
    grid-template-columns: 1fr;
  }
  
  .linenotes-left-column {
    gap: var(--spacing-md);
  }
  
  .linenotes-track-preview {
    margin-bottom: 0;
  }
}

/* Grid Container */
.linenotes-grid-container {
  background: var(--color-bg-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.linenotes-grid-container h2 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.linenotes-instructions {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

/* Word Search Grid */
.linenotes-grid {
  display: grid;
  gap: 2px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background: var(--color-bg-gray);
  border-radius: 4px;
  user-select: none;
  touch-action: none;
  width: fit-content;
}

.linenotes-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text);
  font-family: monospace;
}

@media (max-width: 768px) {
  .linenotes-grid-container {
    padding: var(--spacing-xs, 0.5rem);
  }
  
  .linenotes-grid-container h2 {
    margin-bottom: var(--spacing-xs, 0.5rem);
  }
  
  .linenotes-instructions {
    margin-bottom: var(--spacing-xs, 0.5rem);
  }
  
  .linenotes-grid {
    padding: var(--spacing-xs, 0.5rem);
    gap: 1px;
    margin: 0;
  }
  
  .linenotes-cell {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .linenotes-actions {
    margin-top: var(--spacing-sm);
    gap: var(--spacing-xs, 0.5rem);
  }
}

.linenotes-cell:hover {
  background: var(--color-bg-gray);
}

.linenotes-cell-selected {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #2563eb !important;
}

.linenotes-cell-found {
  background: #86efac !important;
  color: #166534 !important;
  border-color: #22c55e !important;
}

.linenotes-cell-hinted {
  background: #dbeafe !important;
  border: 2px solid #3b82f6 !important;
  color: var(--color-text);
}

[data-theme="dark"] .linenotes-cell-hinted {
  background: #1e3a8a !important;
  border-color: #60a5fa !important;
  color: #dbeafe !important;
}

.linenotes-cell-unfound {
  background: #fecaca !important;
  color: #991b1b !important;
  border-color: #ef4444 !important;
}

[data-theme="dark"] .linenotes-cell-unfound {
  background: #7f1d1d !important;
  border-color: #dc2626 !important;
  color: #fecaca !important;
}

/* Actions */
.linenotes-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.linenotes-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.linenotes-btn:hover:not(:disabled) {
  background: var(--color-bg-gray);
  border-color: var(--color-text-light);
}

.linenotes-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.linenotes-btn-hint {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

[data-theme="dark"] .linenotes-btn-hint {
  background: #78350f;
  border-color: #f59e0b;
  color: #fef3c7;
}

/* Clues Container */
.linenotes-clues-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  height: 100%;
}

.linenotes-clues {
  background: var(--color-bg-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.linenotes-clues h2 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

/* Accordion functionality for mobile */
@media (max-width: 768px) {
  .linenotes-clues h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    padding: var(--spacing-sm) 0;
    transition: all 0.2s ease;
  }
  
  .linenotes-clues h2:hover {
    opacity: 0.8;
  }
  
  .linenotes-clues h2::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--color-text-light);
    margin-left: var(--spacing-sm);
  }
  
  .linenotes-clues.linenotes-clues-collapsed h2::after {
    transform: rotate(-90deg);
  }
  
  .linenotes-clues-list {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    margin-top: var(--spacing-md);
    opacity: 1;
  }
  
  .linenotes-clues.linenotes-clues-collapsed .linenotes-clues-list {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
  }
}

.linenotes-clues-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.linenotes-clue-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-bg-gray);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.linenotes-clue-found {
  background: #dcfce7 !important;
  border: 1px solid #22c55e;
}

[data-theme="dark"] .linenotes-clue-found {
  background: #14532d !important;
  border-color: #4ade80;
}

.linenotes-clue-hinted {
  border: 1px solid #3b82f6;
}

.linenotes-clue-unfound {
  background: #fee2e2 !important;
  border: 1px solid #ef4444;
}

[data-theme="dark"] .linenotes-clue-unfound {
  background: #7f1d1d !important;
  border-color: #dc2626;
}

.linenotes-clue-status {
  flex-shrink: 0;
}

.linenotes-clue-icon {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.linenotes-clue-found .linenotes-clue-icon {
  color: #22c55e;
}

.linenotes-clue-hinted .linenotes-clue-icon {
  color: #3b82f6;
}

.linenotes-clue-unfound .linenotes-clue-icon {
  color: #ef4444;
}

.linenotes-clue-letters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.linenotes-clue-letter {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-white);
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-text);
}

.linenotes-clue-found .linenotes-clue-letter {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

[data-theme="dark"] .linenotes-clue-found .linenotes-clue-letter {
  background: #14532d;
  border-color: #4ade80;
  color: #86efac;
}

.linenotes-clue-unfound .linenotes-clue-letter {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

[data-theme="dark"] .linenotes-clue-unfound .linenotes-clue-letter {
  background: #7f1d1d;
  border-color: #dc2626;
  color: #fecaca;
}

.linenotes-clue-placeholder {
  color: var(--color-text-light);
  font-size: 1rem;
}

.linenotes-clue-hint {
  display: inline-block !important;
  font-style: italic;
  color: #666;
  font-size: 12px;
  margin-left: 8px;
  flex-shrink: 0;
}

[data-theme="dark"] .linenotes-clue-hint {
  color: #9ca3af;
}

/* Answer Box */
.linenotes-answer {
  background: var(--color-bg-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.linenotes-answer-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.linenotes-answer-icon {
  font-size: 1.5rem;
}

.linenotes-answer-header h2 {
  margin: 0;
  color: var(--color-text);
}

.linenotes-answer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.linenotes-answer-locked {
  color: var(--color-text-light);
  text-align: center;
  padding: var(--spacing-md);
}

.linenotes-answer-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.linenotes-answer-input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-white);
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.linenotes-answer-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.linenotes-answer-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.linenotes-answer-error {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
}

.linenotes-answer-error-shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.linenotes-btn-submit {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  font-weight: bold;
}

.linenotes-btn-submit:hover:not(:disabled) {
  background: #facc15;
  border-color: #facc15;
}

/* Mobile styles for answer form */
@media (max-width: 768px) {
  .linenotes-answer-form {
    gap: var(--spacing-md);
  }
  
  .linenotes-answer-input {
    width: 100%;
    box-sizing: border-box;
  }
  
  .linenotes-btn-submit {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Success/Answer Display */
.linenotes-answer-success,
.linenotes-answer-gaveup {
  text-align: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #22c55e;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

[data-theme="dark"] .linenotes-answer-success,
[data-theme="dark"] .linenotes-answer-gaveup {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  border-color: #4ade80;
}

.linenotes-answer-gaveup {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

[data-theme="dark"] .linenotes-answer-gaveup {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #fbbf24;
}

.linenotes-answer-success-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.linenotes-answer-success-title,
.linenotes-answer-gaveup-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.linenotes-answer-success-album,
.linenotes-answer-gaveup-album {
  font-size: 1.5rem;
  font-weight: bold;
  margin: var(--spacing-sm) 0;
  color: var(--color-text);
}

.linenotes-answer-success-artist,
.linenotes-answer-gaveup-artist {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.linenotes-answer-gaveup-text {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* Music Links */
.linenotes-answer-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.linenotes-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  color: white;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.linenotes-link-spotify {
  background: #1db954;
}

.linenotes-link-spotify:hover {
  background: #1ed760;
}

.linenotes-link-apple {
  background: linear-gradient(135deg, #fa243c 0%, #8e44ad 100%);
}

.linenotes-link-apple:hover {
  background: linear-gradient(135deg, #ff2d4a 0%, #9b59b6 100%);
}

.linenotes-link-review {
  background: #6366f1;
  color: white;
}

.linenotes-link-review:hover {
  background: #4f46e5;
}

.linenotes-link-play-more {
  background: var(--color-accent);
  color: #000;
  font-weight: bold;
  border: 2px solid #000;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.linenotes-link-play-more:hover {
  background: #facc15;
  color: #000;
  border-color: #000;
}

/* Dark mode border color */
[data-theme="dark"] .linenotes-link-play-more {
  border-color: var(--color-text);
}

[data-theme="dark"] .linenotes-link-play-more:hover {
  border-color: var(--color-text);
}

.linenotes-link-icon {
  width: 20px;
  height: 20px;
}

/* Mobile optimizations for music links */
@media (max-width: 768px) {
  .linenotes-link {
    min-height: 44px; /* Minimum touch target size for mobile */
    min-width: 44px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .linenotes-answer-links {
    gap: var(--spacing-md);
  }
}

/* Instructions */
.linenotes-instructions-panel {
  background: var(--color-bg-gray);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-top: var(--spacing-lg);
}

.linenotes-instructions-panel h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.linenotes-instructions-panel.linenotes-instructions-collapsed h3 {
  margin-bottom: 0;
}

.linenotes-instructions-panel h3:hover {
  opacity: 0.8;
}

.linenotes-instructions-panel h3::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--color-text-light);
  margin-left: var(--spacing-sm);
}

.linenotes-instructions-panel.linenotes-instructions-collapsed h3::after {
  transform: rotate(-90deg);
}

.linenotes-instructions-panel ul {
  list-style: none;
  padding: 0;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
  margin-top: 0;
  opacity: 1;
}

.linenotes-instructions-panel.linenotes-instructions-collapsed ul {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

.linenotes-instructions-panel li {
  padding: var(--spacing-xs) 0;
  color: var(--color-text);
}

.linenotes-instructions-panel li:before {
  content: "• ";
  color: var(--color-accent);
  font-weight: bold;
  margin-right: var(--spacing-xs);
}

/* Error State */
.linenotes-error {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-text);
}

/* ============================================
   LINER NOTES ARCHIVE CALENDAR
   ============================================ */

.site-main--linenotes-archive {
  padding: var(--spacing-lg) var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.linenotes-calendar-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.linenotes-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-md);
}

.linenotes-calendar-month-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  flex: 1;
  text-align: center;
}

.linenotes-calendar-nav-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.linenotes-calendar-nav-btn:hover:not(.disabled) {
  background: var(--color-bg-gray);
  border-color: var(--color-text-light);
}

.linenotes-calendar-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.linenotes-calendar {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.linenotes-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--spacing-sm);
}

.linenotes-calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: var(--spacing-xs) 0;
}

.linenotes-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.linenotes-calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-white);
  position: relative;
  transition: all 0.2s ease;
  cursor: default;
}

/* Unpublished days (no game) - gray in light mode */
.linenotes-calendar-day:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

[data-theme="dark"] .linenotes-calendar-day:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Future dates (yet to occur) - black background with white text in dark mode */
[data-theme="dark"] .linenotes-calendar-day-future:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .linenotes-calendar-day-future:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) .linenotes-calendar-day-number {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .linenotes-calendar-day-future:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-future:not(.linenotes-calendar-day-has-game):not(.linenotes-calendar-day-empty) .linenotes-calendar-day-number {
    color: #ffffff;
  }
}

.linenotes-calendar-day-empty {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  opacity: 0.4;
  cursor: default;
}

.linenotes-calendar-day-has-game {
  cursor: pointer;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
}

/* Published unplayed days - lighter overlay in dark mode */
[data-theme="dark"] .linenotes-calendar-day-has-game:not(.linenotes-calendar-day-success):not(.linenotes-calendar-day-failed):not(.linenotes-calendar-day-in-progress) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  position: relative;
}

/* 30% white overlay for unplayed games in dark mode */
[data-theme="dark"] .linenotes-calendar-day-has-game:not(.linenotes-calendar-day-success):not(.linenotes-calendar-day-failed):not(.linenotes-calendar-day-in-progress)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .linenotes-calendar-day-has-game:not(.linenotes-calendar-day-success):not(.linenotes-calendar-day-failed):not(.linenotes-calendar-day-in-progress) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    position: relative;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-has-game:not(.linenotes-calendar-day-success):not(.linenotes-calendar-day-failed):not(.linenotes-calendar-day-in-progress)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    pointer-events: none;
    z-index: 0;
  }
}

.linenotes-calendar-day-has-game:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.linenotes-calendar-day-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
}

.linenotes-calendar-day-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  text-decoration: none;
}

.linenotes-calendar-day-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

/* Success state - green */
.linenotes-calendar-day-success {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
}

.linenotes-calendar-day-success .linenotes-calendar-day-status {
  background: #22c55e;
  width: 12px;
  height: 12px;
}

.linenotes-calendar-day-success .linenotes-calendar-day-number {
  color: #166534;
  font-weight: 700;
}

[data-theme="dark"] .linenotes-calendar-day-success {
  background: #0f4220 !important;
  border-color: #16a34a !important;
}

[data-theme="dark"] .linenotes-calendar-day-success .linenotes-calendar-day-status {
  background: #16a34a;
}

[data-theme="dark"] .linenotes-calendar-day-success .linenotes-calendar-day-number {
  color: #4ade80;
}

/* Failed state - red */
.linenotes-calendar-day-failed {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

.linenotes-calendar-day-failed .linenotes-calendar-day-status {
  background: #ef4444;
  width: 12px;
  height: 12px;
}

.linenotes-calendar-day-failed .linenotes-calendar-day-number {
  color: #991b1b;
  font-weight: 700;
}

[data-theme="dark"] .linenotes-calendar-day-failed {
  background: #5f1515 !important;
  border-color: #dc2626 !important;
}

[data-theme="dark"] .linenotes-calendar-day-failed .linenotes-calendar-day-status {
  background: #dc2626;
}

[data-theme="dark"] .linenotes-calendar-day-failed .linenotes-calendar-day-number {
  color: #f87171;
}

/* In Progress state - yellow */
.linenotes-calendar-day-in-progress {
  background: #fef3c7 !important;
  border-color: #fbbf24 !important;
}

.linenotes-calendar-day-in-progress .linenotes-calendar-day-status {
  background: #fbbf24;
  width: 12px;
  height: 12px;
}

.linenotes-calendar-day-in-progress .linenotes-calendar-day-number {
  color: #92400e;
  font-weight: 700;
}

[data-theme="dark"] .linenotes-calendar-day-in-progress {
  background: #5a2809 !important;
  border-color: #d97706 !important;
}

[data-theme="dark"] .linenotes-calendar-day-in-progress .linenotes-calendar-day-status {
  background: #d97706;
}

[data-theme="dark"] .linenotes-calendar-day-in-progress .linenotes-calendar-day-number {
  color: #fbbf24;
}

/* Automatic dark mode - same darker colors */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .linenotes-calendar-day-success {
    background: #0f4220 !important;
    border-color: #16a34a !important;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-success .linenotes-calendar-day-status {
    background: #16a34a;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-success .linenotes-calendar-day-number {
    color: #4ade80;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-failed {
    background: #5f1515 !important;
    border-color: #dc2626 !important;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-failed .linenotes-calendar-day-status {
    background: #dc2626;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-failed .linenotes-calendar-day-number {
    color: #f87171;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-in-progress {
    background: #5a2809 !important;
    border-color: #d97706 !important;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-in-progress .linenotes-calendar-day-status {
    background: #d97706;
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-day-in-progress .linenotes-calendar-day-number {
    color: #fbbf24;
  }
}

/* Today state - highlight current date */
.linenotes-calendar-day-today {
  border: 2px solid var(--color-accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb, 59, 130, 246), 0.2);
}

.linenotes-calendar-day-today .linenotes-calendar-day-number {
  font-weight: 700;
  color: var(--color-accent);
}

[data-theme="dark"] .linenotes-calendar-day-today {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb, 59, 130, 246), 0.3);
}

[data-theme="dark"] .linenotes-calendar-day-today .linenotes-calendar-day-number {
  color: var(--color-accent);
}

/* Calendar Legend */
.linenotes-calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  padding: var(--spacing-md);
  background: var(--color-bg-gray);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.linenotes-calendar-legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-text);
}

.linenotes-calendar-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Legend "Not Attempted" - matches unplayed games styling */
.linenotes-calendar-legend-not-attempted {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  position: relative;
}

[data-theme="dark"] .linenotes-calendar-legend-not-attempted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .linenotes-calendar-legend-not-attempted::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .linenotes-calendar-legend-not-attempted {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  :root:not([data-theme="light"]) .linenotes-calendar-legend-not-attempted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
}

@media (max-width: 768px) {
  .linenotes-calendar-wrapper {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .linenotes-calendar {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-xs);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .linenotes-calendar-header {
    gap: 2px;
  }
  
  .linenotes-calendar-grid {
    gap: 2px;
  }
  
  .linenotes-calendar-day {
    padding: 4px;
    min-width: 0;
  }
  
  .linenotes-calendar-nav {
    flex-wrap: wrap;
  }
  
  .linenotes-calendar-month-title {
    width: 100%;
    order: -1;
  }
  
  .linenotes-calendar-nav-btn {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .linenotes-calendar-day-number {
    font-size: 0.75rem;
  }
  
  .linenotes-calendar-legend {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
  }
}

