/*
Theme Name: Jornal Informa Digital
Description: Tema jornalístico moderno inspirado nos melhores sites de notícias do mundo, com grid responsivo e tipografia profissional.
Template: twentytwentyfive
Version: 2.4.0
Author: Claude Code
Author URI: https://jornalinformadigital.com.br
Text Domain: jornal-informa-digital
Domain Path: /languages/
*/

/* ==================================
   MODERN NEWS DESIGN SYSTEM
   ================================== */

:root {
  /* Typography Stack */
  --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Platypi', Georgia, 'Times New Roman', serif;
  --font-mono: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Color Palette */
  --color-primary: #1a1a1a;
  --color-secondary: #333333;
  --color-accent: #c70000;
  --color-accent-hover: #a00000;
  --color-text: #212121;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-background: #ffffff;
  --color-background-alt: #f8f9fa;
  --color-border: #e1e5e9;
  --color-border-light: #f0f0f0;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Layout */
  --container-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 320px;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
  --border-radius: 0.375rem;
}

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

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

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==================================
   WORDPRESS BLOCK LAYOUT OVERRIDES
   Override parent theme's .is-layout-constrained
   which forces max-width: 780px + margin: auto !important
   ================================== */

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.is-layout-constrained > :where(.alignwide) {
  max-width: none !important;
}

body .is-layout-constrained {
  max-width: none;
}

/* Article content should still be readable width */
.article-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
  max-width: var(--content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.article-content.is-layout-constrained > :where(.alignwide) {
  max-width: var(--container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.article-content.is-layout-constrained > :where(.alignfull) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WP global content size variable */
:root {
  --wp--style--global--content-size: 1200px;
  --wp--style--global--wide-size: 1400px;
}

/* Ensure site wrappers don't get constrained */
#page,
#content,
.site,
.site-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* Remove WP padding/margin from body */
body {
  padding: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Override WP root padding variables */
:root {
  --wp--style--root--padding-top: 0px !important;
  --wp--style--root--padding-right: 0px !important;
  --wp--style--root--padding-bottom: 0px !important;
  --wp--style--root--padding-left: 0px !important;
}

/* Kill WP block gap on flow/constrained layouts outside article content */
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > *,
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

/* Ensure skip-link doesn't create space */
.skip-link {
  margin: 0 !important;
}

/* Override WP block widget headings in sidebar */
.category-sidebar .widget h2.wp-block-heading,
.category-sidebar .widget h3.wp-block-heading,
.sidebar .widget h2.wp-block-heading,
.sidebar .widget h3.wp-block-heading,
.sidebar-widgets h2.wp-block-heading,
.sidebar-widgets h3.wp-block-heading {
  font-family: var(--font-primary) !important;
  font-size: var(--text-lg) !important;
  font-weight: 700 !important;
  margin-bottom: var(--space-6) !important;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-primary) !important;
}

/* Style WP block widgets in sidebar to match theme */
.category-sidebar .sidebar-widgets .widget,
.sidebar .sidebar-widgets .widget {
  background: var(--color-background-alt);
  padding: var(--space-6);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-8);
}

.sidebar-widgets .wp-block-latest-posts__list,
.sidebar-widgets .wp-block-categories-list,
.sidebar-widgets .wp-block-archives-list {
  list-style: none;
  padding: 0;
}

.sidebar-widgets .wp-block-latest-posts__list li,
.sidebar-widgets .wp-block-categories-list li,
.sidebar-widgets .wp-block-archives-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.sidebar-widgets .wp-block-latest-posts__list li:last-child,
.sidebar-widgets .wp-block-categories-list li:last-child,
.sidebar-widgets .wp-block-archives-list li:last-child {
  border-bottom: none;
}

.sidebar-widgets .wp-block-latest-posts__post-title {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-widgets .wp-block-latest-posts__post-title:hover {
  color: var(--color-accent);
}

.sidebar-widgets .wp-block-search__label {
  display: none;
}

.sidebar-widgets .wp-block-search__inside-wrapper {
  display: flex;
  gap: var(--space-2);
}

.sidebar-widgets .wp-block-search__input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
}

.sidebar-widgets .wp-block-search__button {
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Override WP block group margin/padding in sidebar */
.sidebar-widgets .wp-block-group {
  padding: 0;
  margin: 0;
}

/* Fix WP latest comments in sidebar */
.sidebar-widgets .wp-block-latest-comments {
  padding: 0;
  list-style: none;
}

.sidebar-widgets .wp-block-latest-comments__comment {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Comment reply title override */
.comment-reply-title {
  font-family: var(--font-primary) !important;
  font-size: var(--text-xl) !important;
  font-weight: 700 !important;
}

/* ==================================
   TYPOGRAPHY
   ================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

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

a:hover {
  text-decoration: none;
}

.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--color-accent-hover);
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* ==================================
   HEADER
   ================================== */

.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Breaking News Bar */
.header-top {
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
}

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

.breaking-news {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  min-width: 0;
}

.breaking-badge {
  background: var(--color-accent);
  color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.header-date {
  white-space: nowrap;
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* Main Header */
.header-main {
  padding: var(--space-4) 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.site-branding {
  text-align: center;
  flex: 1;
}

.site-title {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.site-title a {
  color: inherit;
}

.site-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  margin-bottom: 0;
}

/* Header Actions (theme toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Search */
.header-search {
  flex-shrink: 0;
}

.search-form {
  display: flex;
  gap: var(--space-2);
}

.search-field {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  min-width: 200px;
  transition: var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.1);
}

.search-submit {
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--color-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-primary);
  flex-shrink: 0;
}

.menu-toggle .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: currentColor;
  left: 0;
  transition: var(--transition);
}

.menu-toggle .hamburger::before { top: -7px; }
.menu-toggle .hamburger::after { top: 7px; }

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==================================
   NAVIGATION
   ================================== */

.main-navigation {
  background: var(--color-background);
  border-top: 1px solid var(--color-border-light);
}

.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu li {
  white-space: nowrap;
}

.nav-menu a {
  display: block;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-accent);
  background: var(--color-background);
}

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

.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  margin: var(--space-10) 0;
}

.category-badge {
  background: var(--color-accent);
  color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

/* News Grid */
.news-section {
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.news-card {
  background: var(--color-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--color-border-light);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.news-card-content {
  padding: var(--space-5);
}

.news-card .article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.news-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.news-card h3 a {
  color: var(--color-primary);
}

.news-excerpt {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
}

.article-footer .author {
  color: var(--color-text-muted);
}

.read-more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: var(--space-12);
}

.load-more-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* ==================================
   SIDEBAR
   ================================== */

.sidebar {
  background: var(--color-background-alt);
  padding: var(--space-8);
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: calc(120px + var(--space-4));
}

.sidebar-section {
  margin-bottom: var(--space-10);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

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

.sidebar-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.sidebar-item .article-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.sidebar-content {
  flex: 1;
}

.popular-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.see-all {
  margin-top: var(--space-4);
  text-align: center;
}

.see-all a {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-input {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.1);
}

.newsletter-button,
.newsletter-submit {
  padding: var(--space-3);
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-button:hover,
.newsletter-submit:hover {
  background: var(--color-accent-hover);
}

/* Form messages */
.form-message {
  padding: var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==================================
   SINGLE POST
   ================================== */

/* Full-width hero image */
.single-hero {
  position: relative;
  margin-bottom: var(--space-8);
}

.single-hero-image {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

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

.single-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--color-background), transparent);
}

.image-caption {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
  margin-top: var(--space-2);
}

/* Single post container - full width, content centered */
.single-post {
  margin: 0 auto;
  padding-top: var(--space-12);
}

.single-hero + .single-post {
  padding-top: 0;
}

.single-post > .container {
  max-width: var(--content-width);
}

/* Article Header */
.article-header {
  margin-bottom: var(--space-10);
}

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

.article-categories {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition);
}

.article-category:hover {
  background: var(--color-accent-hover);
  color: white;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.article-excerpt {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

/* Byline row */
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
  display: block;
  line-height: 1.3;
}

.publish-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
}

.publish-date .updated {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.share-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text-muted);
}

.share-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.share-btn-twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.share-btn-facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-btn-whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }
.share-btn-copy:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.share-btn.copied { background: #059669; color: white; border-color: #059669; }

/* Featured Image (for non-hero fallback) */
.featured-image-container {
  margin: var(--space-10) 0;
}

.featured-image img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Article Content */
.article-content {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.article-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.article-content h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

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

.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-light);
}

.article-content img {
  border-radius: var(--border-radius);
}

/* Page links */
.page-links {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.page-links .page-number {
  display: inline-block;
  margin: 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  font-weight: 600;
}

/* Article Tags */
.article-tags {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.article-tags h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  color: var(--color-text-light);
  font-family: var(--font-primary);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: var(--transition);
}

.tag-link:hover {
  background: var(--color-accent);
  color: white;
}

/* Author Box */
.author-box {
  margin-top: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.author-box-header {
  background: var(--color-primary);
  padding: var(--space-3) var(--space-6);
}

.author-box-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
}

.author-box-body {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-background-alt);
  align-items: start;
}

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

.author-avatar-large {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  border: 3px solid var(--color-background);
  box-shadow: var(--shadow-md);
}

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

.author-box-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

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

.author-box-bio {
  color: var(--color-text-light);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.author-box-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.author-box-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.author-box-links {
  display: flex;
  gap: var(--space-3);
}

.author-box-btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--color-accent);
  color: white;
}

.author-box-btn:hover {
  background: var(--color-accent-hover);
  color: white;
}

.author-box-btn-outline {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.author-box-btn-outline:hover {
  background: var(--color-background);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.post-nav-link:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-accent);
}

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

/* Related Articles */
.related-articles {
  margin-top: var(--space-20);
  padding: var(--space-16) 0;
  background: var(--color-background-alt);
}

.related-articles-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-10);
  text-align: center;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.related-card {
  background: var(--color-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--color-border-light);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-content {
  padding: var(--space-5);
}

.related-card-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  align-items: center;
}

.related-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.related-card h3 a {
  color: var(--color-primary);
}

.related-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.related-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.related-card-footer .author {
  color: var(--color-text-muted);
}

.related-card-footer .read-more {
  color: var(--color-accent);
  font-weight: 600;
}

/* Comments */
.comments-section {
  margin-top: var(--space-20);
}

.comments-section .container {
  max-width: var(--content-width);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ==================================
   CATEGORY ARCHIVE
   ================================== */

/* Category Hero Banner */
.category-hero {
  background: linear-gradient(135deg, var(--cat-color, var(--color-primary)) 0%, color-mix(in srgb, var(--cat-color, var(--color-primary)) 60%, #000) 100%);
  color: #fff;
  padding: var(--space-12) 0 var(--space-10);
  margin-bottom: var(--space-10);
}

.category-hero .breadcrumb-nav {
  margin-bottom: var(--space-6);
}

.category-hero .breadcrumb {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.category-hero .breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: rgba(255, 255, 255, 0.4);
}

.category-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.category-hero .breadcrumb a:hover {
  color: #fff;
}

.category-hero .category-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.category-hero .category-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: var(--space-6);
}

.category-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.category-count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.category-children {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.child-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.child-category-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.child-category-link span {
  background: rgba(255, 255, 255, 0.2);
  padding: 0 var(--space-2);
  border-radius: 100px;
  font-size: 0.65rem;
}

/* Category Layout - content + sidebar */
.category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
}

/* Breadcrumbs (generic, used outside hero too) */
.breadcrumb-nav {
  margin-bottom: var(--space-6);
}

.breadcrumb {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

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

/* Category Featured Post */
.category-featured {
  margin-bottom: var(--space-12);
}

.category-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.featured-post-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.featured-post-title {
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.featured-post-title a {
  color: var(--color-primary);
}

.featured-post-excerpt {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.featured-post-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Archive Filters */
.archive-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-right: var(--space-2);
}

.archive-sort {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  background: var(--color-background);
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: var(--space-2);
}

.view-toggle-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.posts-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.posts-grid[data-view="list"] .category-post-card {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.category-post-card {
  background: var(--color-background);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border-light);
}

.category-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.post-card-overlay {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.post-card-overlay .reading-time {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: var(--text-xs);
  font-weight: 600;
}

.post-card-content {
  padding: var(--space-5);
}

.post-card-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.post-card-title {
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.post-card-title a {
  color: var(--color-primary);
}

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-engagement {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.comment-count {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.share-button-mini {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  transition: var(--transition);
}

.share-button-mini:hover {
  color: var(--color-accent);
}

/* Category Pagination */
.category-pagination {
  margin-top: var(--space-12);
  text-align: center;
}

.category-pagination .page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.category-pagination .page-numbers li {
  display: inline;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: var(--transition);
  color: var(--color-text);
}

.category-pagination .page-numbers .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.category-pagination .page-numbers a:hover {
  background: var(--color-background-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* No Posts */
.no-posts-found {
  text-align: center;
  padding: var(--space-20) 0;
}

.no-posts-content h2 {
  margin-bottom: var(--space-4);
}

.no-posts-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.back-home-btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.back-home-btn:hover {
  background: var(--color-secondary);
  color: white;
}

/* Category Sidebar */
.category-sidebar {
  height: fit-content;
  position: sticky;
  top: calc(120px + var(--space-4));
}

.category-sidebar .widget {
  background: var(--color-background-alt);
  padding: var(--space-6);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-8);
}

.category-sidebar .widget:last-child {
  margin-bottom: 0;
}

.category-sidebar .widget-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}

/* Related Categories */
.related-categories-list {
  list-style: none;
}

.category-item {
  margin-bottom: var(--space-3);
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-border);
  transition: var(--transition);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.category-link:hover {
  background: var(--color-background);
}

.category-link .category-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.category-link .category-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-background);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
}

/* Popular Posts in Category */
.popular-posts-list {
  list-style: none;
}

.popular-post-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.popular-post-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.popular-post-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-1);
}

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

.popular-post-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.newsletter-widget .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-widget input[type="email"] {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
}

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

.site-footer {
  background: var(--color-background-alt);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-20);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-section-title {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.footer-description {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: var(--transition);
}

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

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-newsletter-form input[type="email"] {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  background: var(--color-background);
}

.footer-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-newsletter-form button {
  padding: var(--space-3);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition);
}

.footer-newsletter-form button:hover {
  background: var(--color-secondary);
}

.footer-newsletter-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-copyright p {
  margin: 0;
}

.footer-credit {
  margin-top: var(--space-2);
  font-size: 11px;
  opacity: 0.7;
}

.footer-bottom-links {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-bottom-links a {
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ==================================
   INDEX / SEARCH / ARCHIVE FALLBACK
   ================================== */

.archive-header {
  margin-bottom: var(--space-10);
}

.loading-posts {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==================================
   SKIP LINK
   ================================== */

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 10000;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* ==================================
   UTILITIES
   ================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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

@media (max-width: 1024px) {
  .homepage-grid,
  .category-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .sidebar,
  .category-sidebar {
    position: static;
  }

  .category-featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  /* Header */
  .header-main .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    order: -1;
  }

  .site-branding {
    order: 0;
    flex: 1;
  }

  .header-search {
    order: 1;
    width: 100%;
    margin-top: var(--space-3);
  }

  .header-search .search-form {
    width: 100%;
  }

  .search-field {
    min-width: 0;
    flex: 1;
  }

  /* Mobile Navigation */
  .main-navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-navigation.toggled {
    max-height: 500px;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
  }

  /* Hero */
  .hero-article {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-image {
    order: -1;
  }

  /* News Grid */
  .news-grid,
  .posts-grid,
  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .posts-grid[data-view="list"] .category-post-card {
    grid-template-columns: 1fr;
  }

  /* Sidebar */
  .sidebar {
    padding: var(--space-6);
  }

  /* Single Post */
  .article-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .article-byline {
    flex-direction: column;
    gap: var(--space-4);
  }

  .share-buttons {
    justify-content: flex-start;
  }

  .author-box-body {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-6);
  }

  .author-box-links {
    justify-content: center;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .post-nav-next {
    text-align: left;
  }

  .post-nav-next .post-nav-label {
    justify-content: flex-start;
  }

  /* Author page */
  .author-profile {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }

  .author-profile-stats {
    justify-content: center;
  }

  .author-profile-links {
    justify-content: center;
  }

  .author-profile-bio {
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  /* Archive filters */
  .archive-filters {
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
  }

  /* Breaking news - hide date on mobile */
  .header-date {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .site-title {
    font-size: var(--text-2xl);
  }

  .hero-content h1 {
    font-size: var(--text-3xl);
  }
}

/* ==================================
   AUTHOR PAGE
   ================================== */

.author-page {
  padding: var(--space-10) 0;
}

.author-profile {
  display: flex;
  gap: var(--space-10);
  align-items: center;
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-10);
  border-bottom: 3px solid var(--color-accent);
}

.author-profile-img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  border: 4px solid var(--color-background);
  box-shadow: var(--shadow-lg);
}

.author-profile-name {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.author-profile-bio {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 600px;
}

.author-profile-stats {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.author-stat {
  text-align: center;
}

.author-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.author-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.author-profile-links {
  display: flex;
  gap: var(--space-4);
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.author-link:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.author-posts {
  margin-top: var(--space-8);
}

/* ==================================
   COMMENTS
   ================================== */

.comments-section {
  margin-top: var(--space-16);
  padding: var(--space-12) 0;
  background: var(--color-background-alt);
}

.comments-section .container {
  max-width: var(--content-width);
}

.comments-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .comment {
  margin-bottom: var(--space-8);
}

.comment-body {
  padding: var(--space-6);
  background: var(--color-background);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border-light);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.comment-meta .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-author {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
}

.comment-metadata {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.comment-metadata a {
  color: var(--color-text-muted);
}

.comment-content {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}

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

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

/* Nested replies */
.comment-list .children {
  list-style: none;
  padding-left: var(--space-8);
  margin-top: var(--space-6);
  border-left: 2px solid var(--color-border-light);
}

/* Comment form */
.comment-respond {
  margin-top: var(--space-10);
}

.comment-reply-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comment-form label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  background: var(--color-background);
  color: var(--color-text);
  transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: var(--space-4);
}

.comment-form .submit {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
}

.comment-form .submit:hover {
  background: var(--color-accent-hover);
}

.comment-notes {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==================================
   DARK MODE (User-controlled)
   ================================== */

[data-theme="dark"] {
  --color-primary: #ffffff;
  --color-secondary: #e5e5e5;
  --color-text: #e0e0e0;
  --color-text-light: #b0b0b0;
  --color-text-muted: #888888;
  --color-background: #121212;
  --color-background-alt: #1e1e1e;
  --color-border: #333333;
  --color-border-light: #2a2a2a;
  --color-accent: #ff4444;
  --color-accent-hover: #ff6666;
}

[data-theme="dark"] .news-card,
[data-theme="dark"] .related-card,
[data-theme="dark"] .category-post-card,
[data-theme="dark"] .category-sidebar .widget {
  background: var(--color-background-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .search-field,
[data-theme="dark"] .newsletter-input,
[data-theme="dark"] .archive-sort,
[data-theme="dark"] .newsletter-widget input[type="email"],
[data-theme="dark"] .footer-newsletter-form input[type="email"] {
  background: var(--color-background);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .site-header {
  background: rgba(18, 18, 18, 0.97);
}

[data-theme="dark"] .header-top {
  background: #000000;
}

[data-theme="dark"] .author-box-header {
  background: #2a2a2a;
}

[data-theme="dark"] .author-box {
  border-color: var(--color-border);
}

[data-theme="dark"] .author-box-body {
  background: var(--color-background-alt);
}

[data-theme="dark"] .author-box-btn {
  background: var(--color-accent);
  color: white;
}

[data-theme="dark"] .author-box-btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .sidebar {
  background: var(--color-background-alt);
}

[data-theme="dark"] .site-footer {
  background: #0a0a0a;
  border-top-color: var(--color-border);
}

[data-theme="dark"] .hero-image img,
[data-theme="dark"] .news-card-image img,
[data-theme="dark"] .post-card-image img {
  opacity: 0.9;
}

[data-theme="dark"] .site-title a,
[data-theme="dark"] .news-card h3 a,
[data-theme="dark"] .post-card-title a,
[data-theme="dark"] .related-card h3 a,
[data-theme="dark"] .featured-post-title a,
[data-theme="dark"] .sidebar-item h3 a,
[data-theme="dark"] .popular-post-title a {
  color: var(--color-text);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-background-alt);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

/* Hide the wrong icon based on theme */
[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: block;
}

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

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

/* ==================================
   HERO HEADLINE - GRANDÃO
   ================================== */

.hero-section {
  margin-bottom: var(--space-12);
}

.hero-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  position: relative;
}

.hero-image {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  pointer-events: none;
}

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

.hero-article:hover .hero-image img {
  transform: scale(1.03);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10) var(--space-10) var(--space-8);
  z-index: 2;
  color: white;
}

.hero-content .article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  color: white;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  max-width: 900px;
}

.hero-content h1 a {
  color: inherit;
}

.hero-content h1 a:hover {
  color: inherit;
  opacity: 0.9;
}

.hero-excerpt {
  font-size: var(--text-xl);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
  max-width: 700px;
}

.author-byline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.author-byline a {
  font-weight: 600;
  color: white;
}

/* Hero without image fallback */
.hero-article:not(:has(.hero-image)) .hero-content {
  position: relative;
  padding: var(--space-16) 0;
  color: var(--color-text);
  border-bottom: 3px solid var(--color-accent);
}

.hero-article:not(:has(.hero-image)) .hero-content h1 {
  color: var(--color-primary);
  text-shadow: none;
}

.hero-article:not(:has(.hero-image)) .hero-content .article-meta {
  color: var(--color-text-muted);
}

.hero-article:not(:has(.hero-image)) .hero-excerpt {
  color: var(--color-text-light);
}

.hero-article:not(:has(.hero-image)) .author-byline {
  color: var(--color-text-light);
}

.hero-article:not(:has(.hero-image)) .author-byline a {
  color: var(--color-text);
}

/* ==================================
   CLIPPING PAGE
   ================================== */

.clipping-page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-10) var(--space-4);
}

.clipping-header {
  text-align: center;
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 3px solid var(--color-primary);
}

.clipping-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.clipping-header .clipping-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Clipping filters */
.clipping-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.clipping-filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: none;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}

.clipping-filter-btn:hover,
.clipping-filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Clipping timeline */
.clipping-timeline {
  position: relative;
  padding-left: var(--space-12);
}

.clipping-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.clipping-year {
  margin-bottom: var(--space-12);
}

.clipping-year-label {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
  position: relative;
}

.clipping-year-label::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.clipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.clipping-card {
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.clipping-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.clipping-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-background-alt);
}

.clipping-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clipping-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clipping-source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.clipping-source-logo {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.clipping-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.clipping-card-title a {
  color: var(--color-primary);
}

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

.clipping-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.clipping-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

.clipping-type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.clipping-type-badge.tipo-impresso {
  background: #dbeafe;
  color: #1e40af;
}

.clipping-type-badge.tipo-digital {
  background: #dcfce7;
  color: #166534;
}

.clipping-type-badge.tipo-tv {
  background: #fef3c7;
  color: #92400e;
}

.clipping-type-badge.tipo-radio {
  background: #f3e8ff;
  color: #6b21a8;
}

[data-theme="dark"] .clipping-type-badge.tipo-impresso {
  background: #1e3a5f;
  color: #93c5fd;
}

[data-theme="dark"] .clipping-type-badge.tipo-digital {
  background: #14532d;
  color: #86efac;
}

[data-theme="dark"] .clipping-type-badge.tipo-tv {
  background: #451a03;
  color: #fcd34d;
}

[data-theme="dark"] .clipping-type-badge.tipo-radio {
  background: #3b0764;
  color: #d8b4fe;
}

/* Clipping stats */
.clipping-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  padding: var(--space-8);
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
}

.clipping-stat {
  text-align: center;
}

.clipping-stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.clipping-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* No clippings */
.no-clippings {
  text-align: center;
  padding: var(--space-20) 0;
  color: var(--color-text-light);
}

.no-clippings h2 {
  margin-bottom: var(--space-4);
}

/* Clipping responsive */
@media (max-width: 768px) {
  .clipping-grid {
    grid-template-columns: 1fr;
  }

  .clipping-timeline {
    padding-left: var(--space-8);
  }

  .clipping-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .clipping-header h1 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .clipping-timeline {
    padding-left: var(--space-6);
  }

  .clipping-timeline::before {
    left: 12px;
  }

  .clipping-year-label::before {
    left: calc(-1 * var(--space-6) + 6px);
    width: 12px;
    height: 12px;
  }
}

/* Hero responsive override */
@media (max-width: 768px) {
  .hero-image {
    aspect-ratio: 16/10;
  }

  .hero-content {
    padding: var(--space-6);
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-excerpt {
    font-size: var(--text-base);
    display: none;
  }
}

/* ==================================
   ESPECIAL TEMPLATES — SINGLE
   ================================== */

/* Hero fullscreen */
.especial-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0a0a0a;
}

.especial-hero-image {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.especial-hero-image img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.especial-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.75) 75%,
    rgba(0,0,0,0.92) 100%
  );
  z-index: 1;
}

.especial-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 var(--space-12);
}

.especial-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.especial-badge-wrap {
  margin-bottom: var(--space-4);
}

.especial-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 3px;
}

.especial-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 var(--space-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.especial-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
  max-width: 700px;
}

.especial-byline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
}

.especial-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.especial-author-name {
  font-weight: 600;
  color: #fff;
}

.especial-divider {
  opacity: 0.5;
}

.especial-date,
.especial-reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.especial-scroll-indicator {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
  animation: especial-bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity 0.3s;
}

.especial-scroll-indicator svg {
  color: rgba(255,255,255,0.6);
}

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

/* Article layout */
.especial-article {
  background: var(--color-background);
}

.especial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* TOC Sidebar */
.especial-toc-sidebar {
  position: sticky;
  top: var(--space-8);
}

.especial-toc {
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.especial-toc-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

.especial-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.especial-toc-item {
  border-bottom: 1px solid var(--color-border-light);
}

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

.especial-toc-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s, padding-left 0.2s;
  border-left: 3px solid transparent;
  padding-left: var(--space-2);
}

.especial-toc-link:hover,
.especial-toc-link.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* Key Facts */
.especial-keyfacts {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: #fff;
}

[data-theme="dark"] .especial-keyfacts {
  background: linear-gradient(135deg, #0d0d1a 0%, #0a0f1e 100%);
}

.especial-keyfacts-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd700;
  margin: 0 0 var(--space-4);
}

.especial-keyfacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.especial-keyfacts-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  padding-left: var(--space-4);
  position: relative;
}

.especial-keyfacts-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: 700;
}

.especial-keyfacts-list li:last-child {
  border-bottom: none;
}

/* Content area */
.especial-content {
  min-width: 0;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
}

.especial-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-primary);
  padding-top: var(--space-6);
  border-top: 3px solid var(--color-accent);
}

.especial-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.especial-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-primary);
}

.especial-content p {
  margin-bottom: var(--space-5);
}

.especial-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.especial-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-background-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-secondary);
}

.especial-content blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  font-family: var(--font-primary);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Tags */
.especial-tags {
  padding: var(--space-8) 0;
}

.especial-tags-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.especial-tags-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Author box wrapper */
.especial-author-box-wrap {
  max-width: 900px;
  margin: 0 auto var(--space-8);
  padding: 0 var(--space-6);
}

/* Post navigation for especial */
.especial-post-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

/* Share inline no hero */
.especial-hero-share {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.especial-hero-share-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-right: var(--space-1);
}

.especial-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.especial-share-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.especial-share-btn.copied .especial-copy-label::after {
  content: ' ✓';
}

/* ==================================
   ESPECIAL TEMPLATES — CATEGORY
   ================================== */

/* Event hero */
.especial-cat-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    var(--hero-image, none)
    center/cover no-repeat,
    linear-gradient(135deg, var(--cat-color, #1a1a1a) 0%, color-mix(in srgb, var(--cat-color, #1a1a1a) 70%, #000) 100%);
}

.especial-cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.75));
  z-index: 1;
}

.especial-cat-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-12) 0 var(--space-10);
}

.breadcrumb-light .breadcrumb {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-light .breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-light .breadcrumb a:hover {
  color: #fff;
}

.especial-cat-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 3px;
  margin-bottom: var(--space-3);
}

.especial-cat-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 var(--space-3);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.especial-cat-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--space-4);
  max-width: 640px;
  line-height: 1.6;
}

.especial-cat-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}

.especial-cat-divider { opacity: 0.4; }

/* Tabs bar */
.especial-tabs-bar {
  background: var(--color-background);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.especial-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.especial-tabs::-webkit-scrollbar { display: none; }

.especial-cat-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.especial-cat-tab:hover {
  color: var(--color-text);
}

.especial-cat-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.especial-tab-count {
  background: var(--color-background-alt);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* Category layout */
.especial-cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: start;
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
}

/* Featured card */
.especial-cat-featured {
  margin-bottom: var(--space-10);
}

.especial-featured-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.especial-featured-image {
  position: relative;
  aspect-ratio: 16/7;
}

.especial-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.especial-featured-card:hover .especial-featured-image img {
  transform: scale(1.03);
}

.especial-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.especial-featured-content-over {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
}

.especial-featured-cat {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: var(--space-3);
}

.especial-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

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

.especial-featured-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.especial-featured-meta {
  display: flex;
  gap: var(--space-3);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}

/* Magazine section */
.especial-section-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

/* Magazine grid */
.especial-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.especial-mag-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.especial-mag-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Big card spans 2 rows */
.especial-mag-card--big {
  grid-column: span 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.especial-mag-card--big .especial-mag-image {
  flex: 1;
}

.especial-mag-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.especial-mag-card--big .especial-mag-image {
  aspect-ratio: auto;
  min-height: 200px;
}

.especial-mag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.especial-mag-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.especial-mag-meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.especial-mag-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-decoration: none;
}

.especial-mag-meta time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.especial-mag-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.especial-mag-card--big .especial-mag-title {
  font-size: var(--text-lg);
}

.especial-mag-title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.especial-mag-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.especial-mag-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-light);
}

.especial-mag-author {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.especial-mag-read {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-background-alt);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sidebar */
.especial-cat-sidebar {
  position: sticky;
  top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.especial-sidebar-widget {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* ==================================
   DARK MODE — ESPECIAL
   ================================== */

[data-theme="dark"] .especial-toc {
  background: var(--color-background-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .especial-content blockquote {
  background: var(--color-background-alt);
}

[data-theme="dark"] .especial-mag-card {
  background: var(--color-background-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .especial-sidebar-widget {
  background: var(--color-background-alt);
  border-color: var(--color-border);
}

/* share btn no hero já tem cor fixa por estar sobre imagem escura */

[data-theme="dark"] .especial-tabs-bar {
  background: var(--color-background);
  border-color: var(--color-border);
}

[data-theme="dark"] .especial-tab-count {
  background: var(--color-background);
}

/* ==================================
   RESPONSIVE — ESPECIAL
   ================================== */

@media (max-width: 1200px) {
  /* placeholder - sticky removido */
}

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

  .especial-toc-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

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

  .especial-cat-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .especial-mag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .especial-mag-card--big {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .especial-hero {
    height: 85vh;
    min-height: 500px;
  }

  .especial-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .especial-subtitle {
    display: none;
  }

  .especial-byline {
    font-size: var(--text-xs);
  }

  .especial-container {
    padding: var(--space-8) var(--space-4);
  }

  .especial-toc-sidebar {
    grid-template-columns: 1fr;
  }

  .especial-cat-hero {
    min-height: 320px;
  }

  .especial-cat-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .especial-cat-description {
    display: none;
  }

  .especial-mag-grid {
    grid-template-columns: 1fr;
  }

  .especial-cat-sidebar {
    grid-template-columns: 1fr;
  }

  .especial-featured-image {
    aspect-ratio: 16/9;
  }

  .especial-featured-title {
    font-size: var(--text-xl);
  }

  .especial-tags-inner {
    padding: 0 var(--space-4);
  }

  .especial-author-box-wrap {
    padding: 0 var(--space-4);
  }

  .especial-post-nav {
    padding: 0 var(--space-4) var(--space-8);
  }
}

@media (max-width: 480px) {
  .especial-hero {
    height: 80vh;
  }

  .especial-tabs {
    gap: 0;
  }

  .especial-cat-tab {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   SPORTS INTEGRATION — TheSportsDB
   v2.4.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout base
   -------------------------------------------------------------------------- */
.sports-main {
  padding-top: 0;
}

.sports-container {
  padding-top: var(--space-6);
  padding-bottom: var(--space-12);
}

.sports-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.sports-col-main {
  min-width: 0;
}

.sports-col-sidebar {
  min-width: 0;
}

.sports-section {
  margin-bottom: var(--space-12);
}

.sports-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
}

.sports-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
}

.sports-section-header .sports-section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sports-empty {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-6);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.sports-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
}

.sports-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.sports-breadcrumb a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Ticker horizontal
   -------------------------------------------------------------------------- */
.sports-ticker-wrapper {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  overflow: hidden;
  height: 40px;
  position: relative;
}

.sports-ticker-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: rgba(0,0,0,.2);
  height: 100%;
  flex-shrink: 0;
}

.sports-ticker {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.sports-ticker::-webkit-scrollbar {
  display: none;
}

.sports-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.2);
  height: 40px;
  transition: background 0.2s;
}

.ticker-item:hover {
  background: rgba(0,0,0,.15);
  color: #fff;
}

.ticker-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ticker-score {
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0 var(--space-2);
}

.ticker-team {
  font-size: var(--text-sm);
}

.ticker-league {
  font-size: var(--text-xs);
  opacity: 0.75;
  padding-left: var(--space-1);
}

.ticker-arrow {
  background: rgba(0,0,0,.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.ticker-arrow:hover {
  background: rgba(0,0,0,.35);
}

/* --------------------------------------------------------------------------
   League Tabs
   -------------------------------------------------------------------------- */
.sports-league-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 0;
  padding-bottom: 0;
}

.league-tab {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.league-tab:hover {
  color: var(--color-heading);
}

.league-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Fixture Cards (jogos)
   -------------------------------------------------------------------------- */
.fixture-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  transition: box-shadow 0.2s;
}

.fixture-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.fixture-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.fixture-league {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fixture-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.fixture-team--away {
  flex-direction: row-reverse;
  text-align: right;
}

.fixture-team img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.fixture-vs {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.fixture-venue {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.fixtures-date-header {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-3) 0 var(--space-2);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.fixtures-date-header:first-child {
  border-top: none;
  margin-top: 0;
}

.badge-placeholder {
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Standings Table
   -------------------------------------------------------------------------- */
.standings-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  background: var(--color-card-bg);
  color: var(--color-text);
  cursor: pointer;
}

.standings-league-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.standings-table thead th {
  text-align: center;
  padding: var(--space-2) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}

.standings-table thead th.col-team {
  text-align: left;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.standings-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.col-pos { width: 36px; text-align: center; }
.col-team { min-width: 140px; }
.col-num { width: 36px; text-align: center; color: var(--color-text-muted); }
.col-pts { color: var(--color-heading) !important; }
.col-form { width: 80px; text-align: center; }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-bg-alt);
  color: var(--color-heading);
}

.pos-badge.zone-champions { background: #166534; color: #fff; }
.pos-badge.zone-europa    { background: #1e40af; color: #fff; }
.pos-badge.zone-relegation { background: #991b1b; color: #fff; }

.standing-row td {
  padding: var(--space-2) var(--space-2);
}

.standing-row.zone-champions { border-left: 3px solid #16a34a; }
.standing-row.zone-europa    { border-left: 3px solid #2563eb; }
.standing-row.zone-relegation { border-left: 3px solid #dc2626; }

.standing-team-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 600;
}

.standing-team-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin: 0 1px;
}

.form-w { background: #16a34a; }
.form-d { background: #ca8a04; }
.form-l { background: #dc2626; }

.standings-legend {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: var(--space-1);
}

.legend-dot.zone-champions { background: #16a34a; }
.legend-dot.zone-europa    { background: #2563eb; }
.legend-dot.zone-relegation { background: #dc2626; }

/* --------------------------------------------------------------------------
   Result Cards
   -------------------------------------------------------------------------- */
.results-group {
  margin-bottom: var(--space-8);
}

.results-league-name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.result-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  text-decoration: none;
  transition: box-shadow 0.2s;
  border-left: 4px solid var(--color-border);
}

.result-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.result-card.home-win { border-left-color: #16a34a; }
.result-card.away-win { border-left-color: #dc2626; }
.result-card.draw     { border-left-color: #ca8a04; }

.result-team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-heading);
}

.result-away {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.result-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.result-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
}

.score-num { font-variant-numeric: tabular-nums; }
.score-sep { color: var(--color-text-muted); }

.result-date {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sidebar blocks
   -------------------------------------------------------------------------- */
.sports-sidebar-block {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.sports-sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-news-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
}

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

.sidebar-news-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-news-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.sidebar-news-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-news-item:hover .sidebar-news-title {
  color: var(--color-accent);
}

.sidebar-news-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Countdown */
.sports-countdown-block .countdown-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.countdown-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
}

.countdown-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.countdown-vs {
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-accent);
}

.countdown-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.countdown-league { font-weight: 600; }

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.countdown-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Leagues list */
.leagues-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leagues-list li {
  border-bottom: 1px solid var(--color-border);
}

.leagues-list li:last-child { border-bottom: none; }

.league-link {
  display: flex;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.league-link:hover { color: var(--color-accent); }

.sports-back-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.sports-back-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Team page
   -------------------------------------------------------------------------- */
.team-header {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.team-badge-large img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.team-name {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
}

.team-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.team-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.team-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-jersey img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.team-details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.team-details-list dt {
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.team-details-list dd {
  color: var(--color-heading);
  margin: 0;
}

.team-details-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.stadium-thumb {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Squad */
.squad-position-title {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: var(--space-5) 0 var(--space-3);
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.player-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-color: var(--color-accent);
}

.player-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-bg-alt);
}

.player-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

.player-nation {
  font-size: 10px;
  color: var(--color-text-muted);
}

.player-number {
  font-size: 10px;
  color: var(--color-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Player page
   -------------------------------------------------------------------------- */
.player-header {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.player-photo-large img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.player-header-info { flex: 1; }

.player-full-name {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
}

.player-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.player-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.player-meta-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.player-team-badge {
  background: var(--color-accent);
  color: #fff;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
}

.honours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honour-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.honour-item:last-child { border-bottom: none; }
.honour-trophy { font-size: var(--text-base); }
.honour-name   { font-weight: 600; color: var(--color-heading); flex: 1; }
.honour-team   { color: var(--color-text-muted); }
.honour-season { color: var(--color-text-muted); font-size: var(--text-xs); }

.former-teams-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.former-team-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

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

.former-team-item a {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.former-team-years {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.milestones-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.milestone-date {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
  font-size: var(--text-xs);
}

.milestone-desc { color: var(--color-text); }

.player-fanart {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.sidebar-team-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  font-size: var(--text-base);
}

.sidebar-team-link:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   Event / Jogo page
   -------------------------------------------------------------------------- */
.event-header {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.event-league-info {
  text-align: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.event-league {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.scoreboard-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  text-align: center;
  flex: 1;
}

.scoreboard-team--away { flex-direction: column; }

.scoreboard-team img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.scoreboard-team-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
}

.scoreboard-team:hover .scoreboard-team-name { color: var(--color-accent); }

.scoreboard-center { text-align: center; flex-shrink: 0; }

.scoreboard-score {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.score-big {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-upcoming {
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
}

.score-sep-big {
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
  font-weight: 300;
}

.scoreboard-status {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: var(--space-2);
}

.scoreboard-datetime {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.event-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Timeline */
.event-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.timeline-home { border-left: 3px solid var(--color-primary); }
.timeline-away { border-left: 3px solid var(--color-accent); flex-direction: row-reverse; }

.timeline-minute {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  min-width: 32px;
}

.timeline-icon { font-size: var(--text-base); }
.timeline-player { font-weight: 600; color: var(--color-heading); }
.timeline-assist { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Stats bars */
.event-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stats-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.stats-header span:last-child { text-align: right; }

.stat-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.stat-home-val { font-weight: 700; color: var(--color-heading); text-align: right; }
.stat-away-val { font-weight: 700; color: var(--color-heading); }

.stat-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-bar-label {
  font-size: 10px;
  text-align: center;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-bar {
  display: flex;
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-border);
}

.stat-bar-home {
  background: var(--color-primary);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.stat-bar-away {
  background: var(--color-accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* Lineups */
.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.lineup-side h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  text-align: center;
}

.lineup-away h3 { text-align: right; }

.lineup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lineup-player {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.lineup-player:last-child { border-bottom: none; }

.lineup-sub { opacity: 0.65; }

.lineup-num {
  width: 24px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.lineup-player a {
  flex: 1;
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 600;
}

.lineup-player a:hover { color: var(--color-accent); }

.lineup-pos {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.sub-badge {
  font-size: 10px;
  background: #ca8a04;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}

.event-video iframe {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.video-external-link {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.event-thumb {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Header mini ticker (sports bar)
   -------------------------------------------------------------------------- */
.header-sports-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.sports-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
}

.sports-bar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  padding: 0 var(--space-3);
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  height: 32px;
  display: flex;
  align-items: center;
}

.sports-bar-items {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
}

.sports-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text);
  text-decoration: none;
  border-right: 1px solid var(--color-border);
  height: 32px;
  white-space: nowrap;
}

.sports-bar-item:hover { color: var(--color-accent); }

.sports-bar-item .score-badge {
  font-weight: 700;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
}

.sports-bar-more {
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sports-bar-more:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] .fixture-card,
[data-theme="dark"] .result-card,
[data-theme="dark"] .player-card,
[data-theme="dark"] .sports-sidebar-block,
[data-theme="dark"] .team-header,
[data-theme="dark"] .player-header,
[data-theme="dark"] .event-header {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .fixture-vs,
[data-theme="dark"] .player-meta-badge,
[data-theme="dark"] .stat-item {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .countdown-num {
  background: var(--color-accent);
}

[data-theme="dark"] .standings-select {
  background: var(--color-card-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .standings-table tbody tr:hover {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .sports-ticker-wrapper {
  background: #7a0000;
}

[data-theme="dark"] .header-sports-bar {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .timeline-entry {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .stat-bar {
  background: var(--color-border);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sports-two-col {
    grid-template-columns: 1fr;
  }

  .sports-col-sidebar {
    order: -1;
  }

  .sports-countdown-block,
  .sports-all-leagues {
    display: none;
  }
}

@media (max-width: 768px) {
  .team-header,
  .player-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-meta-row,
  .player-header-meta {
    justify-content: center;
  }

  .scoreboard-score { gap: var(--space-2); }
  .score-big { font-size: var(--text-3xl); }
  .event-scoreboard { gap: var(--space-4); }
  .scoreboard-team img { width: 56px; height: 56px; }
  .scoreboard-team-name { font-size: var(--text-sm); }

  .lineups-grid { grid-template-columns: 1fr; }

  .squad-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .standings-table .col-form { display: none; }

  .fixture-team { font-size: var(--text-sm); }

  .sports-bar-items .sports-bar-item:nth-child(n+3) { display: none; }

  .sports-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .standings-table .col-num:not(.col-pts) { display: none; }
  .standings-table .col-form { display: none; }

  .result-team { font-size: var(--text-xs); }
  .result-score { font-size: var(--text-lg); }

  .fixture-teams { gap: var(--space-2); }
  .fixture-team { font-size: var(--text-xs); }
  .fixture-team img { width: 24px; height: 24px; }

  .ticker-team { display: none; }
}
