/* ==========================================================================
   FONT FACE DECLARATIONS
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../../fonts/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.ttf")
    format("truetype");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../../fonts/Source_Serif_4/SourceSerif4-Italic-VariableFont_opsz,wght.ttf")
    format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf")
    format("truetype");
}

/* ==========================================================================
   CSS VARIABLES - ROOT & THEME
   ========================================================================== */

:root {
  color-scheme: dark;
  --color-background: #050505;
  --color-surface: #101012;
  --color-surface-elevated: #16161a;
  --color-border: #1f1f24;
  --color-text: #f4f4f5;
  --color-text-secondary: #c7c7cb;
  --color-accent: #f0a45c;
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.24);
  --radius-base: 12px;
  --radius-lg: 18px;
  --font-family-serif: "Source Serif 4", "Palatino", "Book Antiqua", Georgia,
    serif;
  --font-family-secondary: "Inter", "SF Pro Text", "Helvetica Neue", Arial,
    sans-serif;
  --layout-max-width: 1320px;
  --layout-gutter: clamp(1.25rem, 2vw, 2.25rem);
}

/* Light Mode Variables */
[data-theme="light"] {
  color-scheme: light;
  --color-background: #fafafa;
  --color-surface: #ffffff;
  --color-surface-elevated: #f5f5f5;
  --color-border: #e5e5e5;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-accent: #b8860b;
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BASE / RESET STYLES
   ========================================================================== */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-secondary);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-family-serif);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

button:disabled {
  cursor: not-allowed;
}

button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 50%, transparent);
  outline-offset: 3px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
}

.site-header,
.site-footer {
  padding: 0 var(--layout-gutter);
}

.site-main {
  flex: 1;
  padding: clamp(1.5rem, 4vw, 3rem) var(--layout-gutter)
    clamp(3rem, 6vw, 4rem);
}

.content-width {
  width: min(100%, var(--layout-max-width));
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

::selection {
  background-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
  color: var(--color-text);
}

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

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
}

.site-header,
.site-footer {
  padding: 0 var(--layout-gutter);
}

.site-main {
  flex: 1;
  padding: clamp(1.5rem, 4vw, 3rem) var(--layout-gutter)
    clamp(3rem, 6vw, 4rem);
}

.content-width {
  width: min(100%, var(--layout-max-width));
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: relative;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding: clamp(0.75rem, 1.2vw, 1.1rem) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-base);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(240, 164, 92, 0.18), transparent);
  border: 1px solid rgba(240, 164, 92, 0.42);
  border-radius: 28% 72% 68% 32% / 27% 31% 69% 73%;
  color: var(--color-accent);
}

.brand-mark svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.brand-text {
  font-family: var(--font-family-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* Logo image styles */
.brand-image {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  max-height: 2.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Show/hide logos based on theme */
.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: block;
}

[data-theme="light"] .brand-logo-light {
  display: block;
}

[data-theme="light"] .brand-logo-dark {
  display: none;
}

.primary-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding-bottom: 0.35rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--color-accent) 70%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

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

.nav-link.is-active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-background) 68%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.nav-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}

.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 38%, transparent);
  background: color-mix(in srgb, var(--color-surface-elevated) 72%, transparent);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
}

.nav-close:hover,
.nav-close:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent) 65%, transparent);
  background: color-mix(in srgb, var(--color-surface-elevated) 90%, transparent);
}

.nav-toggle-btn {
  display: none;
  position: relative;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle-btn .nav-icon {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-toggle-btn:hover,
.nav-toggle-btn:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  color: var(--color-text);
}

.nav-icon--close {
  opacity: 0;
  transform: scale(0.8);
}

.nav-icon--menu {
  opacity: 1;
}

@media (max-width: 480px) {
  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .icon-button,
  .nav-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .icon-button svg,
  .nav-close svg {
    width: 18px;
    height: 18px;
  }

  .nav-toggle-btn .nav-icon {
    width: 20px;
    height: 20px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions > * {
  flex-shrink: 0;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  color: var(--color-text);
}

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.icon-button,
.theme-toggle {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle {
  padding: 0;
  border-radius: 999px;
  isolation: isolate;
}

.theme-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
  outline-offset: 4px;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 60px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  padding: 3px;
  position: relative;
}

.toggle-thumb {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 8px 16px rgba(240, 164, 92, 0.3);
  transform: translateX(27px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Light Mode Toggle State */
[data-theme="light"] .toggle-thumb {
  transform: translateX(0);
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.25);
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.search-form-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--layout-gutter);
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0;
  transition: max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
}

.search-form-wrapper.is-active {
  max-height: 120px;
  transform: translateY(0);
  opacity: 1;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.search-form input {
  flex: 1;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-form input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
}

.search-form input::placeholder {
  color: rgba(244, 244, 245, 0.45);
}

[data-theme="light"] .search-form input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.search-submit {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
}

.search-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ==========================================================================
   TICKER BAR
   ========================================================================== */

.header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Reading Progress Indicator */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-accent);
  z-index: 101;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(240, 164, 92, 0.3);
}

[data-theme="light"] .reading-progress {
  box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
}

/* Scroll to Top Button - Battery Style */
.scroll-to-top {
  position: fixed;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 2.5rem);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 99;
  overflow: hidden;
}

/* Ocean wave animation - S-curve pattern */
@keyframes ocean-wave {
  0%, 100% {
    clip-path: polygon(
      0% 0%,
      25% 0.5%,
      50% 0%,
      75% -0.5%,
      100% 0%,
      100% 100%,
      0% 100%
    );
  }
  25% {
    clip-path: polygon(
      0% -0.5%,
      25% 0%,
      50% 0.5%,
      75% 0%,
      100% -0.5%,
      100% 100%,
      0% 100%
    );
  }
  50% {
    clip-path: polygon(
      0% 0%,
      25% -0.5%,
      50% 0%,
      75% 0.5%,
      100% 0%,
      100% 100%,
      0% 100%
    );
  }
  75% {
    clip-path: polygon(
      0% 0.5%,
      25% 0%,
      50% -0.5%,
      75% 0%,
      100% 0.5%,
      100% 100%,
      0% 100%
    );
  }
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 85%, var(--color-accent) 15%);
  outline: none;
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Battery Fill Indicator */
.scroll-to-top {
  --battery-fill: 0%;
}

.scroll-to-top::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--battery-fill, 0%) + 2px);
  background: linear-gradient(
    to top,
    var(--color-accent),
    color-mix(in srgb, var(--color-accent) 80%, transparent)
  );
  transition: height 0.2s ease-out;
  z-index: 0;
  transform-origin: bottom center;
  overflow: visible;
  border-radius: 0 0 10px 10px;
  clip-path: polygon(
    0% 0%,
    25% 0%,
    50% 0%,
    75% 0%,
    100% 0%,
    100% 100%,
    0% 100%
  );
}

/* Ocean wave effect when charging - S-curve pattern */
.scroll-to-top.is-charging::before {
  animation: ocean-wave 1.2s ease-in-out infinite;
  overflow: visible;
}

/* Arrow Icon */
.scroll-to-top-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.3s ease, transform 0.2s ease;
}

/* Arrow turns black when fully charged */
.scroll-to-top.is-fully-charged .scroll-to-top-icon {
  stroke: #1a1a1a;
}

[data-theme="light"] .scroll-to-top.is-fully-charged .scroll-to-top-icon {
  stroke: #1a1a1a;
}

.scroll-to-top:hover .scroll-to-top-icon,
.scroll-to-top:focus-visible .scroll-to-top-icon {
  stroke: var(--color-text);
  transform: translateY(-2px);
}

/* Override hover when fully charged */
.scroll-to-top.is-fully-charged:hover .scroll-to-top-icon,
.scroll-to-top.is-fully-charged:focus-visible .scroll-to-top-icon {
  stroke: #1a1a1a;
  transform: translateY(-2px);
}

/* Light Mode Adjustments */
[data-theme="light"] .scroll-to-top {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-to-top:hover,
[data-theme="light"] .scroll-to-top:focus-visible {
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
  }

  .scroll-to-top-icon {
    width: 20px;
    height: 20px;
  }
}

.ticker-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  min-height: 46px;
}

.ticker-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem clamp(1rem, 2vw, 1.5rem);
  background: #ffffff;
  flex-shrink: 0;
  z-index: 1;
  min-height: 100%;
  box-sizing: border-box;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: ticker-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ticker-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

.ticker-label-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.ticker-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem clamp(1rem, 2vw, 1.5rem);
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
  width: max-content;
}

.ticker-content:hover {
  animation-play-state: paused;
}

/* Hide TradingView copyright */
.tradingview-widget-copyright {
  display: none !important;
}

/* ==========================================================================
   IMMERSIVE VIDEO PLAYER
   ========================================================================== */

.video-embed {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #000;
  font-family: var(--font-family-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed__surface {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-page .site-main {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: flex-start;
}

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

.video-player-shell {
  background: var(--color-surface-elevated);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Full-page video embed styles (for dedicated video pages) */
.video-embed:not(.video-embed--inline) .video-player-shell {
  background: #000;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
  gap: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  position: relative;
  align-items: flex-start;
}

/* Inline video embed styles (for posts/content) */
/* Complete spacing reset to eliminate all blank spaces above/below */
.video-embed--inline {
  background: transparent;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  overflow: hidden;
  line-height: 0; /* Prevent line-height from adding space */
  font-size: 0; /* Reset font-size to prevent spacing */
}

/* Reset any WordPress content area defaults that might add spacing */
.entry-content .video-embed--inline,
.post-content .video-embed--inline,
.single-content-body .video-embed--inline,
.wp-block-group .video-embed--inline,
.wp-block-embed .video-embed--inline,
p .video-embed--inline {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Prevent parent paragraphs from adding spacing */
p:has(.video-embed--inline) {
  margin: 0 !important;
  padding: 0 !important;
}

.video-embed--inline .video-embed__surface {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.video-embed--inline .video-player-shell {
  background: #000;
  border-radius: 0;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  gap: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  position: relative;
  line-height: 0;
  overflow: hidden;
}

.video-frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Full-page video frame */
.video-embed:not(.video-embed--inline) .video-frame {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

/* Inline video frame (in posts) */
.video-embed--inline .video-frame {
  width: 100%;
  height: 0;
  padding: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  margin: 0;
  display: block;
  overflow: hidden;
  line-height: 0;
}

.video-feed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.video-display,
.live-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  display: block;
}

.video-display {
  background: #000;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.video-display video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.live-embed {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}

.video-player-shell[data-mode='live'] .video-display {
  opacity: 0;
  pointer-events: none;
}

.video-player-shell[data-mode='live'] .live-embed {
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-frame:hover .player-overlay,
.video-frame.is-paused .player-overlay {
  opacity: 1;
}

.video-frame:not(:hover):not(.is-paused) .player-overlay {
  opacity: 0;
}

.player-overlay:has(:focus-visible) {
  opacity: 1;
}

.player-center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.center-play-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.center-play-button:hover {
  transform: scale(1.1);
}

.center-play-button:active {
  transform: scale(0.95);
}

.center-play-button svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.player-controls-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  padding: 0 12px 8px;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 4px;
  margin-bottom: 8px;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: visible;
}

.progress-container:hover {
  height: 5px;
}

.progress-loaded {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  width: 0;
  pointer-events: none;
  z-index: 1;
  transition: width 0.1s ease;
  border-radius: 2px;
}

.progress-hover-preview {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  background: var(--color-accent);
  width: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
  transition: width 0.05s ease;
  border-radius: 2px;
}

.progress-bar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  margin: 0;
  padding: 0;
}

.progress-bar::-webkit-slider-runnable-track {
  background: transparent;
  height: 100%;
  border: none;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  margin-top: -4.5px;
}

.progress-container:hover .progress-bar::-webkit-slider-thumb,
.progress-bar:active::-webkit-slider-thumb {
  opacity: 1;
}

.progress-bar::-moz-range-track {
  background: transparent;
  height: 100%;
  border: none;
}

.progress-bar::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.progress-container:hover .progress-bar::-moz-range-thumb,
.progress-bar:active::-moz-range-thumb {
  opacity: 1;
}

.progress-bar::-ms-track {
  background: transparent;
  height: 100%;
  border: none;
  color: transparent;
}

.progress-bar::-ms-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  cursor: pointer;
}

.progress-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  background: var(--color-accent);
  width: 0;
  pointer-events: none;
  z-index: 2;
  transition: width 0.05s linear;
  border-radius: 2px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
}

.control-btn svg path {
  fill: currentColor;
}

.control-btn svg path[fill="none"] {
  fill: none;
}

.control-btn.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-accent);
}

#captionToggle.is-active {
  background: rgba(240, 164, 92, 0.2);
  color: var(--color-accent);
}

.time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 4px;
  user-select: none;
}

.time-separator {
  color: rgba(255, 255, 255, 0.6);
}

.volume-control {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.2s ease, margin 0.2s ease;
}

.controls-left:hover .volume-control,
.volume-control:has(input:focus) {
  width: 100px;
  margin-left: 8px;
}

.volume-bar {
  width: 100%;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.volume-bar:hover::-webkit-slider-thumb,
.volume-bar:active::-webkit-slider-thumb {
  opacity: 1;
}

.volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.volume-bar:hover::-moz-range-thumb,
.volume-bar:active::-moz-range-thumb {
  opacity: 1;
}

#captionToggle,
#settingsBtn {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding: 0 8px;
  width: auto;
  min-width: 36px;
}

#muteIcon #muteStrike {
  display: none;
}

#muteBtn.is-muted #muteStrike {
  display: block;
}

.overlay-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.overlay-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #f87171;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

.player-overlay .player-headline {
  pointer-events: auto;
  max-width: 540px;
}

.player-headline h1 {
  margin: 0;
  font-family: var(--font-family-serif);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: #fff;
}

.player-headline p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--color-surface) 70%, rgba(0, 0, 0, 0.6));
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  border-radius: 1rem;
  padding: clamp(0.85rem, 2vw, 1.1rem);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.primary-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.control-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  background: var(--color-surface);
  color: var(--color-text);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.control-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.control-button:hover,
.control-button:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  outline: none;
}

.timeline {
  flex: 1;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.timeline::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.35);
  cursor: pointer;
}

.timeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.35);
  cursor: pointer;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.secondary-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
}

.volume-slider {
  flex: 1;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.volume-slider::-webkit-slider-thumb,
.volume-slider::-moz-range-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
}

.player-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.player-action {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-action:hover,
.player-action:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* Aspect Ratio Settings Menu */
.settings-menu {
  position: absolute;
  bottom: 60px;
  right: 12px;
  width: 220px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px;
  z-index: 20;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.settings-menu-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.settings-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.settings-menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  text-align: left;
  width: 100%;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-item.is-active {
  background: rgba(240, 164, 92, 0.15);
  color: var(--color-accent);
}

.settings-check {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* Next Video Flyer - REMOVED */
.next-video-flyer {
  position: absolute;
  bottom: 60px;
  right: 12px;
  width: min(400px, calc(100% - 24px));
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 12px;
  z-index: 20;
  pointer-events: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.next-video-content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.next-video-preview {
  position: relative;
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.next-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.next-video-preview:hover .next-video-overlay {
  opacity: 1;
}

.next-video-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.next-video-play-btn:hover {
  transform: scale(1.1);
}

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

.next-video-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-video-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.next-video-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.next-video-countdown {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
}

.next-video-skip {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.next-video-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Playlist Panel - YouTube-style sidebar */
.playlist-panel {
  width: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  min-width: 0;
}

.video-player-shell:has(#playlistPanel:not([hidden])) .playlist-panel,
.playlist-panel:not([hidden]) {
  width: 402px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player-shell:has(#playlistPanel:not([hidden])) .video-frame {
  max-width: calc(100% - 402px);
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.playlist-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playlist-toggle-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.playlist-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.playlist-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
}

.playlist-item {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--color-accent);
}

.playlist-item-thumb {
  width: 168px;
  height: 94px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.playlist-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.playlist-item-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.playlist-item-channel {
  margin: 0 0 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  /* Full-page video embed mobile styles */
  .video-embed:not(.video-embed--inline) {
    padding: 0;
  }

  .video-embed:not(.video-embed--inline) .video-embed__surface {
    width: 100%;
    height: 100vh;
  }

  .video-embed:not(.video-embed--inline) .video-player-shell {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    max-width: 100vw;
  }

  .video-embed:not(.video-embed--inline) .video-frame {
    width: 100vw;
    flex: 0 0 auto;
    padding-bottom: 56.25%;
    max-height: calc(100vh - 60px);
  }

  /* Inline video embed mobile styles (in posts) */
  .video-embed--inline {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0;
    height: auto;
    line-height: 0;
    font-size: 0;
  }

  .video-embed--inline .video-embed__surface {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .video-embed--inline .video-player-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .video-embed--inline .video-frame {
    width: 100%;
    padding: 0;
    padding-bottom: 56.25%;
    margin: 0 !important;
    line-height: 0;
  }

  /* Reset WordPress content spacing on mobile */
  .entry-content .video-embed--inline,
  .post-content .video-embed--inline,
  .single-content-body .video-embed--inline {
    margin: 0 !important;
    padding: 0 !important;
  }

  p:has(.video-embed--inline) {
    margin: 0 !important;
    padding: 0 !important;
  }

  .video-embed .video-frame > * {
    width: 100%;
    height: 100%;
  }

  .time-display {
    font-size: 12px;
  }

  .control-btn {
    width: 32px;
    height: 32px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .next-video-flyer {
    width: calc(100% - 24px);
    right: 12px;
    left: 12px;
  }

  .video-player-shell:has(#playlistPanel:not([hidden])) .playlist-panel,
  .playlist-panel:not([hidden]) {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
  }

  .video-player-shell:has(#playlistPanel:not([hidden])) .video-frame {
    max-width: 0;
    opacity: 0;
  }
}

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

.meta-card {
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: 1rem;
  padding: 1rem;
}

.meta-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.meta-card p {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.video-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.segment-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

.segment-list strong {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.segment-list span {
  color: var(--color-text);
  font-weight: 600;
}

.source-form {
  display: grid;
  gap: 0.75rem;
}

.source-form label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.source-form select,
.source-form input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.65rem 0.85rem;
}

.source-form button {
  border-radius: 0.75rem;
  border: none;
  background: var(--color-accent);
  color: #101012;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.source-form button:hover {
  transform: translateY(-1px);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  background: rgba(16, 16, 18, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease;
  line-height: 1.4;
}

.ticker-item:hover {
  background: rgba(16, 16, 18, 0.6);
}

/* Ticker light mode overrides */
[data-theme="light"] .ticker-indicator {
  background: #ffffff;
}

[data-theme="light"] .ticker-item {
  background: rgba(184, 134, 11, 0.15);
}

[data-theme="light"] .ticker-item:hover {
  background: rgba(184, 134, 11, 0.25);
}

/* Ticker text - consistent sizing for news items */
.ticker-text {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Ticker item link - ensure consistent font sizing */
.ticker-item a {
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

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

/* Ensure ticker-text inside link matches link font-size */
.ticker-item a .ticker-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.ticker-symbol {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.ticker-value {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ticker-arrow {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0.15rem;
}

.ticker-arrow.up {
  color: #22c55e;
}

.ticker-arrow.down {
  color: #ef4444;
}

.ticker-change {
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.ticker-change.up {
  color: #22c55e;
}

.ticker-change.down {
  color: #ef4444;
}

.ticker-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 244, 245, 0.2);
  font-size: 0.85rem;
  font-weight: 300;
  margin: 0 0.4rem;
  flex-shrink: 0;
  line-height: 1;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "latest featured top";
  align-items: stretch;
}

.hero-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  position: relative;
}

.hero-column:not(.featured-story) {
  background: none;
  border: none;
  padding: 0;
}

.featured-story {
  grid-area: featured;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0 clamp(1rem, 1.8vw, 1.5rem);
  border-radius: 0;
  overflow: visible;
  gap: 0;
}

.latest-news {
  grid-area: latest;
}

.top-news {
  grid-area: top;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.latest-news .section-heading::after,
.top-news .section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.section-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 164, 92, 0.85);
}

.section-link::after {
  content: " ►";
}

[data-theme="light"] .section-link {
  color: #1a1a1a;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.section-bullet {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(240, 164, 92, 0.12);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--color-accent);
}

.featured-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px 8px 0 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(240, 164, 92, 0.35),
      transparent 55%
    ),
    linear-gradient(120deg, rgba(34, 34, 40, 0.4), rgba(10, 10, 14, 0.8));
}

.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.95);
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 25%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.0rem, 1vw, 2.0rem);
  padding-top: clamp(1.1rem, 2.8vw, 1.5rem);
  background: linear-gradient(
    180deg,
    rgba(16, 16, 18, 0.92) 0%,
    rgba(8, 8, 10, 0.92) 100%
  );
  margin-top: calc(-1 * min(0.5rem, 8px));
}

.featured-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.featured-title a:hover {
  color: rgba(255, 255, 255, 1);
}

.featured-excerpt {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

.featured-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.meta-separator {
  font-size: 1em;
  line-height: 1;
  color: rgba(244, 244, 245, 0.35);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 1rem;
  padding: 0 0 1.75rem 0;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(240, 164, 92, 0.18),
    rgba(240, 164, 92, 0.04) 65%,
    transparent 100%
  );
}

[data-theme="light"] .timeline-item::before {
  background: linear-gradient(
    to right,
    rgba(184, 134, 11, 0.25),
    rgba(184, 134, 11, 0.08) 65%,
    transparent 100%
  );
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1.4rem;
  bottom: -1.75rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(240, 164, 92, 0.4),
    rgba(240, 164, 92, 0)
  );
}

[data-theme="light"] .timeline-item::after {
  background: linear-gradient(
    to bottom,
    rgba(184, 134, 11, 0.5),
    rgba(184, 134, 11, 0)
  );
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item:last-child {
  padding-bottom: 0.5rem;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  justify-self: center;
  align-self: flex-start;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(240, 164, 92, 0.08);
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-card time {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(244, 244, 245, 0.45);
}

[data-theme="light"] .timeline-card time {
  color: rgba(26, 26, 26, 0.7);
}

.timeline-card a {
  font-family: var(--font-family-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.timeline-card a:hover,
.timeline-card a:focus-visible {
  color: var(--color-accent);
}

.top-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.top-news-item {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(240, 164, 92, 0.14);
}

[data-theme="light"] .top-news-item {
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.news-thumb {
  position: relative;
  border-radius: 0;
  background: linear-gradient(150deg, rgba(240, 164, 92, 0.38), rgba(14, 14, 18, 0.85));
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transform: scale(1.03);
}

.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0) 40%,
    rgba(5, 5, 7, 0.75)
  );
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.news-content a {
  font-family: var(--font-family-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.news-content a:hover,
.news-content a:focus-visible {
  color: var(--color-accent);
}

.news-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 245, 0.45);
}

.news-meta .category-link {
  font-size: inherit;
  font-family: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-meta .category-link:hover,
.news-meta .category-link:focus-visible {
  opacity: 0.8;
  color: inherit;
}

[data-theme="light"] .news-meta {
  color: rgba(26, 26, 26, 0.7);
}

.top-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.5rem)
    clamp(1.75rem, 3vw, 2.75rem);
  background: var(--color-surface);
  box-shadow: none;
}

[data-theme="light"] .site-footer {
  background: #101012;
}

/* Footer elements in light mode - keep dark footer styling */
[data-theme="light"] .footer-logo {
  color: #f4f4f5;
}

[data-theme="light"] .footer-name {
  color: #f4f4f5;
}

[data-theme="light"] .footer-heading {
  color: rgba(244, 244, 245, 0.8);
}

[data-theme="light"] .footer-links a {
  color: rgba(244, 244, 245, 0.9);
}

[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-links a:focus-visible {
  color: #f0a45c;
}

[data-theme="light"] .footer-newsletter .newsletter-card {
  background: color-mix(in srgb, #101012 88%, rgba(16, 16, 18, 0.45));
}

[data-theme="light"] .footer-social .social-link {
  background: #16161a;
  border-color: #1f1f24;
  color: rgba(244, 244, 245, 0.8);
}

[data-theme="light"] .footer-social .social-link:hover,
[data-theme="light"] .footer-social .social-link:focus-visible {
  background: color-mix(in srgb, #16161a 70%, #f0a45c 30%);
  border-color: #f0a45c;
  color: #f4f4f5;
}

[data-theme="light"] .footer-copy {
  color: rgba(244, 244, 245, 0.7);
}

[data-theme="light"] .footer-legal a {
  color: rgba(244, 244, 245, 0.8);
}

[data-theme="light"] .footer-legal a:hover,
[data-theme="light"] .footer-legal a:focus-visible {
  color: #f0a45c;
}

[data-theme="light"] .footer-newsletter .newsletter-title,
[data-theme="light"] .footer-newsletter .newsletter-copy,
[data-theme="light"] .footer-newsletter .newsletter-meta {
  color: rgba(244, 244, 245, 0.9);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 920px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 164, 92, 0.4),
    transparent
  );
}

.footer-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 2.75rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.footer-content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.footer-logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-base);
}

.footer-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(240, 164, 92, 0.2), transparent);
  border: 1px solid rgba(240, 164, 92, 0.36);
  border-radius: 999px;
  color: var(--color-accent);
}

.footer-mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.footer-logo-img {
  max-height: 2.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo-image {
  display: flex;
  align-items: center;
}

.footer-logo-light {
  display: none;
}

.footer-logo-dark {
  display: block;
}

[data-theme="light"] .footer-logo-light {
  display: block;
}

[data-theme="light"] .footer-logo-dark {
  display: none;
}

.footer-name {
  font-family: var(--font-family-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-mobile {
  display: none;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(244, 244, 245, 0.6);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 245, 0.45);
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 245, 0.6);
}

.footer-separator {
  color: rgba(244, 244, 245, 0.3);
  font-size: 0.85rem;
  line-height: 1;
  margin: 0 0.25rem;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-accent);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-newsletter .footer-social {
  margin-top: 0;
}

.footer-newsletter .newsletter-card {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) 0;
  gap: 0.9rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  padding-top: 0.5rem;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  transform: translateY(-2px);
  outline: none;
}

.footer-social .social-link svg {
  width: 20px;
  height: 20px;
}


.footer-newsletter .newsletter-title {
  font-size: 0.95rem;
}

.footer-newsletter .newsletter-copy {
  font-size: 0.85rem;
  line-height: 1.5;
}

.metro-newsletter-mobile {
  display: none;
}

/* ==========================================================================
   VIDEOS SECTION
   ========================================================================== */

.top-videos {
  margin-top: clamp(3rem, 6vw, 4.25rem);
}

.videos-shell {
  background: linear-gradient(
    130deg,
    rgba(240, 164, 92, 0.08),
    rgba(16, 16, 18, 0.2) 55%,
    rgba(12, 12, 17, 0.45)
  );
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

[data-theme="light"] .videos-shell {
  box-shadow: none;
  background: var(--color-surface-elevated);
}

.video-hint {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(240, 164, 92, 0.4);
}

.hint-dot:nth-child(2) {
  background: rgba(240, 164, 92, 0.85);
}

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

/* ==========================================================================
   METRO SECTION
   ========================================================================== */

.metro-block {
  margin-top: clamp(3.5rem, 7vw, 4.75rem);
}

.metro-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.metro-shell {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: none;
}

.metro-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
  position: relative;
}

.metro-columns::after {
  content: "";
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.2rem);
  bottom: clamp(0.75rem, 2vw, 1.2rem);
  left: 57.5%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(240, 164, 92, 0),
    rgba(240, 164, 92, 0.25) 18%,
    rgba(240, 164, 92, 0.25) 82%,
    rgba(240, 164, 92, 0)
  );
  transform: translateX(-50%);
}

.metro-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.metro-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.metro-feature {
  background: color-mix(in srgb, var(--color-surface-elevated) 92%, rgba(16, 16, 18, 0.28));
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
}

[data-theme="light"] .metro-feature {
  box-shadow: none;
}

.metro-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.metro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.96);
}

.metro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 10, 0) 50%,
    rgba(6, 6, 10, 0.78)
  );
}

.metro-tag {
  position: absolute;
  bottom: 1.1rem;
  left: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(240, 164, 92, 0.8);
  color: rgba(18, 18, 20, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.metro-body {
  padding: clamp(1.35rem, 2.1vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.metro-title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.22;
  margin: 0;
}

.metro-title a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.metro-title a:hover {
  color: var(--color-accent);
}

.metro-excerpt {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 48ch;
}

.metro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.55);
}

.metro-meta strong {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.metro-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.metro-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(240, 164, 92, 0.14);
}

[data-theme="light"] .metro-item {
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.metro-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metro-item-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(12, 12, 16, 0.6);
}

.metro-item-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.96);
}

.metro-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metro-item a {
  font-family: var(--font-family-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.metro-item a:hover,
.metro-item a:focus-visible {
  color: var(--color-accent);
}

.metro-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  min-width: 280px;
}

.newsletter-card {
  background: color-mix(in srgb, var(--color-surface) 88%, rgba(16, 16, 18, 0.45));
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.newsletter-title {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.newsletter-copy {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

.newsletter-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 164, 92, 0.25);
  background: rgba(8, 8, 10, 0.75);
  color: var(--color-text);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(244, 244, 245, 0.45);
}

.newsletter-form input:focus-visible {
  outline: 2px solid rgba(240, 164, 92, 0.6);
  outline-offset: 3px;
}

.newsletter-form button {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--color-accent) 82%, rgba(240, 164, 92, 0.15));
  color: #121214;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-form button .subscribe-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: none;
}

.newsletter-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.45);
  line-height: 1.5;
}

/* New Section */
.new-section-block {
  margin-top: clamp(3.5rem, 7vw, 4.75rem);
}

.new-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.new-section-shell {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: none;
}

.new-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.new-section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.new-section-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
  position: relative;
}

.new-section-columns::after {
  content: "";
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.2rem);
  bottom: clamp(0.75rem, 2vw, 1.2rem);
  left: 57.5%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(240, 164, 92, 0),
    rgba(240, 164, 92, 0.25) 18%,
    rgba(240, 164, 92, 0.25) 82%,
    rgba(240, 164, 92, 0)
  );
}

.new-section-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  min-width: 280px;
}

.videos-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.videos-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.video-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0 0 0.25rem 0;
  margin: 0 0 1.3rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 164, 92, 0.8) rgba(240, 164, 92, 0.1);
}

.video-carousel::-webkit-scrollbar {
  height: 6px;
}

.video-carousel::-webkit-scrollbar-track {
  background: rgba(240, 164, 92, 0.12);
  border-radius: 999px;
}

.video-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    rgba(240, 164, 92, 0.9),
    rgba(240, 164, 92, 0.65)
  );
  border-radius: 999px;
}

.video-card {
  background: color-mix(in srgb, var(--color-surface) 80%, rgba(16, 16, 18, 0.3));
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.9rem;
  min-height: 100%;
  scroll-snap-align: start;
}

.video-thumb {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, rgba(240, 164, 92, 0.28), rgba(11, 11, 14, 0.9));
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.94);
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.7);
  color: var(--color-accent);
  border: 1px solid rgba(240, 164, 92, 0.42);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.video-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(5, 5, 7, 0.88) 0%,
    rgba(5, 5, 7, 0.55) 40%,
    transparent 100%
  );
}

.video-info {
  padding-top: 0.85rem;
}

.video-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.video-title a {
  color: var(--color-text);
}

.video-title a:hover,
.video-title a:focus-visible {
  color: var(--color-accent);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Responsive adjustments */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "featured featured"
      "latest top";
  }

  .top-news-list {
    gap: 1rem;
  }

  .top-news-item {
    grid-template-columns: 1fr 88px;
    align-items: start;
  }

  .video-carousel {
    grid-auto-columns: minmax(240px, 320px);
  }

  .metro-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  }

  .metro-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .new-section-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  }

  .new-section-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .header-bar {
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
  }

  .nav-list {
    gap: clamp(0.75rem, 1.4vw, 1.4rem);
  }
}

@media (max-width: 900px) {
  .header-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    left: auto;
    width: min(320px, 82vw);
    background: color-mix(in srgb, var(--color-surface) 94%, transparent);
    backdrop-filter: blur(12px);
    border-left: 1px solid color-mix(in srgb, var(--color-accent) 18%, transparent);
    padding: clamp(1.75rem, 6vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .nav-toggle-btn {
    display: grid;
  }

  .ticker-indicator {
    padding: 0.55rem 0.75rem;
    gap: 0.4rem;
    min-height: 100%;
  }

  .ticker-dot {
    width: 6px;
    height: 6px;
  }

  .ticker-label-text {
    font-size: 0.65rem;
  }

  .ticker-content {
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    animation-duration: 25s;
    min-width: max-content;
  }

  .ticker-item {
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }

  .ticker-text {
    font-size: 0.85rem;
  }
  
  .ticker-item a {
    font-size: 0.85rem;
  }

  .ticker-item a .ticker-text {
    font-size: 0.85rem;
  }

  .ticker-symbol,
  .ticker-value {
    font-size: 0.85rem;
  }

  .ticker-separator {
    font-size: 0.75rem;
    margin: 0 0.3rem;
  }

  .ticker-label {
    font-size: 0.7rem;
  }

  .ticker-symbol,
  .ticker-change {
    font-size: 0.8rem;
  }

  .ticker-arrow {
    font-size: 0.65rem;
    margin: 0 0.2rem;
  }

  .ticker-separator {
    font-size: 0.6rem;
    margin: 0 0.2rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.7rem;
  }

  .icon-button,
  .nav-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .icon-button svg,
  .nav-close svg {
    width: 18px;
    height: 18px;
  }

  .nav-toggle-btn .nav-icon {
    width: 20px;
    height: 20px;
  }

  .theme-toggle .toggle-track {
    width: 50px;
    height: 24px;
    padding: 2px;
  }

  .theme-toggle .toggle-thumb {
    width: 20px;
    height: 20px;
    transform: translateX(24px);
    box-shadow: 0 6px 12px rgba(240, 164, 92, 0.25);
  }

  [data-theme="light"] .theme-toggle .toggle-thumb {
    transform: translateX(0);
    box-shadow: 0 6px 12px rgba(217, 119, 6, 0.25);
  }

  .hero-column:not(.featured-story) {
    padding: clamp(0.8rem, 4vw, 1rem);
  }

  .featured-body {
    margin-top: calc(-1 * clamp(1.25rem, 6vw, 1.8rem));
    padding-top: clamp(0.85rem, 4.5vw, 1.25rem);
    padding-bottom: clamp(0.85rem, 4.5vw, 1.25rem);
  }

  .featured-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .featured-title a {
    display: block;
    width: 100%;
  }

  #nav-toggle:checked ~ .primary-nav {
    transform: translateX(0);
  }

  #nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  #nav-toggle:checked ~ .header-actions .nav-toggle-btn .nav-icon--menu {
    opacity: 0;
    transform: scale(0.75);
  }

  #nav-toggle:checked ~ .header-actions .nav-toggle-btn .nav-icon--close {
    opacity: 1;
    transform: scale(1);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "top"
      "latest";
  }

  .archive-section .hero-grid {
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .archive-section .hero-column {
    gap: 0.75rem;
  }

  .hero-column:not(.featured-story) {
    padding: 0;
  }

  .featured-story {
    margin-top: 0;
    margin-bottom: clamp(2rem, 6vw, 3rem);
    padding: 0;
  }

  .archive-section .featured-story {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .archive-section .top-news {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .top-news {
    margin-bottom: clamp(2rem, 6vw, 3rem);
  }

  .timeline-list {
    margin: 0 0 0 -10px;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0 1.6rem 1.6rem;
    margin-left: 0;
  }

  .timeline-item::before {
    left: 1.6rem;
  }

  .timeline-item::after {
    left: 0.75rem;
  }

  .timeline-dot {
    position: absolute;
    top: 0.5rem;
    left: 0.45rem;
  }

  .top-news-list {
    gap: 0.75rem;
  }

  .top-news-item {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 0.8rem;
    align-items: center;
  }

  .top-news .news-thumb {
    display: block;
  }

  .footer-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    justify-items: start;
  }

  .footer-nav:not(.footer-nav-mobile) {
    display: none;
  }

  .footer-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    align-items: flex-start;
  }

  .footer-nav-mobile:nth-of-type(1) {
    grid-column: 1;
  }

  .footer-nav-mobile:nth-of-type(2) {
    grid-column: 2;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .footer-content-grid {
    overflow: hidden;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-left: calc(-1 * var(--layout-gutter));
    margin-right: calc(-1 * var(--layout-gutter));
    width: calc(100% + (2 * var(--layout-gutter)));
    padding-inline: var(--layout-gutter);
  }

  .footer-newsletter .newsletter-card {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-newsletter .footer-social {
    grid-column: 1;
    grid-row: 2;
  }


  .footer-bottom {
    gap: 1rem;
  }

  .videos-shell {
    margin-inline: calc(-1 * var(--layout-gutter));
    width: calc(100% + (2 * var(--layout-gutter)));
    border-radius: 0;
    padding: clamp(0.75rem, 4vw, 1rem) clamp(0.95rem, 4vw, 1.2rem);
  }

  .video-carousel {
    grid-auto-columns: minmax(220px, 300px);
    padding-left: 0;
    padding-right: 0;
  }

  .video-card {
    padding: 0.85rem;
  }

  .metro-block {
    margin-inline: calc(-1 * var(--layout-gutter));
    width: calc(100% + (2 * var(--layout-gutter)));
  }

  .metro-layout {
    grid-template-columns: 1fr;
  }

  .metro-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .metro-columns::after {
    display: none;
  }

  .metro-list ul {
    gap: 1rem;
  }

  .metro-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .metro-shell {
    margin-inline: 0;
    width: 100%;
    padding: 0 var(--layout-gutter);
    gap: 1.5rem;
  }

  .metro-aside {
    padding: 0 var(--layout-gutter);
    margin-top: clamp(2rem, 6vw, 3rem);
  }


  .new-section-block {
    margin-inline: calc(-1 * var(--layout-gutter));
    width: calc(100% + (2 * var(--layout-gutter)));
  }

  .new-section-layout {
    grid-template-columns: 1fr;
  }

  .new-section-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .new-section-columns::after {
    display: none;
  }

  .new-section-shell {
    margin-inline: 0;
    width: 100%;
    padding: 0 var(--layout-gutter);
    gap: 1.5rem;
  }

  .new-section-aside {
    padding: 0 var(--layout-gutter);
    margin-top: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  :root {
    --layout-gutter: clamp(1rem, 4vw, 1.5rem);
  }
}

@media (max-width: 640px) {
  .header-bar {
    row-gap: 1rem;
  }

  .brand-text {
    font-size: 0.7rem;
  }

  .primary-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list {
    justify-content: flex-start;
    gap: 1rem;
    padding-bottom: 0.5rem;
    min-width: max-content;
  }

  .nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .top-news-item {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 0.7rem;
    align-items: center;
  }

  .featured-title {
    font-size: clamp(1.45rem, 5vw, 1.95rem);
  }

  .featured-meta {
    gap: 0.75rem;
  }

  .featured-excerpt {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-newsletter {
    align-items: center;
    text-align: center;
  }

  .footer-newsletter .footer-heading {
    display: none;
  }

  .footer-heading {
    display: none;
  }

  .footer-newsletter .newsletter-card {
    padding: clamp(1rem, 4vw, 1.5rem) 0;
    align-items: center;
    width: 100%;
    max-width: none;
    grid-column: 1;
    grid-row: 1;
  }

  .footer-newsletter .footer-social {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal {
    gap: 1rem;
    justify-content: center;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-column {
    gap: 1rem;
  }

  .timeline-item {
    padding-left: 2.1rem;
  }

  .timeline-item::after {
    left: 0.9rem;
    top: 1.4rem;
  }

  .timeline-dot {
    left: 0.6rem;
  }

  .top-videos {
    margin-top: clamp(2.5rem, 8vw, 3rem);
    gap: 1.25rem;
  }

  .video-carousel {
    grid-auto-columns: 80vw;
    gap: 1rem;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .video-hint {
    display: flex;
    margin-top: 0.25rem;
  }

.video-card {
    padding: 0.9rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

  .metro-shell {
    padding: 0 var(--layout-gutter);
    gap: 1.5rem;
  }

  .metro-aside {
    padding: 0 var(--layout-gutter);
  }

  .new-section-shell {
    padding: 0 var(--layout-gutter);
    gap: 1.5rem;
  }

  .new-section-aside {
    padding: 0 var(--layout-gutter);
  }

  .metro-title {
    font-size: clamp(1.35rem, 5vw, 1.6rem);
  }

  .metro-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.7rem;
    padding-bottom: 1.1rem;
  }


  .footer-newsletter .newsletter-card {
    padding: clamp(1rem, 4vw, 1.5rem) 0;
  }

  .footer-social {
    padding-top: 0.5rem;
    gap: 0.875rem;
  }

  .footer-social .social-link {
    width: 40px;
    height: 40px;
  }

  .footer-social .social-link svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   SINGLE CONTENT LAYOUT
   ========================================================================== */

.single-layout {
  display: grid;
  grid-template-columns: auto 1fr minmax(320px, 380px);
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.social-share-sidebar {
  position: relative;
}

.social-share-sticky {
  position: sticky;
  top: calc(clamp(2.5rem, 1.2vw, 1.65rem) * 2 + clamp(2.5rem, 1.2vw, 1.1rem) * 2 + 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
}

.social-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.business-finance-wrapper {
  position: relative;
}

.social-share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.social-share-link:hover,
.social-share-link:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  transform: translateY(-2px);
  outline: none;
}

.social-share-link svg {
  width: 20px;
  height: 20px;
}

/* Social share buttons - official brand colors in light mode */
[data-theme="light"] .social-share-link[aria-label*="Telegram"] {
  background: #229ED9;
  border-color: #229ED9;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="X"],
[data-theme="light"] .social-share-link[aria-label*="Twitter"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="Facebook"] {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="WhatsApp"] {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="LinkedIn"] {
  background: #0077B5;
  border-color: #0077B5;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="Reddit"] {
  background: #FF4500;
  border-color: #FF4500;
  color: #ffffff;
}

[data-theme="light"] .social-share-link[aria-label*="Copy link"] {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

[data-theme="light"] .social-share-link[aria-label*="Telegram"]:hover,
[data-theme="light"] .social-share-link[aria-label*="X"]:hover,
[data-theme="light"] .social-share-link[aria-label*="Twitter"]:hover,
[data-theme="light"] .social-share-link[aria-label*="Facebook"]:hover,
[data-theme="light"] .social-share-link[aria-label*="WhatsApp"]:hover,
[data-theme="light"] .social-share-link[aria-label*="LinkedIn"]:hover,
[data-theme="light"] .social-share-link[aria-label*="Reddit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

[data-theme="light"] .social-share-link[aria-label*="Copy link"]:hover {
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, var(--color-accent) 30%);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.single-content {
  min-width: 0;
}

.single-post {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.single-header {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.breadcrumbs {
  margin-bottom: 0.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

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

.breadcrumb-list a.breadcrumb-category {
  color: var(--color-accent);
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.breadcrumb-separator {
  color: var(--color-text-secondary);
  opacity: 0.5;
  margin: 0 0.25rem;
  user-select: none;
}

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

/* Style Yoast SEO and Rank Math breadcrumbs to match our design */
.breadcrumbs .breadcrumb,
.breadcrumbs nav[aria-label="Breadcrumb"],
.breadcrumbs .rank-math-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.breadcrumbs .breadcrumb li,
.breadcrumbs nav[aria-label="Breadcrumb"] li,
.breadcrumbs .rank-math-breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumbs .breadcrumb a,
.breadcrumbs nav[aria-label="Breadcrumb"] a,
.breadcrumbs .rank-math-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Style category link (second link, not the last) in Yoast and Rank Math breadcrumbs */
.breadcrumbs .breadcrumb li:nth-child(3) a:not(:last-child),
.breadcrumbs nav[aria-label="Breadcrumb"] li:nth-child(3) a:not(:last-child),
.breadcrumbs .rank-math-breadcrumb li:nth-child(3) a:not(:last-child),
.breadcrumbs .breadcrumb a:nth-of-type(2),
.breadcrumbs nav[aria-label="Breadcrumb"] a:nth-of-type(2),
.breadcrumbs .rank-math-breadcrumb a:nth-of-type(2) {
  color: var(--color-accent);
}

.breadcrumbs .breadcrumb a:hover,
.breadcrumbs .breadcrumb a:focus-visible,
.breadcrumbs nav[aria-label="Breadcrumb"] a:hover,
.breadcrumbs nav[aria-label="Breadcrumb"] a:focus-visible,
.breadcrumbs .rank-math-breadcrumb a:hover,
.breadcrumbs .rank-math-breadcrumb a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.breadcrumbs .breadcrumb .breadcrumb-separator,
.breadcrumbs nav[aria-label="Breadcrumb"] .breadcrumb-separator,
.breadcrumbs .rank-math-breadcrumb .separator {
  color: var(--color-text-secondary);
  opacity: 0.5;
  margin: 0 0.25rem;
  user-select: none;
}

.breadcrumbs .breadcrumb .breadcrumb_last,
.breadcrumbs nav[aria-label="Breadcrumb"] .breadcrumb_last,
.breadcrumbs .rank-math-breadcrumb .last {
  color: var(--color-text);
  font-weight: 500;
}

.single-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}

.single-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 244, 245, 0.6);
  font-weight: 500;
}

[data-theme="light"] .single-date {
  color: rgba(26, 26, 26, 0.7);
}

.single-featured-image {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-base);
  background: linear-gradient(
    150deg,
    rgba(240, 164, 92, 0.15),
    rgba(14, 14, 18, 0.85)
  );
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.95);
}

.image-copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.5rem 0.75rem;
  background: #000;
  border-left: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
}

.copyright-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-weight: 500;
}

.single-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.author-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.author-inline-avatar img,
.author-inline-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: block;
}

.author-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.mobile-share-buttons {
  display: none;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.mobile-share-btn,
.mobile-share-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-share-btn:hover,
.mobile-share-btn:focus-visible,
.mobile-share-more:hover,
.mobile-share-more:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  outline: none;
}

.mobile-share-btn svg,
.mobile-share-more svg {
  width: 16px;
  height: 16px;
}

.mobile-share-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 0.5rem;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: clamp(2rem, 3vw, 3rem) 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: none;
}

.author-box-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: block;
}

.author-box-body {
  flex: 1;
  min-width: 0;
}

.author-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.author-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-secondary);
}

.author-box-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.author-box-name {
  margin: 0.3rem 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.author-box-name a {
  color: var(--color-text-primary);
}

.author-box-description {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.author-box-link--mobile {
  display: none;
}

@media (max-width: 768px) {
  .post-author-box {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    gap: 0.85rem;
  }

  .author-box-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .author-box-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .author-box-head .author-box-link {
    display: none;
  }

  .author-box-body .author-box-link--mobile {
    display: block !important;
    margin-top: 0.75rem;
  }
}

.mobile-share-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-share-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--color-border);
}

.mobile-share-menu-item:last-child {
  border-bottom: none;
}

[data-theme="light"] .mobile-share-menu-item {
  border-bottom: none;
}

.mobile-share-menu-item:hover,
.mobile-share-menu-item:focus-visible {
  background: rgba(240, 164, 92, 0.1);
  outline: none;
}

.mobile-share-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-share-menu-item span {
  font-weight: 500;
}

/* Mobile share buttons - official brand colors in light mode */
[data-theme="light"] .mobile-share-btn[aria-label*="WhatsApp"],
[data-theme="light"] .mobile-share-menu-item[aria-label*="WhatsApp"] {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-btn[aria-label*="Facebook"],
[data-theme="light"] .mobile-share-menu-item[aria-label*="Facebook"] {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="Telegram"] {
  background: #229ED9;
  border-color: #229ED9;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="X"],
[data-theme="light"] .mobile-share-menu-item[aria-label*="Twitter"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="LinkedIn"] {
  background: #0077B5;
  border-color: #0077B5;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="Reddit"] {
  background: #FF4500;
  border-color: #FF4500;
  color: #ffffff;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="Copy link"] {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

[data-theme="light"] .mobile-share-btn[aria-label*="WhatsApp"]:hover,
[data-theme="light"] .mobile-share-btn[aria-label*="Facebook"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="WhatsApp"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="Facebook"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="Telegram"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="X"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="Twitter"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="LinkedIn"]:hover,
[data-theme="light"] .mobile-share-menu-item[aria-label*="Reddit"]:hover {
  opacity: 0.9;
}

[data-theme="light"] .mobile-share-menu-item[aria-label*="Copy link"]:hover {
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, var(--color-accent) 30%);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .mobile-share-buttons {
    display: flex;
  }
}

.author-name {
  color: var(--color-text);
  font-weight: 600;
}

.single-content-body {
  font-family: var(--font-family-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.single-content-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.single-content-body a:hover,
.single-content-body a:focus-visible {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
  outline: none;
}

.related-content a {
  text-decoration: none;
}

.post-author-box a {
  text-decoration: none;
}

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

.single-content-body p:last-child {
  margin-bottom: 0;
}

.related-content {
  margin: clamp(1.0rem, 1vw, 1.0rem) 0;
}

.related-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.related-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.related-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: 0;
}

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

.related-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  padding-left: 1.25rem;
  background: var(--color-surface-elevated);
  border-left: 3px solid var(--color-accent);
}

.related-arrow {
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.5;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.related-item-title {
  font-family: var(--font-family-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(240, 164, 92, 0.14);
  transition: color 0.2s ease;
  flex: 1;
}

.related-item-title:hover,
.related-item-title:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.related-item:last-child .related-item-title {
  border-bottom: none;
  padding-bottom: 0;
}

.single-sidebar {
  position: relative;
}

.sidebar-section {
  
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.sidebar-section .section-heading {
  position: relative;
  padding-bottom: 1rem;
}

.sidebar-section .section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.sidebar-section .timeline-list {
  gap: 1.2rem;
}

/* Comments Section */
.comments-section {
  margin-top: clamp(1.0rem, 1vw, 1.0rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.comments-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin: 0;
}

.comments-count {
  font-size: 0.9em;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.comments-filter {
  position: relative;
  display: inline-block;
}

/* Custom Dropdown Button */
.comment-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-width: 120px;
  justify-content: space-between;
}

.comment-filter-btn:hover {
  border-color: rgba(240, 164, 92, 0.5);
  background-color: var(--color-surface);
}

.comment-filter-btn:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(240, 164, 92, 0.1);
}

.comment-filter-btn[aria-expanded="true"] {
  border-color: var(--color-accent);
  background-color: var(--color-surface);
}

.filter-btn-text {
  flex: 1;
  text-align: left;
}

.filter-chevron {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.comment-filter-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

[data-theme="light"] .comment-filter-btn {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .comment-filter-btn:hover {
  background: var(--color-surface-elevated);
  border-color: rgba(184, 134, 11, 0.4);
}

[data-theme="light"] .comment-filter-btn:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* Custom Dropdown Menu */
.comment-filter-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.comment-filter-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="light"] .comment-filter-dropdown {
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-option:hover,
.filter-option:focus-visible {
  background: rgba(240, 164, 92, 0.1);
  outline: none;
}

.filter-option[aria-selected="true"] {
  background: rgba(240, 164, 92, 0.15);
  color: var(--color-accent);
  font-weight: 600;
}

.filter-option span {
  flex: 1;
}

.check-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.filter-option[aria-selected="true"] .check-icon {
  opacity: 1;
}

[data-theme="light"] .filter-option:hover,
[data-theme="light"] .filter-option:focus-visible {
  background: rgba(184, 134, 11, 0.12);
}

[data-theme="light"] .filter-option[aria-selected="true"] {
  background: rgba(184, 134, 11, 0.18);
  color: var(--color-accent);
}

/* Visual feedback when sorting */
.comments-list.is-sorted {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sort-separator {
  color: rgba(244, 244, 245, 0.3);
  font-size: 0.85rem;
}

/* Comment Notices */
.comment-notice {
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
	padding: clamp(1rem, 2vw, 1.25rem);
	border-radius: var(--radius-base);
	border: 1px solid var(--color-border);
	background: var(--color-surface-elevated);
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.comment-notice--pending {
	border-color: rgba(240, 164, 92, 0.4);
	background: rgba(240, 164, 92, 0.08);
}

.comment-notice--success {
	border-color: rgba(34, 197, 94, 0.4);
	background: rgba(34, 197, 94, 0.08);
}

.comment-notice-content {
	display: flex;
	align-items: flex-start;
	gap: clamp(0.75rem, 1.5vw, 1rem);
}

.comment-notice-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.comment-notice--pending .comment-notice-icon {
	color: var(--color-accent);
	stroke: var(--color-accent);
}

.comment-notice--success .comment-notice-icon {
	color: #22c55e;
	stroke: #22c55e;
	fill: none;
}

.comment-notice-text {
	flex: 1;
}

.comment-notice-title {
	margin: 0 0 0.35rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text);
}

.comment-notice-message {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-text-secondary);
}

[data-theme="light"] .comment-notice--pending {
	border-color: rgba(184, 134, 11, 0.3);
	background: rgba(184, 134, 11, 0.06);
}

[data-theme="light"] .comment-notice--success {
	border-color: rgba(34, 197, 94, 0.3);
	background: rgba(34, 197, 94, 0.06);
}

/* Comment Form */
.comment-form {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.comment-form-header {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.comment-form-title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0;
  color: var(--color-text);
}

.comment-form-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.comment-form-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 164, 92, 0.15);
  border: 1px solid rgba(240, 164, 92, 0.3);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

[data-theme="light"] .comment-form-avatar {
  background: rgba(184, 134, 11, 0.12);
  border-color: rgba(184, 134, 11, 0.25);
}

.comment-form-avatar svg {
  width: 24px;
  height: 24px;
}

.comment-form-avatar img,
.comment-form-avatar .comment-form-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.comment-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.comment-input,
.comment-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.comment-input:focus,
.comment-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.comment-input::placeholder,
.comment-textarea::placeholder {
  color: rgba(244, 244, 245, 0.45);
}

[data-theme="light"] .comment-input::placeholder,
[data-theme="light"] .comment-textarea::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.comment-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-family-secondary);
  line-height: 1.6;
}

.comment-form-row--full {
  grid-template-columns: 1fr;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.comment-submit {
  padding: 0.7rem 1.5rem;
  background: color-mix(in srgb, var(--color-accent) 85%, rgba(240, 164, 92, 0.15));
  border: none;
  border-radius: 6px;
  color: #121214;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: none;
}

.comment-cancel {
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.comment-cancel:hover,
.comment-cancel:focus-visible {
  color: var(--color-text);
  border-color: var(--color-accent);
  outline: none;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comments-list:hover {
  border-color: rgba(240, 164, 92, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .comments-list {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .comments-list:hover {
  border-color: rgba(184, 134, 11, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Add bottom border to separate parent comments and their children from next parent */
/* Only apply to top-level comments (not nested ones) */
.comments-list > .comment:not(.comment--nested):not(:last-child) {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  position: relative;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 164, 92, 0.12);
  border: 1px solid rgba(240, 164, 92, 0.25);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.comment-avatar svg {
  width: 24px;
  height: 24px;
}

.comment-avatar img,
.comment-avatar .comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: none;
}

.comment-pending-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	background: rgba(240, 164, 92, 0.15);
	border: 1px solid rgba(240, 164, 92, 0.3);
	border-radius: 4px;
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.comment-pending-badge svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.comment-pending-badge .badge-text {
	line-height: 1;
}

[data-theme="light"] .comment-pending-badge {
	background: rgba(184, 134, 11, 0.12);
	border-color: rgba(184, 134, 11, 0.25);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.comment-action:hover,
.comment-action:focus-visible {
  color: var(--color-accent);
  background: rgba(240, 164, 92, 0.1);
  outline: none;
}

.comment-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.action-count {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Like button active state */
.comment-like-btn.is-liked {
	color: var(--color-accent);
	background: rgba(240, 164, 92, 0.15);
}

.comment-like-btn.is-liked:hover,
.comment-like-btn.is-liked:focus-visible {
	background: rgba(240, 164, 92, 0.2);
}

.comment-like-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.comment-reply-btn:hover,
.comment-reply-btn:focus-visible {
  color: var(--color-accent);
  background: rgba(240, 164, 92, 0.1);
  outline: none;
}

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

.comment-content p {
  margin: 0;
}

.comment-replies {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  margin-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid rgba(240, 164, 92, 0.2);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
}

/* Add border between nested comments in the same thread */
.comment-replies .comment--nested:not(:last-child) {
  border-bottom: 1px solid rgba(240, 164, 92, 0.1);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0;
}

[data-theme="light"] .comment-replies .comment--nested:not(:last-child) {
  border-bottom-color: rgba(184, 134, 11, 0.12);
}

/* Nested comments - no individual frames, just spacing */
.comment--nested {
  margin-top: 0;
}

/* Deep nested comments - even more subtle */
.comment--deep {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.comment-reply-form {
  margin-top: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
}

.comment-reply-form-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.comment-reply-form .comment-form-avatar {
  width: 36px;
  height: 36px;
}

[data-theme="light"] .comment-reply-form .comment-form-avatar {
  background: rgba(184, 134, 11, 0.12);
  border-color: rgba(184, 134, 11, 0.25);
}

.comment-reply-form .comment-form-avatar svg {
  width: 20px;
  height: 20px;
}

.comment-reply-form .comment-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.comment-reply-form .comment-form-row {
  grid-template-columns: 1fr 1fr;
}

.comment-reply-form .comment-form-row--full {
  grid-template-columns: 1fr;
}

.comment-reply-form .comment-textarea {
  min-height: 80px;
}

/* Comments Pagination */
/* Pagination is inside the framed comment list, so it should match the container */
.comments-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn:focus-visible:not(:disabled) {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  outline: none;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-page {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.pagination-page:hover:not(.is-active),
.pagination-page:focus-visible:not(.is-active) {
  border-color: var(--color-accent);
  color: var(--color-text);
  outline: none;
}

.pagination-page.is-active {
  background: color-mix(in srgb, var(--color-accent) 85%, rgba(240, 164, 92, 0.15));
  border-color: var(--color-accent);
  color: #121214;
  font-weight: 600;
}

.pagination-ellipsis {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

@media (max-width: 1180px) {
  .single-layout {
    grid-template-columns: auto 1fr;
  }

  .single-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .social-share-sidebar {
    display: none;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .comment-form-body {
    grid-template-columns: 1fr;
  }

  .comment-form-avatar {
    display: none;
  }

  .comment-reply-form-body {
    grid-template-columns: 1fr;
  }

  .comment-reply-form .comment-form-avatar {
    display: none;
  }

  .comment-replies {
    margin-left: clamp(0.75rem, 2vw, 1rem);
    padding-left: clamp(0.75rem, 2vw, 1rem);
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .comment-reply-form .comment-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .comment {
    gap: 0.75rem;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
  }

  .comment-avatar svg {
    width: 20px;
    height: 20px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .comment-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .comment-replies {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
  }

  .comments-pagination {
    gap: 0.5rem;
  }

  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-page {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   PAGE LAYOUT (for static pages like About, Privacy, etc.)
   ========================================================================== */

.page-layout {
  max-width: min(100%, 800px);
  margin: 0 auto;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}

.page-body {
  font-family: var(--font-family-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

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

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--color-text);
}

.page-body h2:first-of-type {
  margin-top: 0;
}

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

.page-body li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.page-body li:last-child {
  margin-bottom: 0;
}

.page-body strong {
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .page-body {
    font-size: 1rem;
  }

  .page-body h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }
}

/* ==========================================================================
   ARCHIVE & SEARCH SECTIONS
   ========================================================================== */

.archive-section {
  margin-top: 0;
}

.archive-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.archive-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.archive-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.search-section {
  margin-top: 0;
}

.search-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.search-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.search-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.search-no-results {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.no-results-content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.no-results-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-family-serif);
  color: var(--color-text);
  margin: 0;
}

.no-results-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

.search-page-form {
  width: 100%;
  max-width: 500px;
}

.search-page-form-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  transition: border-color 0.2s ease;
}

.search-page-form-wrapper:focus-within {
  border-color: var(--color-accent);
}

.search-page-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0;
}

.search-page-form input:focus-visible {
  outline: none;
}

.search-page-form input::placeholder {
  color: rgba(244, 244, 245, 0.45);
}

[data-theme="light"] .search-page-form input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.search-page-submit {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.search-page-submit:hover,
.search-page-submit:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  outline: none;
}

.search-page-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* 404 Error Page */
.error-section {
  margin-top: 0;
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.error-content {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.error-number {
  font-size: clamp(8rem, 20vw, 14rem);
  font-family: var(--font-family-serif);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0;
  opacity: 0.9;
}

.error-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-family-serif);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.error-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 550px;
}

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(0.5rem, 1vw, 1rem);
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: color-mix(in srgb, var(--color-accent) 85%, rgba(240, 164, 92, 0.15));
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-base);
  color: #121214;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
}

.error-button:hover,
.error-button:focus-visible {
  background: var(--color-accent);
  color: #121214;
  transform: translateY(-1px);
  outline: none;
}

.archive-list-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Reduce margin-top when hero section is not present (page 2+) */
.archive-section--no-hero .archive-list-section {
  margin-top: 0;
}

.archive-list-section .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.archive-list-section .section-heading .section-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.archive-list-section .section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-accent),
    rgba(240, 164, 92, 0.3),
    transparent
  );
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.archive-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.archive-item-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, rgba(240, 164, 92, 0.38), rgba(14, 14, 18, 0.85));
}

.archive-item-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transform: scale(1.03);
}

.archive-item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

.archive-item-image-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-thumb-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
  color: inherit;
}

.archive-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.archive-item-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
}

.archive-item-title a {
  font-family: var(--font-family-serif);
  font-weight: 600;
  color: var(--color-text);
}

.archive-item-title a:hover,
.archive-item-title a:focus-visible {
  color: var(--color-accent);
}

.archive-item-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 245, 0.45);
}

[data-theme="light"] .archive-item-meta {
  color: rgba(26, 26, 26, 0.7);
}

.archive-pagination {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
  width: 100%;
  justify-content: center;
}

.archive-pagination > * {
  display: flex;
  align-items: center;
}

.archive-pagination .pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
}


.archive-pagination .pagination-btn:hover:not(:disabled),
.archive-pagination .pagination-btn:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  outline: none;
}

.archive-pagination .pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.archive-pagination .pagination-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.archive-pagination .pagination-pages {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.archive-pagination .pagination-page {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.archive-pagination .pagination-page:first-child {
  border-left: none;
}

.archive-pagination .pagination-page:hover:not(.is-active),
.archive-pagination .pagination-page:focus-visible:not(.is-active) {
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, #f0a45c 30%);
  color: var(--color-text);
  outline: none;
}

.archive-pagination .pagination-page.is-active {
  background: color-mix(in srgb, var(--color-accent) 85%, rgba(240, 164, 92, 0.15));
  color: #121214;
  font-weight: 600;
}

.archive-pagination .pagination-ellipsis {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  padding: 0 0.75rem;
  height: 40px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--color-border);
}

.archive-pagination-wrapper {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 900px) {

  .archive-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .archive-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.9rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(240, 164, 92, 0.14);
    position: relative;
    align-items: center;
  }

  .archive-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .archive-item-media {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(12, 12, 16, 0.6);
    width: 100%;
    height: auto;
    align-self: center;
    margin: 0.5rem 0;
  }

  .archive-item-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) brightness(0.96);
  }

  .archive-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    align-items: flex-start;
  }

  .archive-item-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
  }

  .archive-item-title a {
    font-family: var(--font-family-serif);
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.4;
  }

  .archive-item-title a:hover,
  .archive-item-title a:focus-visible {
    color: var(--color-accent);
  }

  .archive-item-meta {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(244, 244, 245, 0.45);
  }

  .archive-pagination .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    height: 36px;
  }

  .archive-pagination .pagination-btn span {
    display: none;
  }

  .archive-pagination .pagination-page {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }

  .archive-pagination .pagination-ellipsis {
    height: 36px;
    padding: 0 0.5rem;
  }
}

@media (max-width: 640px) {
  .archive-item {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.75rem;
    padding-bottom: 1.1rem;
  }

  .archive-item-media {
    margin: 0.75rem 0;
  }

  .archive-item-title a {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.copy-link-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-base);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-link-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .copy-link-toast {
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   COMMENT VALIDATION
   ========================================================================== */

.comment-validation-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-base);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.comment-validation-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.comment-validation-toast--error {
  border-color: #dc2626;
  background: color-mix(in srgb, var(--color-surface-elevated) 90%, #dc2626 10%);
}

.comment-input-error,
.comment-textarea.comment-input-error {
  border-color: #dc2626 !important;
  background: color-mix(in srgb, var(--color-surface) 95%, #dc2626 5%) !important;
}

.comment-input-error:focus,
.comment-textarea.comment-input-error:focus {
  outline-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

[data-theme="light"] .comment-validation-toast {
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .comment-validation-toast--error {
  border-color: #dc2626;
  background: color-mix(in srgb, var(--color-surface) 90%, #dc2626 10%);
}
