/*
Theme Name: SoloTV v2
Theme URI: https://making.cl
Author: Making.cl
Author URI: https://making.cl
Description: Tema oficial de SoloTV v2 — El Canal de Valparaíso. Completamente compatible con WordPress 7.0 y PHP 8.2+.
Version: 2.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solotv
Tags: dark, broadcast, television, chile, valparaiso, custom-menu, featured-images, custom-logo, theme-options
*/

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:           #0d0d0d;
  --color-surface:      #161616;
  --color-red:          #e8001c;
  --color-red-dark:     #b8001a;
  --color-white:        #ffffff;
  --color-gray:         #8a8a8a;
  --color-border:       #2a2a2a;
  --font-display:       'Oswald', 'Arial Narrow', sans-serif;
  --font-body:          'Nunito Sans', 'Segoe UI', sans-serif;
  --logo-height:        44px;
  --logo-height-mobile: min(var(--logo-height), 40px);
  --logo-corp-height:   56px;
  --logo-corp-height-mobile: min(var(--logo-corp-height), 48px);
  --hero-overlay:       0.92;
  --hero-title-size:    clamp(56px, 8vw, 110px);
  --nav-padding:        12px;
  --nav-padding-mobile: 10px;
  --footer-cols:        repeat(4, 1fr);
  --header-height: calc(var(--logo-height) + var(--nav-padding) * 2);
  --header-height-mobile: calc(var(--logo-height-mobile) + var(--nav-padding-mobile) * 2);
  --admin-bar-height: 0px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* Accessibility: Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* ==========================================================================
   2. ADMIN BAR CORRECTIONS
   ========================================================================== */
.admin-bar {
  --admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar {
    --admin-bar-height: 46px;
  }
}
.admin-bar #site-header {
  top: var(--admin-bar-height);
}
.admin-bar #hero {
  padding-top: calc(var(--header-height) + var(--admin-bar-height));
}
.admin-bar #page-content {
  padding-top: calc(var(--header-height) + var(--admin-bar-height) + 40px);
}
@media screen and (max-width: 768px) {
  .admin-bar #hero {
    padding-top: calc(var(--header-height-mobile) + var(--admin-bar-height));
  }
  .admin-bar #page-content {
    padding-top: calc(var(--header-height-mobile) + var(--admin-bar-height) + 32px);
  }
}

/* ==========================================================================
   3. HEADER & GLASSMORPHISM
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--nav-padding) 0;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  overflow: visible;
}

/* Scroll Active style handled via JS variable changes */
#site-header.scrolled {
  background: rgba(8, 8, 8, 0.95);
  border-color: rgba(232, 0, 28, 0.2);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  overflow: visible;
}

/* ==========================================================================
   4. LOGO
   ========================================================================== */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.site-logo a {
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-logo img,
.site-logo .custom-logo {
  height: var(--logo-height) !important;
  width: auto !important;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.site-logo .logo-placeholder {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -1px;
  font-size: calc(var(--logo-height) * 0.6);
  line-height: 1;
  white-space: nowrap;
}
.site-logo .logo-solo {
  color: var(--color-white);
}
.site-logo .logo-tv {
  color: var(--color-red);
}
.logo-icon {
  width: calc(var(--logo-height) * 0.8);
  height: calc(var(--logo-height) * 0.8);
  margin-right: 6px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-logo a:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

/* ==========================================================================
   5. NAVIGATION & DROPDOWNS (CONSOLIDATED)
   ========================================================================== */
#site-navigation {
  overflow: visible;
}
#primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}
#primary-menu > li {
  position: relative;
}
#primary-menu > li > a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
#primary-menu > li > a:hover,
#primary-menu > li:hover > a {
  color: var(--color-red);
  background: rgba(232, 0, 28, 0.08);
}
#primary-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  margin-left: 2px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
#primary-menu > li.menu-item-has-children:hover > a::after,
#primary-menu > li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}

/* Sub-menus dropdown */
#primary-menu > li > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  min-width: 210px;
  background: #111111;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-red);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  width: auto;
  float: none;
}

#primary-menu > li.menu-item-has-children:hover > ul.sub-menu,
#primary-menu > li.menu-item-has-children.is-open > ul.sub-menu {
  display: block;
  animation: submenu-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes submenu-appear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#primary-menu > li > ul.sub-menu > li {
  display: block;
  float: none;
  position: relative;
  width: 100%;
}
#primary-menu > li > ul.sub-menu > li > a {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 20px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, padding-left 0.15s ease;
  border: none;
  background: transparent;
}
#primary-menu > li > ul.sub-menu > li > a:hover {
  color: var(--color-white);
  background: rgba(232, 0, 28, 0.12);
  padding-left: 26px;
}
#primary-menu > li > ul.sub-menu > li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sub-submenús (3er nivel) */
#primary-menu > li > ul.sub-menu > li > ul.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 2px;
  border-top: 2px solid var(--color-red);
  border-radius: 0 6px 6px 6px;
}
#primary-menu > li > ul.sub-menu > li.menu-item-has-children:hover > ul.sub-menu,
#primary-menu > li > ul.sub-menu > li.menu-item-has-children.is-open > ul.sub-menu {
  display: block;
  animation: submenu-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   6. PREMIUM BUTTONS & INTERACTIONS
   ========================================================================== */
.nav-live-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: var(--color-white) !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 0, 28, 0.2);
}
.nav-live-btn:hover {
  background: var(--color-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 0, 28, 0.4);
}
.nav-live-btn:active {
  transform: translateY(1px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger transition on open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   7. HERO SECTION (FOLD OPTIMIZED)
   ========================================================================== */
#hero {
  position: relative;
  height: calc(100vh - 108px - 44px - var(--admin-bar-height, 0px));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #050505;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.85;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, var(--hero-overlay)) 0%,
    rgba(10, 10, 10, 0.82) 45%,
    rgba(10, 10, 10, 0.30) 70%,
    rgba(10, 10, 10, 0.05) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 20px;
  animation: fade-in-left 0.8s ease forwards;
}
@keyframes fade-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -2px;
  max-width: 600px;
  margin-bottom: 24px;
}
.hero-title .red {
  color: var(--color-red);
}
.hero-title .script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 700;
  color: var(--color-red);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  line-height: 1.1;
  text-shadow: 2px 4px 10px rgba(232, 0, 28, 0.15);
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, .85);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-subtitle .highlight {
  color: var(--color-red);
  font-weight: 700;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Premium Buttons Styling */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 8px;
  border: 2px solid var(--color-red);
  box-shadow: 0 4px 15px rgba(232, 0, 28, 0.25);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 0, 28, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: translateY(0);
}

/* ==========================================================================
   8. FEATURES BAR (HEIGHT FIXED FOR FOLD ALIGNMENT)
   ========================================================================== */
#features-bar {
  background: var(--color-surface);
  border-top: 3px solid var(--color-red);
  border-bottom: 1px solid var(--color-border);
  height: 108px; /* Altura exacta para alinear el fold con el ticker */
  box-sizing: border-box;
}
.features-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}
.feature-item {
  display: flex;
  align-items: center; /* Centrado vertical */
  gap: 16px;
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
  height: 100%;
}
.feature-item:hover {
  background-color: rgba(255, 255, 255, 0.015);
}
.feature-item:last-child {
  border-right: none;
}
.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-red);
  transition: transform 0.3s ease;
}
.feature-item:hover .feature-icon {
  transform: scale(1.1) translateY(-2px);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-text h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.2;
}
.feature-text p {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.4;
}

/* ==========================================================================
   9. NEWS TICKER (HARDWARE ACCELERATED)
   ========================================================================== */
#news-ticker {
  background: var(--color-red);
  height: 44px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #8a0010;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease;
  color: var(--color-white) !important;
}
a.ticker-label:hover {
  background: var(--color-red) !important;
}
.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.ticker-scroll-area {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 35s linear infinite;
  transform: translate3d(0, 0, 0); /* Force GPU Rendering */
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item::before {
  content: '•';
  font-size: 16px;
}

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

/* ==========================================================================
   10. LAYOUTS & PAGE CONTAINERS
   ========================================================================== */
#page-content {
  width: 100%;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.page-entry-header {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 24px 32px 32px;
  border-bottom: 1px solid var(--color-border);
}
.page-entry-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--color-white);
  line-height: 1.1;
}
.page-entry-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-red);
  margin-top: 12px;
  border-radius: 2px;
}
.page-entry-meta {
  font-size: 13px;
  color: var(--color-gray);
  margin-top: 12px;
}

.page-content-wrap {
  width: 100%;
}

/* Custom Width Configurations based on dynamic settings */
#page-content.layout-boxed .page-content-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
#page-content.layout-wide .page-content-wrap {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
#page-content.layout-narrow .page-content-wrap {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
#page-content.layout-centered .page-content-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  text-align: center;
}
#page-content.layout-centered .page-content-wrap p,
#page-content.layout-centered .page-content-wrap li,
#page-content.layout-centered .page-content-wrap h1,
#page-content.layout-centered .page-content-wrap h2,
#page-content.layout-centered .page-content-wrap h3,
#page-content.layout-centered .page-content-wrap h4 {
  text-align: center;
}

/* Entry Content Styles */
.page-entry-content {
  color: rgba(255, 255, 255, .88);
  line-height: 1.8;
  font-size: 16px;
}
.page-entry-content h1,
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
  font-family: var(--font-display);
  color: var(--color-white);
  margin: 32px 0 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.page-entry-content p {
  margin-bottom: 20px;
}
.page-entry-content a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.page-entry-content a:hover {
  color: var(--color-white);
}
.page-entry-content ul,
.page-entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.page-entry-content ul {
  list-style: disc;
}
.page-entry-content ol {
  list-style: decimal;
}
.page-entry-content li {
  margin-bottom: 8px;
}
.page-entry-content img {
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}
.page-entry-content figure {
  margin: 32px 0;
}
.page-entry-content figcaption {
  font-size: 12px;
  color: var(--color-gray);
  margin-top: 8px;
  text-align: center;
}
.page-entry-content blockquote {
  border-left: 3px solid var(--color-red);
  padding: 16px 24px;
  margin: 24px 0;
  color: var(--color-gray);
  font-style: italic;
  background: var(--color-surface);
  border-radius: 0 4px 4px 0;
}
.page-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.page-entry-content th,
.page-entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.page-entry-content th {
  background: var(--color-surface);
  color: var(--color-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.page-entry-content iframe,
.page-entry-content video,
.page-entry-content audio {
  display: block;
  max-width: 100%;
}

/* Embed wrapper and video containers */
.page-entry-content .wp-block-embed {
  margin: 32px 0;
}
.page-entry-content .wp-block-embed__wrapper {
  position: relative;
}
.page-entry-content .wp-block-embed-youtube .wp-block-embed__wrapper::before,
.page-entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.page-entry-content .wp-block-embed-youtube iframe,
.page-entry-content .wp-block-embed-vimeo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Block Buttons */
.page-entry-content .wp-block-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-entry-content .wp-block-button__link {
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 10px rgba(232, 0, 28, 0.2);
}
.page-entry-content .wp-block-button__link:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.page-entry-content hr,
.page-entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* Standard WP Alignments */
.page-entry-content .aligncenter {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.page-entry-content .alignwide {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.page-entry-content .alignfull {
  display: block;
  width: 100%;
  max-width: 100%;
}
.page-entry-content .alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}
.page-entry-content .alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}
.page-entry-content::after {
  content: '';
  display: table;
  clear: both;
}

.no-posts {
  color: var(--color-gray);
  font-size: 16px;
  text-align: center;
  padding: 48px 0;
}

.solotv-admin-hint {
  font-size: 12px;
  color: #888;
  border: 1px dashed #444;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   11. SITE FOOTER
   ========================================================================== */
#site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--color-border);
  padding: 56px 32px 0;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-widgets {
  display: grid;
  grid-template-columns: var(--footer-cols, repeat(4,1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-widget-area {
  min-width: 0;
}
.footer-widget-area .widget-title,
.footer-widget-area h2.widget-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.footer-widget-area ul {
  list-style: none;
}
.footer-widget-area ul li {
  margin-bottom: 10px;
}
.footer-widget-area ul li a,
.footer-widget-area .footer-nav-menu li a,
.footer-social-list li a {
  font-size: 13px;
  color: var(--color-gray);
  transition: color .2s ease;
}
.footer-widget-area ul li a:hover,
.footer-widget-area .footer-nav-menu li a:hover,
.footer-social-list li a:hover {
  color: var(--color-white);
}
.footer-widget-area p {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer-widget-area a {
  color: var(--color-gray);
  transition: color .2s ease;
}
.footer-widget-area a:hover {
  color: var(--color-white);
}

/* Footer Corporate Section */
#footer-corporate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.footer-corp-logo {
  flex-shrink: 0;
}
.footer-corp-logo img {
  height: var(--logo-corp-height, 56px) !important;
  width: auto !important;
  max-width: min(400px, 100%);
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}
.footer-corp-logo .corp-logo-text {
  font-family: var(--font-display);
  font-size: calc(var(--logo-corp-height, 56px) * 0.4);
  font-weight: 700;
  line-height: 1;
  transition: font-size 0.3s ease;
}
.footer-corp-logo .corp-logo-text .red {
  color: var(--color-red);
}
.footer-corp-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  margin: 0;
}
.footer-corp-desc {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

#footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--color-gray);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-credit-link {
  color: var(--color-red);
  transition: color .2s ease;
}
.footer-credit-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   12. PLUGIN COMPATIBILITY & OVERFLOW FIXES (INTEGRATED)
   ========================================================================== */
/* Cut overflow in boxed/narrow content templates without breaking internal scrolling */
#page-content.layout-boxed .page-content-wrap,
#page-content.layout-narrow .page-content-wrap,
#page-content.layout-centered .page-content-wrap {
  overflow: hidden !important;
}

/* AYG Thumbnails grid: adjust width relative to container, not viewport */
.page-content-wrap .ayg-row,
.page-content-wrap .ayg-gallery {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.page-content-wrap .ayg-col {
  box-sizing: border-box !important;
}

.page-content-wrap .ayg-thumbnail-image,
.page-content-wrap .ayg-thumbnail-media img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

/* CLP Schedule: adjust to container widths */
.page-content-wrap .clp-schedule-wrapper {
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* ==========================================================================
   13. MEDIA QUERIES & RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1200px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  #hero {
    height: calc(100dvh - 90px - 44px - var(--admin-bar-height, 0px));
    min-height: 400px;
  }
  #features-bar {
    height: 90px;
    overflow: hidden;
  }
  .features-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    gap: 16px;
    grid-template-columns: none;
    height: 100%;
    align-items: center;
    scrollbar-width: none;
  }
  .features-inner::-webkit-scrollbar {
    display: none;
  }
  .feature-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    padding: 0 16px;
    border-right: 1px solid var(--color-border);
    border-top: none !important;
    height: 100%;
    align-items: center;
    box-sizing: border-box;
  }
  .feature-item:last-child {
    border-right: none;
  }
  .feature-icon {
    width: 32px;
    height: 32px;
  }
  .feature-text h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .feature-text p {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  #site-header {
    padding: var(--nav-padding-mobile) 0;
  }
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .site-logo img,
  .site-logo .custom-logo {
    height: var(--logo-height-mobile) !important;
    max-width: 160px !important;
  }
  .site-logo .logo-placeholder {
    font-size: calc(var(--logo-height-mobile) * 0.6) !important;
  }
  .logo-icon {
    width: calc(var(--logo-height-mobile) * 0.8) !important;
    height: calc(var(--logo-height-mobile) * 0.8) !important;
  }
  .nav-live-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
    gap: 6px !important;
  }
  .menu-toggle {
    display: flex;
  }
  
  /* Mobile Menu Styles */
  #primary-menu {
    display: none;
  }
  #primary-menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    background: #0d0d0d;
    border-bottom: 2px solid var(--color-red);
    z-index: 998;
    max-height: 80vh;
    overflow-y: auto;
    padding: 8px 0;
  }
  #primary-menu.mobile-open > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  #primary-menu.mobile-open > li > a {
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
    font-size: 13px;
    width: 100%;
    border-radius: 0;
  }
  
  /* Mobile Sub-menus dropdown */
  #primary-menu.mobile-open > li > ul.sub-menu {
    display: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0;
    animation: none;
  }
  #primary-menu.mobile-open > li.is-open > ul.sub-menu {
    display: block !important;
  }
  #primary-menu.mobile-open > li > ul.sub-menu > li > a {
    padding: 11px 20px 11px 36px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
  }
  #primary-menu.mobile-open > li > ul.sub-menu > li > a:hover {
    color: var(--color-white);
    background: rgba(232, 0, 28, 0.1);
    padding-left: 40px;
  }
  
  /* FOLD ACCORDANCE HEIGHTS FOR MOBILE viewports */
  #hero {
    height: calc(100dvh - 90px - 44px - var(--admin-bar-height));
    min-height: 340px;
    padding-top: 0;
  }
  
  .hero-content {
    padding: 16px 20px 20px;
    margin-top: var(--header-height-mobile);
    height: calc(100% - var(--header-height-mobile));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  .hero-label {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 2px;
  }
  .hero-title {
    font-size: clamp(32px, 8vw, 46px);
    margin-bottom: 12px;
    line-height: 1.0;
  }
  .hero-title .script {
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1.0;
    margin-top: 4px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 100%;
  }
  .hero-buttons {
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 18px;
    font-size: 12px;
    border-radius: 6px;
  }
  
  /* Mobile Swipe Bar for Features inherited from max-width: 1024px media query */

  #page-content {
    padding-top: calc(var(--header-height-mobile) + 32px);
  }
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #footer-copyright {
    flex-direction: column;
    text-align: center;
  }
  .page-entry-header {
    padding: 16px 20px 24px;
  }
  
  #page-content.layout-boxed .page-content-wrap,
  #page-content.layout-narrow .page-content-wrap,
  #page-content.layout-centered .page-content-wrap {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-entry-content .alignleft,
  .page-entry-content .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .footer-corp-logo img {
    height: var(--logo-corp-height-mobile, 48px) !important;
  }
  .footer-corp-logo .corp-logo-text {
    font-size: calc(var(--logo-corp-height-mobile, 48px) * 0.4) !important;
  }
}

@media (max-width: 400px) {
  .nav-live-btn span[data-customizer] {
    display: none;
  }
  .nav-live-btn {
    padding: 8px 10px !important;
  }
}
