/* ==========================================================================
   TR SERIES — DARK ENTERTAINMENT PORTAL PRODUCTION STYLESHEET
   Style: Dark Charcoal / Near-Black Theme with Restrained Red Accent
   Visual Reference: Screenshot 2 & skill.md
   ========================================================================== */

:root {
  /* Dark Entertainment Surface Palette */
  --bg-page: #101217;
  --bg-card: #181a22;
  --bg-card-elevated: #20232e;
  --bg-header: #14161f;
  --bg-input: #1a1c25;
  --border-subtle: #292d3b;
  --border-card: #272a38;
  --border-focus: #e50914;

  /* Typography & Text */
  --text-main: #f0f2f8;
  --text-heading: #ffffff;
  --text-muted: #9ba1b4;
  --text-sub: #fcb900;

  /* Brand Accents */
  --accent-red: #e50914;
  --accent-red-hover: #b80710;
  --accent-gold: #fcb900;
  --accent-blue: #0693e3;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 10px 28px rgba(229, 9, 20, 0.18);
  --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   GLOBAL RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: block;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Offscreen SEO semantic headings (accessible to screen readers and bots) */
.screen-reader-text,
.entry-title-seo {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  word-wrap: normal !important;
}

/* Keyboard focus states */
:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}
body.using-mouse :focus {
  outline: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 999;
}

.inside-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name .accent {
  color: var(--accent-red);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Header Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.menu-list li {
  position: relative;
}

.menu-list a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #d8dde8;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-list a:hover,
.menu-list a:focus,
.menu-list li.current a {
  background-color: rgba(229, 9, 20, 0.12);
  color: #ffffff;
}

.menu-list li.current a {
  border-left: 2px solid var(--accent-red);
}

/* Dropdown */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  min-width: 210px;
  list-style: none;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.dropdown-menu li a {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.mobile-toggle-btn:hover {
  background-color: var(--bg-card);
}

/* ==========================================================================
   LAYOUT STRUCTURE (2-COLUMN RESPONSIVE ASYMMETRIC GRID)
   ========================================================================== */
.site-container {
  max-width: 1280px;
  width: 100%;
  margin: 24px auto;
  padding: 0 16px;
  flex: 1;
}

.two-column-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.main-content-column {
  flex: 0 0 71%;
  max-width: 71%;
  min-width: 0;
}

.sidebar-column {
  flex: 0 0 27%;
  max-width: 27%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Intro Portal Card */
.intro-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.intro-summary-card h1,
.intro-summary-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-summary-card h1::before,
.intro-summary-card h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.intro-summary-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Series Feed List (Stacked Wide Cards) */
.series-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.series-poster-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.series-poster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: var(--shadow-card-hover);
}

.series-poster-card img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* Bottom SEO / Editorial Guide */
.editorial-guide-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  margin-top: 10px;
  box-shadow: var(--shadow-card);
}

.editorial-guide-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-guide-card h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.editorial-guide-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.editorial-guide-card ol {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
}

.editorial-guide-card ol li {
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.editorial-guide-card ol li strong a {
  color: #ffffff;
  font-weight: 600;
}

.editorial-guide-card ol li strong a:hover {
  color: var(--accent-red);
}

/* FAQ Accordion */
.faq-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.faq-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  color: var(--accent-red);
  font-size: 18px;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: none;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   SIDEBAR WIDGETS (CLEAN & NON-INTRUSIVE)
   ========================================================================== */
.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

/* Search widget */
.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
}

.search-btn {
  background-color: #000000;
  color: #ffffff !important;
  border: 1px solid #484e63;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.search-btn:hover {
  background-color: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Popular Series / Links list */
.sidebar-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: var(--bg-page);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13.5px;
  color: #d2d7e5;
  transition: all 0.15s ease;
}

.sidebar-links-list li a:hover {
  background-color: rgba(229, 9, 20, 0.09);
  border-color: rgba(229, 9, 20, 0.35);
  color: #ffffff;
  padding-left: 13px;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Filter buttons */
.filter-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* ==========================================================================
   EPISODE BUTTONS & DETAIL PAGE COMPONENTS (.maxbutton)
   ========================================================================== */
.maxbutton {
  position: relative;
  text-decoration: none !important;
  display: inline-block;
  vertical-align: middle;
  width: 160px;
  height: 42px;
  margin: 4px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background-color: #000000;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.maxbutton:hover {
  border-color: #000000;
  background-color: #ffffff;
}

.maxbutton .mb-text {
  color: #ffffff;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  display: block;
  padding-top: 10px;
}

.maxbutton:hover .mb-text {
  color: #000000;
}

/* 16:9 Video Container */
.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background-color: #000000;
  border-radius: 0 !important;
  overflow: hidden;
  margin: 16px 0;
  position: relative;
}

.video-player-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 0 !important;
  display: block;
}

/* TR Series Ad-Shield Styles */
.tr-ad-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 208, 132, 0.12);
  border: 1px solid rgba(0, 208, 132, 0.4);
  border-radius: 20px;
  padding: 4px 10px;
}

.shield-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: #00d084;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #00d084;
  animation: shieldPulse 1.8s infinite ease-in-out;
}

@keyframes shieldPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ad-shield-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #0d0f17;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
}

.shield-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
}

.shield-lock-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.shield-notice-text {
  font-size: 12.5px;
  color: #c0c6d8;
  line-height: 1.45;
}

.shield-notice-text strong {
  color: #00d084;
}

.shield-tags-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shield-status-pill {
  font-size: 11px;
  font-weight: 700;
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Season Tabs */
.season-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.season-tab-btn {
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.season-tab-btn:hover,
.season-tab-btn.active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Episode Grid Container */
.episode-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.episode-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  border: 1px solid #484e63;
  border-radius: 8px;
  padding: 10px 8px;
  text-decoration: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 52px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.episode-grid-btn:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
}

.episode-grid-btn:hover .ep-num {
  color: #000000;
}

.episode-grid-btn .ep-num {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.episode-grid-btn .ep-badge-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.episode-grid-btn .ep-pill {
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.ep-pill-urdu {
  background: rgba(252, 185, 0, 0.2);
  color: var(--accent-gold);
}

.ep-pill-eng {
  background: rgba(6, 147, 227, 0.2);
  color: #72c5ff;
}

.ep-pill-dl {
  background: rgba(0, 208, 132, 0.2);
  color: #00d084;
}

/* Server Switcher Bar */
.server-switcher-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.server-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.server-btn {
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.server-btn:hover,
.server-btn.active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Direct Downloads Bar */
.download-section-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
}

.download-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.dl-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.dl-pill-btn:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Episode Previous / Next Navigation Buttons */
.ep-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.ep-nav-btn:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Social Media Buttons & Grids */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000000;
  border: 1px solid #484e63;
  color: #ffffff !important;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.social-btn svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.social-btn:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}

.social-btn:hover svg {
  transform: scale(1.12);
}

.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.social-bar-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}


/* Comments Area */
.comments-area {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
}

.comment-reply-title {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.must-log-in {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  padding: 28px 20px 24px;
}

.inside-site-info {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  list-style: none;
}

.footer-nav a {
  font-size: 13.5px;
  color: var(--text-muted);
}

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

.copyright-bar {
  font-size: 12.5px;
  color: #72788d;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .main-content-column {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .sidebar-column {
    flex: 0 0 32%;
    max-width: 32%;
  }
}

/* Mobile & Small Tablet (<= 768px) */
@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  .main-nav.toggled {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .menu-list li a {
    padding: 10px 14px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: var(--bg-page);
    padding-left: 14px;
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .inside-header {
    flex-wrap: wrap;
  }

  .two-column-layout {
    flex-direction: column;
    gap: 20px;
  }

  .main-content-column,
  .sidebar-column {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .site-container {
    padding: 0 10px;
    margin: 14px auto;
  }

  .intro-summary-card,
  .editorial-guide-card,
  .sidebar-widget {
    padding: 16px;
    border-radius: 8px;
  }

  .video-player-container {
    min-height: 220px;
  }

  .maxbutton {
    width: 46%;
    margin: 3px;
  }
}

@media (max-width: 480px) {
  .maxbutton {
    width: 100%;
    margin: 4px 0;
  }
}
