/* =========================================================
   VSP Media & Network — Telugu News Portal
   Core design system & desktop layout
   ========================================================= */

:root {
  --primary: #001944;
  --primary-dark: #00102f;
  --primary-soft: #e8ecf3;
  --black: #111111;
  --dark-gray: #333333;
  --medium-gray: #777777;
  --light-gray: #EEEEEE;
  --border: #E5E5E5;
  --bg: #FFFFFF;
  --soft-bg: #F7F7F7;
  --white: #FFFFFF;
  --overlay: rgba(10, 10, 10, 0.62);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --container: 1240px;
  --header-h: 100px;
  --nav-h: 46px;
  --radius: 4px;
  --font-telugu: "Noto Sans Telugu", "Source Sans 3", sans-serif;
  --font-ui: "Source Sans 3", "Noto Sans Telugu", sans-serif;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-telugu);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

/* ---------- Layout ---------- */
.site-wrapper {
  min-width: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.full-bleed {
  width: 100%;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}

h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline {
  font-weight: 700;
  color: var(--black);
  transition: color var(--transition);
}

.headline:hover,
a:hover .headline {
  color: var(--primary);
}

.news-excerpt,
.excerpt {
  color: var(--medium-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.top-header {
  background: #ffffff;
  border-bottom: 1px solid var(--light-gray);
}

.top-header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 6px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img {
  height: 88px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.footer-brand .site-logo img,
.offcanvas-header .site-logo img {
  height: 72px;
  max-width: 240px;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-radius: 4px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
}

.logo-sub {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--primary);
}

.header-ad-slot {
  position: relative;
  display: block;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  background: var(--soft-bg);
}

.header-ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-kicker {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  z-index: 1;
}

.ad-banner--image {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  background: #001944;
  min-height: 90px;
}

.ad-banner--image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.ad-banner--sidebar.ad-banner--image img {
  height: 250px;
  object-fit: cover;
}

.ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 70%, transparent 100%);
  text-align: left;
}

.ad-overlay strong {
  font-size: 18px;
  font-weight: 800;
  display: block;
}

.ad-overlay em {
  font-style: normal;
  font-size: 13px;
  opacity: 0.92;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-header .icon-btn {
  color: var(--dark-gray);
}

.top-header .icon-btn:hover,
.top-header .icon-btn:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 16px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}

.mobile-menu-btn,
.mobile-search-btn {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

/* ---------- Primary Navigation ---------- */
.main-navigation {
  background: var(--primary);
  color: var(--white);
  z-index: 40;
}

.main-navigation.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  gap: 4px;
}

.nav-hamburger {
  width: 42px;
  height: var(--nav-h);
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: var(--primary-dark);
}

.primary-menu {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

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

.primary-menu a {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.primary-menu a.is-active::after {
  transform: scaleX(1);
}

.primary-menu a:hover {
  background: var(--primary-dark);
}

/* ---------- Secondary Navigation ---------- */
.secondary-navigation {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.secondary-nav-inner {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 14px;
}

.topics-tab {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  flex-shrink: 0;
}

.topics-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

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

.topics-menu a {
  font-size: 13.5px;
  color: var(--dark-gray);
  white-space: nowrap;
  font-weight: 500;
}

.topics-menu a:hover {
  color: var(--primary);
}

.secondary-nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 10px;
  border-radius: 2px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

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

/* ---------- Off-canvas ---------- */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 80;
}

.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--white);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
}

.offcanvas-menu.is-open {
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--black);
  border-bottom: 1px solid var(--light-gray);
}

.offcanvas-header .logo-mark {
  background: var(--white);
  color: var(--primary);
}

.offcanvas-header .logo-name,
.offcanvas-header .logo-sub {
  color: var(--white);
}

.offcanvas-close {
  color: var(--black);
  font-size: 22px;
  width: 36px;
  height: 36px;
}

.offcanvas-links {
  padding: 12px 0;
  overflow-y: auto;
}

.offcanvas-links a {
  display: block;
  padding: 12px 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--soft-bg);
}

.offcanvas-links a:hover {
  color: var(--primary);
  background: var(--soft-bg);
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.92);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: min(720px, 100%);
}

.search-overlay form {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}

.search-overlay input {
  flex: 1;
  border: 0;
  padding: 16px 18px;
  font-size: 18px;
  outline: none;
}

.search-overlay .search-submit {
  background: var(--primary);
  color: var(--white);
  padding: 0 22px;
  font-weight: 700;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 28px;
}

/* ---------- Advertisement ---------- */
.advertisement-area {
  padding: 18px 0 8px;
}

.ad-banner {
  background: var(--soft-bg);
  border: 1px solid var(--light-gray);
  color: var(--medium-gray);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
}

.ad-banner span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ad-banner--970 {
  width: 100%;
  min-height: 0;
  margin-inline: auto;
}

.ad-banner--1200 {
  width: 100%;
  min-height: 0;
  margin: 18px 0;
}

.ad-banner--sidebar {
  min-height: 250px;
  margin: 18px 0;
}

.ad-banner--300 {
  min-height: 250px;
}

/* ---------- Breaking news ---------- */
.breaking-news {
  padding: 8px 0 16px;
}

.breaking-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  background: var(--white);
}

.breaking-label {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  padding-left: 20px;
}

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

.ticker-track a {
  font-size: 14.5px;
  font-weight: 600;
}

.ticker-track a:hover {
  color: var(--primary);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section chrome ---------- */
.page-section {
  padding: 10px 0 22px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--primary);
}

.more-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--medium-gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.more-link:hover {
  color: var(--primary);
}

.category-label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 6px;
}

.category-label--gold,
.category-label.label-t4 {
  background: #c9a227;
  color: #111;
}

.category-label.label-t0 { background: #001944; }
.category-label.label-t1 { background: #0f766e; }
.category-label.label-t2 { background: #c2410c; }
.category-label.label-t3 { background: #be123c; }
.category-label.label-t5 { background: #15803d; }
.category-label.label-t6 { background: #1d4ed8; }
.category-label.label-t7 { background: #6d28d9; }
.category-label.label-t8 { background: #be185d; }
.category-label.label-t9 { background: #9f1239; }
.category-label.label-t10 { background: #0369a1; }
.category-label.label-t11 { background: #4d7c0f; }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--medium-gray);
  font-size: 12.5px;
  margin-top: 6px;
}

.news-meta i {
  margin-right: 4px;
}

/* ---------- Cards ---------- */
.media-frame {
  overflow: hidden;
  background: #ddd;
  position: relative;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .media-frame img,
.featured-card:hover .media-frame img,
.video-card:hover .media-frame img,
.gallery-card:hover .media-frame img,
.review-card:hover .media-frame img {
  transform: scale(1.06);
}

.news-card a,
.review-card a,
.video-card a {
  display: block;
}

.video-play-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.news-card,
.review-card,
.video-card,
.featured-card {
  min-width: 0;
  transition: transform 0.22s ease;
}

.news-card:hover,
.review-card:hover,
.video-card:hover {
  transform: translateY(-2px);
}

.featured-card--overlay {
  position: relative;
  display: block;
}

.featured-card--overlay .media-frame {
  aspect-ratio: 16 / 11;
}

.featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.08) 100%);
  color: var(--white);
}

.featured-overlay .headline {
  color: var(--white);
  font-size: 20px;
  line-height: 1.35;
}

.featured-overlay .headline:hover,
.featured-card--overlay:hover .headline {
  color: #c5d4ef;
}

.featured-overlay .excerpt {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 6px;
}

.featured-overlay .news-meta {
  color: rgba(255, 255, 255, 0.75);
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-thumb { aspect-ratio: 1 / 1; width: 92px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero-section {
  padding-top: 6px;
}

.hero-grid,
.grid-3,
.grid-4,
.ap-layout,
.exclusives-layout,
.split-sections {
  min-width: 0;
}

.hero-grid > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.hero-grid .latest-news,
.hero-grid .movie-headlines {
  min-width: 0;
}

.hero-grid .section-header {
  margin-top: 0;
}

.headline-list {
  display: flex;
  flex-direction: column;
}

.headline-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.headline-list li:first-child {
  padding-top: 0;
}

.headline-list .headline {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.headline-list.bullet-list li {
  padding-left: 16px;
  position: relative;
}

.headline-list.bullet-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfcfcf;
  position: absolute;
  left: 0;
  top: 18px;
}

/* ---------- Latest news thumbs ---------- */
.latest-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.latest-item:first-child {
  padding-top: 0;
}

.latest-item .headline {
  font-size: 15px;
  line-height: 1.4;
}

.latest-item .ratio-thumb {
  width: 86px;
  height: 64px;
  aspect-ratio: auto;
}

.hero-story-list .latest-item {
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.hero-story-list .latest-item .ratio-thumb {
  width: 72px;
  height: 54px;
}

.hero-story-list .latest-item .headline {
  font-size: 14px;
  margin-bottom: 2px;
}

.hero-story-list .latest-item .excerpt {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.movie-headlines .latest-item {
  align-items: center;
}

/* ---------- Two / three column layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.movies-grid .news-card .headline,
.grid-3 .news-card .headline,
.grid-4 .news-card .headline,
.review-card .headline {
  font-size: 16px;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* ---------- Category featured + stack ---------- */
.category-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}

.category-featured .media-frame {
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}

.category-featured .headline {
  font-size: 22px;
}

.small-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.small-story .media-frame {
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}

.small-story .headline {
  font-size: 15px;
}

.ap-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.tg-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.tg-side .latest-item:first-child {
  padding-top: 0;
}

/* ---------- Digital exclusives ---------- */
.exclusives-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.95fr;
  gap: 22px;
}

.thumb-stack .latest-item {
  align-items: flex-start;
}

/* ---------- Reviews ---------- */
.star-rating {
  color: #e0b000;
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: 1px;
}

.star-rating .muted {
  color: #d0d0d0;
}

.review-card .media-frame {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
}

/* ---------- Sports / Business ---------- */
.split-sections {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
}

.sports-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.sports-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sports-thumbs .headline {
  font-size: 13.5px;
  margin-top: 8px;
}

.column-divider {
  border-left: 1px solid var(--light-gray);
  padding-left: 28px;
}

/* ---------- Explainers ---------- */
.explainers-section {
  background: var(--soft-bg);
  padding: 28px 0;
  margin: 8px 0 10px;
}

.explainer-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 18px;
  min-height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.explainer-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.explainer-num {
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* ---------- Videos ---------- */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 25, 68, 0.92);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  font-size: 12px;
  padding: 2px 6px;
  font-family: var(--font-ui);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.gallery-card .media-frame {
  aspect-ratio: 4 / 3;
}

.gallery-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.gallery-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--white);
  font-size: 16px;
  z-index: 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img,
.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-video {
  display: none;
  width: min(1100px, 92vw);
  max-height: 82vh;
  background: #000;
}

.lightbox.is-video .lightbox-image {
  display: none;
}

.lightbox.is-video .lightbox-video {
  display: block;
}

.lightbox.is-photo .lightbox-video {
  display: none;
}

.article-hero video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: var(--white);
  font-size: 32px;
}

/* ---------- Trending ---------- */
.trending-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.trending-num {
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.trending-list .headline {
  font-size: 15px;
}

/* ---------- Horoscope ---------- */
.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.zodiac-card {
  border: 1px solid var(--light-gray);
  text-align: center;
  padding: 16px 8px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.zodiac-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.zodiac-card i {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.zodiac-card span {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--black);
  color: var(--white);
  padding: 36px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-section h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.newsletter-section p {
  color: #cfcfcf;
  font-size: 14.5px;
}

.newsletter-form {
  display: flex;
  width: min(520px, 100%);
}

.newsletter-form input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.newsletter-form button {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 0 22px;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.form-note {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: #9d9;
}

.form-note.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000000;
  color: #d0d0d0;
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand .logo-mark {
  background: var(--primary);
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: #b5b5b5;
  max-width: 280px;
}

.footer-company {
  margin-top: 14px;
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}

.footer-address {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
  color: #b5b5b5;
  max-width: 280px;
}

.footer-contact {
  margin-top: 12px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.footer-contact i {
  width: 16px;
  color: var(--white);
}

.site-footer h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}

.site-footer a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #c8c8c8;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid #444;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  font-size: 18px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* ---------- Inner pages ---------- */
.page-hero-bar {
  background: var(--soft-bg);
  border-bottom: 1px solid var(--light-gray);
  padding: 18px 0;
}

.breadcrumb {
  font-size: 13px;
  color: var(--medium-gray);
  margin-bottom: 8px;
}

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

.article-layout,
.category-layout,
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: 36px;
  padding: 28px 0 40px;
}

.article-title {
  font-size: 34px;
  line-height: 1.35;
  margin: 8px 0 12px;
}

.article-hero {
  margin: 18px 0;
}

.article-hero .media-frame {
  aspect-ratio: 16 / 9;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.article-body h2 {
  font-size: 24px;
  margin: 28px 0 12px;
}

.share-bar {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.share-bar a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 3px;
  background: var(--dark-gray);
}

.share-bar a:nth-child(1) { background: #1877f2; }
.share-bar a:nth-child(2),
.share-bar .x-bg { background: #111; }
.share-bar a:nth-child(3) { background: #25d366; }
.share-bar a:nth-child(4) { background: #229ed9; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--light-gray);
}

.article-nav a {
  max-width: 46%;
  font-weight: 700;
}

.article-nav span {
  display: block;
  font-size: 12px;
  color: var(--medium-gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.sidebar-widget {
  margin-bottom: 28px;
}

.category-featured-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-gray);
  font-weight: 700;
  font-size: 14px;
}

.pagination .is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.search-panel {
  background: var(--soft-bg);
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--light-gray);
}

.search-panel form {
  display: flex;
}

.search-panel input {
  flex: 1;
  border: 1px solid var(--light-gray);
  border-right: 0;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.search-panel button {
  background: var(--primary);
  color: var(--white);
  padding: 0 20px;
  font-weight: 700;
}

.search-result {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-gray);
}

.search-count {
  color: var(--medium-gray);
  margin-bottom: 8px;
}

body.no-scroll {
  overflow: hidden;
}
