/*==========================================================
  RTSC V14 ULTIMATE — NEWS CENTRE PRO
  assets/css/news.css
==========================================================*/

:root {
  --news-bg-950: #02080f;
  --news-bg-900: #061321;
  --news-bg-850: #091a2b;
  --news-bg-800: #0d2236;
  --news-bg-700: #14334e;

  --news-gold: #ffc107;
  --news-gold-light: #ffe071;
  --news-orange: #ff8c1a;
  --news-red: #ff453a;
  --news-green: #32d074;
  --news-blue: #3da5ff;

  --news-white: #ffffff;
  --news-text: #f7f9fc;
  --news-text-soft: rgba(247, 249, 252, 0.74);
  --news-text-muted: rgba(247, 249, 252, 0.52);

  --news-surface: rgba(255, 255, 255, 0.055);
  --news-surface-strong: rgba(255, 255, 255, 0.09);
  --news-border: rgba(255, 255, 255, 0.1);
  --news-border-gold: rgba(255, 193, 7, 0.36);

  --news-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
  --news-shadow-md: 0 22px 52px rgba(0, 0, 0, 0.34);
  --news-shadow-lg: 0 38px 100px rgba(0, 0, 0, 0.52);

  --news-radius-sm: 12px;
  --news-radius-md: 18px;
  --news-radius-lg: 26px;
  --news-radius-xl: 34px;
  --news-radius-pill: 999px;

  --news-container: 1440px;
  --news-transition-fast: 180ms ease;
  --news-transition: 300ms ease;
}

.news-page,
.news-page *,
.news-page *::before,
.news-page *::after,
.news-modal,
.news-modal *,
.news-modal *::before,
.news-modal *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

body.news-modal-open {
  overflow: hidden;
}

.news-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  color: var(--news-text);
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 193, 7, 0.15), transparent 29%),
    radial-gradient(circle at 94% 18%, rgba(61, 165, 255, 0.11), transparent 28%),
    linear-gradient(180deg, var(--news-bg-950), var(--news-bg-900) 44%, #071727);
}

.news-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.news-page .container {
  width: min(calc(100% - 48px), var(--news-container));
  margin-inline: auto;
}

.news-page button,
.news-page input,
.news-page select,
.news-modal button {
  font: inherit;
}

.news-page button,
.news-page select,
.news-modal button {
  cursor: pointer;
}

.news-page :focus-visible,
.news-modal :focus-visible {
  outline: 3px solid rgba(255, 193, 7, 0.75);
  outline-offset: 3px;
}

.news-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.news-skip-link {
  position: fixed;
  z-index: 30000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--news-radius-sm);
  color: #111;
  background: var(--news-gold);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform var(--news-transition-fast);
}

.news-skip-link:focus {
  transform: translateY(0);
}

/* BUTTONS */

.news-primary-button,
.news-secondary-button,
.news-icon-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--news-radius-pill);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform var(--news-transition-fast),
    border-color var(--news-transition),
    background var(--news-transition),
    color var(--news-transition-fast),
    box-shadow var(--news-transition);
}

.news-primary-button {
  padding: 12px 22px;
  border: 1px solid transparent;
  color: #111;
  background: linear-gradient(135deg, var(--news-gold-light), var(--news-gold), var(--news-orange));
  box-shadow: 0 14px 30px rgba(255, 193, 7, 0.2);
}

.news-primary-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 19px 38px rgba(255, 193, 7, 0.28);
}

.news-secondary-button,
.news-icon-button {
  padding: 12px 22px;
  border: 1px solid var(--news-border);
  color: var(--news-white);
  background: rgba(255, 255, 255, 0.055);
}

.news-secondary-button:hover,
.news-icon-button:hover {
  transform: translateY(-3px);
  border-color: var(--news-border-gold);
  color: var(--news-gold-light);
  background: rgba(255, 193, 7, 0.07);
}

/* HERO */

.news-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 126px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--news-border);
}

.news-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -230px;
  width: 820px;
  height: 820px;
  border: 1px solid rgba(255, 193, 7, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(255, 193, 7, 0.024),
    0 0 0 220px rgba(255, 193, 7, 0.014);
}

.news-hero-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(85px);
}

.news-hero-orb-one {
  top: 15%;
  left: -130px;
  width: 420px;
  height: 420px;
  background: rgba(255, 193, 7, 0.12);
}

.news-hero-orb-two {
  right: -140px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  background: rgba(61, 165, 255, 0.1);
}

.news-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.news-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 9px 15px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--news-radius-pill);
  color: var(--news-gold-light);
  background: rgba(255, 193, 7, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-hero h1 {
  margin: 22px 0 0;
  color: var(--news-white);
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.news-hero-copy > p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--news-text-soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.news-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 34px;
}

.news-stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--news-shadow-sm);
  backdrop-filter: blur(16px);
}

.news-stat-card strong {
  display: block;
  color: var(--news-gold);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.news-stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--news-text-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO FEATURED CARD */

.news-hero-card {
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--news-shadow-lg);
}

.news-hero-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--news-bg-800);
}

.news-hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 500ms ease;
}

.news-hero-card:hover .news-hero-card-media img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.news-hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 8, 15, 0.82));
}

.news-featured-badge {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: var(--news-radius-pill);
  color: var(--news-gold-light);
  background: rgba(2, 8, 15, 0.74);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.news-hero-card-content {
  padding: 26px;
}

.news-hero-card-content > p:first-child {
  margin: 0;
  color: var(--news-gold);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-hero-card-content h2 {
  margin: 12px 0 0;
  color: var(--news-white);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.news-hero-card-content > p:not(:first-child) {
  margin: 14px 0 0;
  color: var(--news-text-soft);
  line-height: 1.65;
}

.news-hero-card-content .news-primary-button {
  margin-top: 22px;
}

/* CONTROLS */

.news-controls-section {
  position: sticky;
  z-index: 40;
  top: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--news-border);
  background: rgba(2, 8, 15, 0.88);
  backdrop-filter: blur(20px);
}

.news-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.news-search {
  position: relative;
}

.news-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--news-text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.news-search input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-pill);
  outline: 0;
  color: var(--news-white);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color var(--news-transition), background var(--news-transition), box-shadow var(--news-transition);
}

.news-search input:focus {
  border-color: var(--news-border-gold);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.07);
}

.news-search input::placeholder {
  color: var(--news-text-muted);
}

.news-search-clear {
  position: absolute;
  top: 50%;
  right: 9px;
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--news-text-muted);
  background: transparent;
  transform: translateY(-50%);
}

.news-search.has-value .news-search-clear {
  display: grid;
}

.news-search-clear:hover {
  color: var(--news-white);
  background: rgba(255, 255, 255, 0.08);
}

.news-category-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-category-filters::-webkit-scrollbar {
  display: none;
}

.news-filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-pill);
  color: var(--news-text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform var(--news-transition-fast), color var(--news-transition-fast), border-color var(--news-transition), background var(--news-transition);
}

.news-filter:hover {
  transform: translateY(-2px);
  color: var(--news-white);
  border-color: var(--news-border-gold);
}

.news-filter.active {
  color: #111;
  border-color: transparent;
  background: linear-gradient(135deg, var(--news-gold-light), var(--news-gold), var(--news-orange));
}

.news-sort-wrap select {
  height: 46px;
  min-width: 150px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-pill);
  outline: 0;
  color: var(--news-white);
  background-color: rgba(255, 255, 255, 0.055);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--news-gold) 50%),
    linear-gradient(135deg, var(--news-gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 11px) 19px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.news-sort-wrap option {
  color: #fff;
  background: var(--news-bg-800);
}

/* SECTION HEADERS */

.news-featured-section,
.news-library-section,
.news-club-strip {
  padding: 82px 0;
}

.news-section-header {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.news-section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--news-gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.news-section-header h2,
.news-club-strip h2 {
  margin: 0;
  color: var(--news-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
}

.news-section-meta,
.news-results-count {
  margin: 0;
  color: var(--news-text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

/* FEATURED NEWS */

.news-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--news-shadow-lg);
}

.news-featured-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--news-bg-800);
}

.news-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 65%, rgba(2, 8, 15, 0.18));
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.news-featured-layout:hover .news-featured-media img {
  transform: scale(1.035);
}

.news-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.news-author-label {
  color: var(--news-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-featured-content h3 {
  margin: 17px 0 0;
  color: var(--news-white);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.news-featured-content > p {
  margin: 22px 0 0;
  color: var(--news-text-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.news-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

/* NEWS GRID */

.news-library-section {
  padding-top: 36px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--news-shadow-md);
  transition: transform var(--news-transition), border-color var(--news-transition), box-shadow var(--news-transition);
}

.news-card:hover {
  transform: translateY(-9px);
  border-color: var(--news-border-gold);
  box-shadow: var(--news-shadow-lg);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--news-bg-800);
}

.news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 8, 15, 0.78));
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter var(--news-transition);
}

.news-card:hover .news-card-media img {
  transform: scale(1.05);
  filter: saturate(1.06);
}

.news-card-category {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 193, 7, 0.26);
  border-radius: var(--news-radius-pill);
  color: var(--news-gold-light);
  background: rgba(2, 8, 15, 0.76);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.news-card-featured {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: var(--news-radius-pill);
  color: #111;
  background: var(--news-gold);
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--news-text-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.news-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--news-white);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--news-text-muted);
  font-size: 0.82rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

.news-card-actions .news-primary-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.76rem;
}

.news-card-actions .news-icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

/* SKELETONS */

.news-skeleton-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0 48%, rgba(255, 255, 255, 0.035) 48% 100%);
}

.news-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.13) 52%, transparent 80%);
  animation: newsShimmer 1.5s infinite;
}

/* STATES */

.news-offline-banner {
  display: none;
  margin-bottom: 22px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 140, 26, 0.3);
  border-radius: var(--news-radius-md);
  color: #ffe6c2;
  background: rgba(104, 54, 9, 0.7);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.news-offline-banner.active {
  display: block;
}

.news-empty-state,
.news-error-state {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 40px 24px;
  border: 1px dashed var(--news-border);
  border-radius: var(--news-radius-lg);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.news-empty-state[hidden],
.news-error-state[hidden] {
  display: none;
}

.news-empty-state > div,
.news-error-state > div {
  max-width: 520px;
}

.news-empty-state span,
.news-error-state span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(255, 193, 7, 0.24);
  border-radius: 50%;
  color: var(--news-gold);
  background: rgba(255, 193, 7, 0.07);
  font-size: 1.8rem;
  font-weight: 950;
}

.news-empty-state h3,
.news-error-state h3 {
  margin: 0;
  color: var(--news-white);
  font-size: 1.4rem;
  font-weight: 950;
}

.news-empty-state p,
.news-error-state p {
  margin: 10px 0 20px;
  color: var(--news-text-muted);
  line-height: 1.65;
}

.news-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* CLUB STRIP */

.news-club-strip {
  padding-top: 30px;
}

.news-club-strip-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 193, 7, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 193, 7, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: var(--news-shadow-md);
}

.news-club-strip p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--news-text-soft);
  line-height: 1.7;
}

/* MODAL */

.news-modal {
  position: fixed;
  z-index: 15000;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--news-transition), visibility var(--news-transition);
}

.news-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 13, 0.88);
  backdrop-filter: blur(18px);
}

.news-modal-window {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-xl);
  background:
    radial-gradient(circle at 94% 4%, rgba(255, 193, 7, 0.13), transparent 30%),
    linear-gradient(145deg, var(--news-bg-850), var(--news-bg-950));
  box-shadow: var(--news-shadow-lg);
  transform: translateY(24px) scale(0.98);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-modal.is-open .news-modal-window {
  transform: translateY(0) scale(1);
}

.news-modal-close {
  position: absolute;
  z-index: 8;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--news-border);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 8, 15, 0.76);
  font-weight: 900;
  backdrop-filter: blur(14px);
  transition: transform var(--news-transition-fast), background var(--news-transition), color var(--news-transition-fast);
}

.news-modal-close:hover {
  color: #111;
  background: var(--news-gold);
  transform: rotate(90deg);
}

.news-modal-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--news-bg-800);
}

.news-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 8, 15, 0.62));
}

.news-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-content {
  padding: clamp(26px, 5vw, 56px);
}

.news-modal-meta {
  margin: 0;
  color: var(--news-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-modal-content h2 {
  margin: 16px 0 0;
  color: var(--news-white);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.news-modal-excerpt {
  margin: 21px 0 0;
  color: var(--news-text-soft);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.news-modal-body {
  margin-top: 28px;
  color: var(--news-text-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}

.news-modal-body p,
.news-modal-body ul,
.news-modal-body ol,
.news-modal-body blockquote {
  margin: 0 0 18px;
}

.news-modal-body h3,
.news-modal-body h4 {
  margin: 28px 0 12px;
  color: var(--news-white);
  font-weight: 900;
}

.news-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--news-radius-md);
}

.news-modal-body a {
  color: var(--news-gold-light);
}

.news-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

/* TOASTS */

.news-toast-container {
  position: fixed;
  z-index: 20000;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(calc(100% - 40px), 390px);
  gap: 10px;
  pointer-events: none;
}

.news-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-md);
  color: #fff;
  background: rgba(9, 26, 43, 0.97);
  box-shadow: var(--news-shadow-lg);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: newsToastIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.news-toast-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--news-gold);
  font-weight: 950;
}

.news-toast strong {
  display: block;
  font-size: 0.8rem;
}

.news-toast span {
  display: block;
  margin-top: 3px;
  color: var(--news-text-muted);
  font-size: 0.68rem;
}

/* ANIMATIONS */

@keyframes newsShimmer {
  100% { transform: translateX(100%); }
}

@keyframes newsToastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* LIGHT THEME */

html[data-theme="light"] .news-page,
body.light-theme .news-page {
  --news-bg-950: #edf2f7;
  --news-bg-900: #f5f8fb;
  --news-bg-850: #ffffff;
  --news-bg-800: #e7edf3;
  --news-bg-700: #dbe4ec;
  --news-text: #122235;
  --news-text-soft: rgba(18, 34, 53, 0.74);
  --news-text-muted: rgba(18, 34, 53, 0.54);
  --news-surface: rgba(255, 255, 255, 0.78);
  --news-surface-strong: #fff;
  --news-border: rgba(18, 34, 53, 0.12);
  --news-shadow-sm: 0 10px 24px rgba(21, 42, 65, 0.09);
  --news-shadow-md: 0 22px 52px rgba(21, 42, 65, 0.13);
  --news-shadow-lg: 0 38px 100px rgba(21, 42, 65, 0.17);
  color-scheme: light;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 193, 7, 0.17), transparent 29%),
    radial-gradient(circle at 94% 18%, rgba(61, 165, 255, 0.11), transparent 28%),
    linear-gradient(180deg, #f8fafc, #edf3f7 45%, #f7f9fb);
}

html[data-theme="light"] .news-hero h1,
html[data-theme="light"] .news-section-header h2,
html[data-theme="light"] .news-club-strip h2,
html[data-theme="light"] .news-hero-card-content h2,
html[data-theme="light"] .news-featured-content h3,
html[data-theme="light"] .news-card-title,
html[data-theme="light"] .news-modal-content h2,
body.light-theme .news-hero h1,
body.light-theme .news-section-header h2,
body.light-theme .news-club-strip h2,
body.light-theme .news-hero-card-content h2,
body.light-theme .news-featured-content h3,
body.light-theme .news-card-title,
body.light-theme .news-modal-content h2 {
  color: #102136;
}

html[data-theme="light"] .news-controls-section,
body.light-theme .news-controls-section {
  background: rgba(248, 250, 252, 0.92);
}

html[data-theme="light"] .news-search input,
html[data-theme="light"] .news-sort-wrap select,
body.light-theme .news-search input,
body.light-theme .news-sort-wrap select {
  color: #122235;
  background-color: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .news-card,
html[data-theme="light"] .news-featured-layout,
html[data-theme="light"] .news-hero-card,
html[data-theme="light"] .news-club-strip-inner,
body.light-theme .news-card,
body.light-theme .news-featured-layout,
body.light-theme .news-hero-card,
body.light-theme .news-club-strip-inner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.92));
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .news-hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr);
    gap: 48px;
  }

  .news-controls {
    grid-template-columns: 1fr auto;
  }

  .news-category-filters {
    grid-column: 1 / -1;
    order: 3;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-featured-layout {
    grid-template-columns: 1fr;
  }

  .news-featured-media,
  .news-featured-media img {
    min-height: 450px;
  }
}

@media (max-width: 900px) {
  .news-page .container {
    width: min(calc(100% - 34px), var(--news-container));
  }

  .news-hero {
    min-height: auto;
    padding: 96px 0 76px;
  }

  .news-hero-grid {
    grid-template-columns: 1fr;
  }

  .news-controls-section {
    position: relative;
  }

  .news-featured-section,
  .news-library-section,
  .news-club-strip {
    padding: 66px 0;
  }

  .news-club-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .news-page .container {
    width: min(calc(100% - 24px), var(--news-container));
  }

  .news-hero {
    padding: 76px 0 60px;
  }

  .news-hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  .news-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-hero-actions .news-primary-button,
  .news-hero-actions .news-secondary-button {
    width: 100%;
  }

  .news-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .news-hero-stats .news-stat-card:last-child {
    grid-column: 1 / -1;
  }

  .news-hero-card {
    border-radius: var(--news-radius-lg);
  }

  .news-controls {
    grid-template-columns: 1fr;
  }

  .news-sort-wrap select {
    width: 100%;
  }

  .news-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-featured-media,
  .news-featured-media img {
    min-height: 340px;
  }

  .news-featured-content {
    padding: 28px 20px 32px;
  }

  .news-featured-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-featured-actions .news-primary-button,
  .news-featured-actions .news-secondary-button {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-club-strip-inner .news-primary-button {
    width: 100%;
  }

  .news-modal {
    padding: 0;
  }

  .news-modal-window {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .news-modal-media {
    aspect-ratio: 16 / 10;
  }

  .news-modal-content {
    padding: 28px 18px 40px;
  }

  .news-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-modal-actions .news-primary-button,
  .news-modal-actions .news-secondary-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .news-page .container {
    width: calc(100% - 16px);
  }

  .news-hero-stats {
    grid-template-columns: 1fr;
  }

  .news-hero-stats .news-stat-card:last-child {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .news-page *,
  .news-page *::before,
  .news-page *::after,
  .news-modal *,
  .news-modal *::before,
  .news-modal *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  .news-hero {
    padding-top: calc(126px + env(safe-area-inset-top));
  }

  .news-toast-container {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  @media (max-width: 900px) {
    .news-hero {
      padding-top: calc(96px + env(safe-area-inset-top));
    }
  }
}
