:root {
  --red: #e31837;
  --bg: #000000;
  --surface: #141414;
  --border: #2a2a2a;
  --header-grey: #2c2c2c;
  --breaking: #8b0000;
  --text-muted: #a8a8a8;
  --hint: #b0b0b0;
  --max: 1320px;
  --control-h: 52px;
}

* { box-sizing: border-box; }

html {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Exo 2", system-ui, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.5;
}

main {
  background: #000;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Masthead top bar (matches Flutter _WebTopBar) */
.portal-masthead {
  position: relative;
  z-index: 400;
}

.top-bar {
  position: relative;
  background: #000;
  overflow: hidden;
}

.top-bar-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 70% 90% at 52% 48%, #000 20%, transparent 72%);
}

.top-bar-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-logo {
  flex: 0 1 auto;
  min-width: 120px;
}

.top-logo img {
  max-height: 84px;
  max-width: min(640px, 55vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.top-bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-live-tv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1.2px solid var(--red);
  border-radius: 8px;
  flex-shrink: 0;
}

.btn-live-tv:hover { background: rgba(227, 24, 55, 0.08); }

.btn-live-tv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.btn-live-tv-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-live-tv-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  line-height: 1.2;
}

.btn-live-tv-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

.lang-form { flex-shrink: 0; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 120px;
  max-width: 220px;
  height: var(--control-h);
  padding: 0 36px 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--header-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='%23ffffffb3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.lang-select option {
  background: #1c1c1c;
  color: #fff;
}

.top-auth-links {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-auth-logout-form { margin: 0; }

.top-auth-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.top-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-auth-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.top-auth-btn-outline:hover,
.top-auth-btn-outline.is-active {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.top-auth-btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.top-auth-btn-primary:hover { filter: brightness(1.08); }

.top-auth-btn-primary.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.search-field {
  display: flex;
  align-items: center;
  width: 280px;
  max-width: 100%;
  height: var(--control-h);
  padding: 0 6px 0 18px;
  background: var(--header-grey);
  border-radius: 10px;
  flex-shrink: 1;
  border: none;
  margin: 0;
}

.search-field:hover { background: #333; }

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: var(--hint);
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.search-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.social-label {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-fb { background: #1877f2; }
.social-yt { background: #ff0000; }
.social-ig {
  background: linear-gradient(135deg, #833ab4, #f77737, #e1306c);
}
.social-x {
  background: #000;
  border: 0.5px solid rgba(255, 255, 255, 0.24);
}
.social-tg { background: #0088cc; }

@media (max-width: 1100px) {
  .top-bar-inner { justify-content: center; }
  .top-logo { width: 100%; text-align: center; }
  .top-logo img { margin: 0 auto; max-width: 100%; }
  .top-bar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .search-field { width: 100%; max-width: 100%; }
}

@media (max-width: 720px) {
  .top-bar-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .social-row { justify-content: center; flex-wrap: wrap; }
  .btn-live-tv { justify-content: center; }
  .lang-form, .lang-select { width: 100%; max-width: none; }
}

/* Nav strip (matches Flutter _WebNavBar) */
.nav-bar {
  background: #000;
  padding: 8px 16px;
  overflow: visible;
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.nav-home-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: 6px 0 0 6px;
}

.nav-scroll {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
  white-space: nowrap;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item.nav-active { color: var(--red); }

.nav-item-static {
  cursor: default;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-trigger {
  user-select: none;
}

.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nav-dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  min-width: 200px;
  overflow: visible;
  padding: 6px 0;
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

a.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-muted {
  color: rgba(255, 255, 255, 0.45);
}

.nav-submit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--red);
  border-radius: 5px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.nav-submit-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .nav-bar { padding: 8px 12px; }
  .nav-shell { gap: 8px; }
  .nav-submit-btn span { display: none; }
  .nav-submit-btn { padding: 8px 10px; }
}

/* Breaking news ticker (matches Flutter _WebTickerStrip) */
.ticker-strip {
  background: #000;
  padding: 10px 16px 6px;
}

.ticker-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 4px 18px 4px 12px;
  background: var(--breaking);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
}

.ticker-badge-logo {
  width: 42px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.ticker-badge-text {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.1px;
  line-height: 1;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 38px;
}

.ticker-marquee-wrap {
  flex: 1;
  min-width: 0;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  color: #fff;
}

.ticker-item .ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--breaking);
  flex-shrink: 0;
  margin: 0 10px;
}

.ticker-item:first-child .ticker-dot {
  margin-left: 4px;
}

.ticker-controls {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ticker-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #252525;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ticker-btn:hover {
  background: #303030;
}

.ticker-btn:disabled {
  color: rgba(255, 255, 255, 0.24);
  cursor: default;
}

.ticker-btn[aria-pressed="true"] .ticker-icon-pause {
  display: none;
}

.ticker-btn[aria-pressed="true"] .ticker-icon-play {
  display: block !important;
}

.ticker-btn .ticker-icon-play {
  display: none;
}

.ticker-rule {
  height: 1px;
  background: var(--breaking);
  margin-top: 0;
}

/* Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 48px;
}

@media (min-width: 1000px) {
  .main-grid.has-sidebar {
    grid-template-columns: 1fr 320px;
    align-items: stretch;
  }

  /* Full row height so Watch Live sticky lasts for entire page scroll */
  .main-grid.has-sidebar .sidebar {
    align-self: stretch;
    min-height: 100%;
  }
}

/* Hero + latest row */
.hero-latest-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .hero-latest-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  }
}

.hero-block {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.26);
}

.hero-slide-placeholder img {
  width: 26%;
  max-width: 120px;
  opacity: 0.85;
  object-fit: contain;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.33) 45%, transparent 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}

.hero-live {
  display: inline-block;
  padding: 4px 8px;
  background: var(--red);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.hero-desc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.54);
}

.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 18px;
  background: var(--red);
}

/* Latest panel (beside hero) */
.latest-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 0;
}

.latest-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.latest-panel-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.latest-panel-all {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.latest-panel-all:hover {
  text-decoration: underline;
}

.latest-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-panel-item {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.latest-panel-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c;
}

.latest-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-panel-thumb-placeholder {
  object-fit: contain !important;
  padding: 10px;
  opacity: 0.45;
}

.latest-panel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.latest-panel-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-panel-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
}

.latest-panel-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Cards */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-view-all {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

.section-view-all:hover {
  color: #fff;
  text-decoration: underline;
}

.category-page {
  padding: 24px 0 48px;
}

.category-page-head {
  margin-top: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.category-section {
  margin-top: 32px;
}

/* Four posts per row per category (matches Flutter _WebSingleCategoryNewsBlock) */
.category-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 899px) {
  .category-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .category-news-grid {
    grid-template-columns: 1fr;
  }
}

/* Category listing page: 3 cards per row */
.category-page .category-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 899px) {
  .category-page .category-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .category-page .category-news-grid {
    grid-template-columns: 1fr;
  }
}

.category-page .news-card-excerpt,
.shorts-page .news-card-excerpt,
.videos-page .news-card-excerpt,
.live-tv-page .news-card-excerpt,
.search-page .news-card-excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Listing pages: sidebar layout + 3 cards per row */
.shorts-page,
.videos-page,
.live-tv-page,
.search-page {
  padding: 24px 0 48px;
}

.shorts-page .category-news-grid,
.videos-page .category-news-grid,
.live-tv-page .category-news-grid,
.search-page .category-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 899px) {
  .shorts-page .category-news-grid,
  .videos-page .category-news-grid,
  .live-tv-page .category-news-grid,
  .search-page .category-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .shorts-page .category-news-grid,
  .videos-page .category-news-grid,
  .live-tv-page .category-news-grid,
  .search-page .category-news-grid {
    grid-template-columns: 1fr;
  }
}

.search-page-form {
  margin-bottom: 20px;
}

.search-page-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.search-page-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.search-page-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-page-field input::placeholder {
  color: var(--hint);
}

.search-page-field button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.search-page-summary {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-page-more {
  margin-top: 24px;
  text-align: center;
}

.search-page-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.search-page-more-btn:hover {
  filter: brightness(1.08);
}

button.news-card {
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s;
}

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

.news-card-thumb {
  aspect-ratio: 16/10;
  background: #1c1c1c;
  position: relative;
}

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

.news-card-body { padding: 10px; }

.news-card-cat {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.54);
}

.news-card-meta { font-size: 12px; color: var(--text-muted); }

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

/* Watch live sidebar card (matches Flutter _WatchLiveCard) */
.watch-live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .watch-live-card {
    position: sticky;
    top: 16px;
    z-index: 20;
    width: 100%;
  }
}

.watch-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.watch-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.watch-live-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.watch-live-preview {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

a.watch-live-preview {
  color: inherit;
}

.watch-live-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-live-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.watch-live-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  transition: filter 0.15s ease;
}

.watch-live-btn:hover {
  filter: brightness(1.08);
}

.trend-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.trend-thumb {
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1c1c1c;
}

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

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 48px;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 56px 1fr 300px;
    align-items: stretch;
  }

  .article-layout .sidebar {
    align-self: stretch;
    min-height: 100%;
  }
}

.share-bar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .share-bar { flex-direction: column; }
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.share-icon {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.share-fb { background: #1877f2; }
.share-x { background: #000; border: 1px solid #444; }
.share-wa { background: #25d366; }
.share-li { background: #0a66c2; }

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.share-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.wa-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-share-modal.open {
  display: flex;
}

.wa-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.wa-share-modal-box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
}

.wa-share-modal-box h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.wa-share-modal-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.wa-share-modal-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.wa-share-modal-steps strong {
  color: #fff;
}

.wa-share-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wa-share-modal-open {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.wa-share-modal-open:hover {
  background: #1fb855;
}

.wa-share-modal-cancel {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.article-hero {
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  aspect-ratio: 16/9;
  background: var(--surface);
}

.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  font-size: 16px;
}

.article-body img { max-width: 100%; height: auto; }

.article-body p {
  margin: 0 0 1em;
  line-height: 1.7;
}

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

/* Video modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.modal-video { aspect-ratio: 16/9; background: #000; }

.modal-video iframe,
.modal-video video { width: 100%; height: 100%; border: none; }

.error-banner {
  background: #2a1212;
  border: 1px solid #ff5252;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin: 24px 0;
}
