/* ========================================
   Max's Blog - Clean Editorial Theme
   ======================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --bg: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 680px;
  --header-height: 60px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
}

/* Selection */
::selection {
  background: var(--text);
  color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Accessibility - Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Links */
a {
  color: var(--text);
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

.site-logo:hover {
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

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

.header-nav a:hover {
  color: var(--text);
}

/* Main Content */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-4xl)) var(--space-lg) var(--space-4xl);
}

/* Hero Section */
.hero {
  margin-bottom: var(--space-4xl);
}

.hero__banner-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: var(--space-md);
}

.hero__banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero__title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.hero__description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Posts Section */
.posts-section {
  margin-bottom: var(--space-xs);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.view-all-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--text);
}

/* Posts List */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.post-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover .post-title {
  opacity: 0.7;
}

.post-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.post-icon-svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  color: var(--text-secondary);
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.post-meta .separator {
  margin: 0;
}

.post-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading & Empty States */
.posts-loading,
.posts-empty {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: var(--space-lg) 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
  margin-top: var(--space-lg);
}

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

.footer__copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

/* Page Title */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.01em;
}

/* Article Page */
.article {
  margin-bottom: var(--space-2xl);
}

.article-header {
  margin-bottom: var(--space-xl);
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.article-title .post-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: 600;
  line-height: 1.4;
}

.article-content h1 {
  font-size: 1.25rem;
}

.article-content h2 {
  font-size: 1.125rem;
}

.article-content h3 {
  font-size: 1rem;
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-content a:hover {
  opacity: 0.7;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-xs);
}

.article-content blockquote {
  border-left: 2px solid var(--text-muted);
  padding-left: var(--space-md);
  margin-left: 0;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.article-content strong {
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

.article-content code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.875em;
  background: var(--border);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

.article-content pre {
  background: #1d1f21;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.article-content th,
.article-content td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

/* Task Lists */
.article-content input[type="checkbox"] {
  margin-right: var(--space-xs);
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  vertical-align: middle;
  cursor: default;
}

.article-content input[type="checkbox"]:checked {
  background: var(--text);
  border-color: var(--text);
}

.article-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.article-footer a {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --space-4xl: 4rem;
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .main {
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.25rem;
  }

  .footer__inner {
    padding: 0 var(--space-md);
  }

  /* Category filter mobile */
  .category-filter {
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
  }

  .category-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Daily news items mobile */
  .daily-news-item {
    padding: var(--space-md);
  }

  .daily-news-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .daily-news-headlines li {
    font-size: 0.875rem;
  }

  .daily-ai-news-section .section-title {
    font-size: 0.6875rem;
  }
}

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

/* ========================================
   Category Filter
   ======================================== */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

.category-btn.active {
  color: var(--text);
  background: var(--border);
  border-color: var(--text-secondary);
}

.category-btn svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   Daily AI News - Homepage List
   ======================================== */

.daily-news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.daily-news-item {
  display: block;
  padding: var(--space-lg);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  text-decoration: none;
}

.daily-news-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.daily-news-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.daily-news-item__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
}

.daily-news-item__badge svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.daily-news-item__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.daily-news-headlines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.daily-news-headlines li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.daily-news-headlines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: #f59e0b;
  border-radius: 50%;
}

.daily-news-headlines li:last-child {
  margin-bottom: 0;
}

.daily-news-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.daily-news-item__footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.read-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f59e0b;
  transition: opacity 0.2s ease;
}

.daily-news-item:hover .read-more {
  opacity: 0.8;
}

/* ========================================
   Daily AI News - Homepage Preview (legacy)
   ======================================== */

.daily-ai-news-section {
  margin-bottom: var(--space-4xl);
}

.daily-ai-news-section .section-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.daily-ai-news-section .section-title svg {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}

.daily-ai-news-preview {
  margin-top: var(--space-lg);
}

.daily-ai-news-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.daily-ai-news-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.daily-ai-news-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.daily-ai-news-card__icon svg {
  width: 24px;
  height: 24px;
  color: #f59e0b;
}

.daily-ai-news-card__content {
  flex: 1;
  min-width: 0;
}

.daily-ai-news-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.daily-ai-news-card__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.daily-ai-news-card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.daily-ai-news-card__link:hover {
  opacity: 0.7;
}

/* Responsive for daily news card */
@media (max-width: 480px) {
  .daily-ai-news-card {
    flex-direction: column;
    gap: var(--space-md);
  }

  .daily-ai-news-card__icon {
    width: 40px;
    height: 40px;
  }

  .daily-ai-news-card__icon svg {
    width: 20px;
    height: 20px;
  }

  /* Category filter smaller screens */
  .category-filter {
    gap: 6px;
  }

  .category-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .category-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Daily news items smaller screens */
  .daily-news-item {
    padding: var(--space-sm);
  }

  .daily-news-item__badge {
    font-size: 0.6875rem;
  }

  .daily-news-item__date {
    font-size: 0.75rem;
  }

  .daily-news-headlines li {
    font-size: 0.8125rem;
    padding-left: var(--space-sm);
  }

  .read-more {
    font-size: 0.8125rem;
  }
}

/* ========================================
   Audio Player
   ======================================== */

.audio-player {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.audio-player.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.audio-player__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.audio-btn:hover {
  background: var(--border);
  border-color: var(--text-secondary);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-icon {
  width: 18px;
  height: 18px;
}

.audio-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.audio-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}

.audio-progress-bar {
  flex: 1;
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.audio-progress-bar input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 16px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.audio-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.audio-progress-bar:hover .audio-progress-fill {
  background: var(--text-secondary);
}

.audio-speed {
  position: relative;
  flex-shrink: 0;
}

.audio-speed-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
}

.audio-speed-btn:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

.audio-speed-menu {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 60px;
  box-shadow: var(--shadow);
}

.audio-speed-menu.hidden {
  display: none;
}

.audio-speed-menu button {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.audio-speed-menu button:hover {
  background: var(--border);
  color: var(--text);
}

.audio-speed-menu button.active {
  color: var(--text);
  background: var(--border);
}

/* Adjust main content when audio player is visible */
.audio-player:not(.hidden) ~ .site-header + .main {
  padding-top: calc(var(--header-height) + 60px + var(--space-4xl));
}

/* Audio indicator on blog posts */
.post-audio-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.post-audio-indicator svg {
  width: 14px;
  height: 14px;
}

.post-quick-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.post-quick-play:hover {
  background: var(--border);
  color: var(--text);
  border-color: var(--text-secondary);
}

.post-quick-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

/* Responsive audio player */
@media (max-width: 640px) {
  .audio-player__inner {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .audio-btn {
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
  }

  .audio-icon {
    width: 18px;
    height: 18px;
  }

  .audio-time {
    font-size: 0.6875rem;
    min-width: 32px;
  }

  .audio-speed-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    min-width: 44px;
    min-height: 44px;
  }

  .audio-speed-menu {
    right: 0;
    left: auto;
    min-width: 60px;
  }

  /* Post title with audio icon - ensure proper stacking */
  .article-title {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .article-title .post-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

/* Small phones - 480px and below */
@media (max-width: 480px) {
  .audio-player__inner {
    padding: var(--space-xs) var(--space-sm);
    gap: var(--space-xs);
    flex-wrap: nowrap;
  }

  .audio-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .audio-icon {
    width: 18px;
    height: 18px;
  }

  .audio-progress {
    gap: var(--space-xs);
  }

  .audio-time {
    font-size: 0.625rem;
    min-width: 28px;
  }

  .audio-progress-bar {
    height: 6px;
  }

  .audio-progress-bar input[type="range"] {
    height: 44px;
  }

  .audio-speed-btn {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs);
    font-size: 0.625rem;
  }

  .audio-speed-menu {
    right: 0;
    left: auto;
    min-width: 55px;
    padding: 2px;
  }

  .audio-speed-menu button {
    padding: 6px var(--space-xs);
    font-size: 0.625rem;
    min-height: 32px;
  }

  /* Blog list view with audio indicators */
  .post-item {
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .post-icon {
    width: 24px;
    height: 24px;
  }

  .post-icon-svg {
    width: 16px;
    height: 16px;
  }

  .post-title {
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
  }

  /* Audio indicator in post list */
  .post-audio-indicator {
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .post-audio-indicator svg {
    width: 12px;
    height: 12px;
  }

  .post-quick-play {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .post-quick-play svg {
    width: 12px;
    height: 12px;
  }

  /* Post meta adjustments */
  .post-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .post-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
  }

  /* Adjust main content padding when audio player visible */
  .audio-player:not(.hidden) ~ .site-header + .main {
    padding-top: calc(var(--header-height) + 56px + var(--space-2xl));
  }
}

/* Extra small phones - 375px and below (iPhone SE) */
@media (max-width: 375px) {
  .audio-player__inner {
    padding: var(--space-xs) var(--space-sm);
    gap: 6px;
  }

  .audio-btn {
    width: 44px;
    height: 44px;
  }

  .audio-icon {
    width: 16px;
    height: 16px;
  }

  .audio-time {
    font-size: 0.625rem;
    min-width: 26px;
  }

  .audio-speed-btn {
    font-size: 0.625rem;
    min-width: 44px;
  }

  .audio-speed-menu {
    min-width: 50px;
  }

  .post-title {
    font-size: 0.9375rem;
  }

  .post-excerpt {
    font-size: 0.8125rem;
  }
}

/* Very small phones - 320px and below */
@media (max-width: 320px) {
  .audio-player__inner {
    padding: 6px var(--space-xs);
    gap: 4px;
  }

  .audio-btn {
    width: 44px;
    height: 44px;
  }

  .audio-icon {
    width: 16px;
    height: 16px;
  }

  .audio-time {
    font-size: 0.5625rem;
    min-width: 24px;
  }

  .audio-speed-btn {
    font-size: 0.5625rem;
    min-width: 44px;
    padding: 4px;
  }

  .audio-speed-menu {
    min-width: 45px;
  }

  .audio-speed-menu button {
    font-size: 0.5625rem;
    padding: 4px;
  }

  .post-item {
    gap: var(--space-xs);
  }

  .post-icon {
    width: 20px;
    height: 20px;
  }

  .post-icon-svg {
    width: 14px;
    height: 14px;
  }

  .post-title {
    font-size: 0.875rem;
  }

  .post-meta {
    font-size: 0.6875rem;
  }

  .post-excerpt {
    font-size: 0.75rem;
  }

  .post-quick-play {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* Print */
@media print {
  .site-header,
  .footer,
  .audio-player {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .main {
    padding-top: var(--space-xl);
  }
}
