:root {
  --red: #ed1c24;
  --red-dark: #b71017;
  --ink: #16191d;
  --muted: #65717c;
  --line: #dfe5ea;
  --soft: #f3f6f8;
  --blue: #7d96a9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 410px) 1fr;
  align-items: center;
  gap: 28px;
}

.social-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .2s ease, filter .2s ease;
}

.social-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-btn:hover,
.social-btn:focus-visible,
.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(.95);
}

.store-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  transition: transform .2s ease, filter .2s ease;
}

.store-btn img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand {
  justify-self: center;
  width: 118px;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.radio-player {
  justify-self: end;
  width: min(100%, 330px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 14px;
  align-items: center;
  background: #fbfcfd;
  box-shadow: 0 8px 22px rgba(22, 25, 29, .07);
}

.radio-player strong,
.radio-player small {
  display: block;
}

.radio-player strong {
  font-size: 18px;
  line-height: 1.15;
}

.radio-player small {
  margin-top: 4px;
  color: var(--muted);
}

.eyebrow,
.section-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.play-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.play-btn:hover {
  background: var(--red-dark);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
  margin-left: 4px;
}

.play-btn.is-playing .play-icon {
  width: 18px;
  height: 22px;
  border: 0;
  border-left: 6px solid currentColor;
  border-right: 6px solid currentColor;
  margin-left: 0;
}

.main-nav {
  border-top: 1px solid var(--line);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
}

.main-nav a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 10px 14px;
  color: #26313b;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--red);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.ad-banner {
  width: min(970px, 100%);
  aspect-ratio: 970 / 250;
  margin: 0 auto 24px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: linear-gradient(135deg, #f8fafb 0%, #eef3f6 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-banner span {
  margin: auto;
}

.ad-banner a,
.ad-banner > img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.ad-banner-spaced {
  margin-top: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(330px, 40fr);
  gap: 24px;
  align-items: start;
}

.main-news,
.video-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.main-news {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(22, 25, 29, .11);
}

.featured-news-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
  height: 100%;
}

.featured-news-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.featured-news-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.featured-news-controls button {
  pointer-events: auto;
}

.featured-news-controls > button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background: rgba(22, 25, 29, .56);
  color: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.featured-news-controls > button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.featured-news-dots {
  position: absolute;
  left: 50%;
  bottom: -118px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(22, 25, 29, .68);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.featured-news-dots button {
  width: 22px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.featured-news-dots button.is-active {
  width: 34px;
  background: var(--red);
}

.news-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}

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

.news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .44) 100%);
  pointer-events: none;
}

.news-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  background: rgba(237, 28, 36, .94);
  color: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(237, 28, 36, .26);
}

.news-content {
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.news-content h1 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}

.news-content p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(237, 28, 36, .22);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.primary-link:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(237, 28, 36, .28);
}

.video-panel {
  padding: 18px;
}

.panel-heading h2 {
  margin: 4px 0 16px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.live-frame {
  aspect-ratio: 16 / 9;
  background: #101418;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.live-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.live-cover {
  position: relative;
  display: block;
  margin-bottom: 0;
}

.live-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform .25s ease, filter .25s ease;
}

.live-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(237, 28, 36, .32);
  transform: translate(-50%, -50%);
}

.live-cover:hover img {
  filter: brightness(.58);
  transform: scale(1.03);
}

.live-cover:hover span {
  background: var(--red-dark);
}

.latest-news-card {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.latest-news-list {
  display: grid;
  gap: 10px;
}

.latest-news-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  background: #fbfcfd;
  transition: border-color .2s ease, transform .2s ease;
}

.latest-news-list a:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.latest-news-list span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-news-list strong {
  font-size: 14px;
  line-height: 1.25;
}

.news-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.news-card:hover {
  border-color: var(--red);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card div {
  padding: 14px;
}

.news-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.news-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.columnists-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) var(--soft);
}

.columnist-card {
  flex: 0 0 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  scroll-snap-align: start;
}

.columnist-card:hover {
  border-color: var(--red);
}

.columnist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.columnist-card div {
  padding: 14px;
}

.columnist-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.columnist-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.columnist-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f7fafc;
  padding: 28px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  width: 118px;
}

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

.admin-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-logo {
  width: 118px;
}

.admin-logo img {
  width: 100%;
  height: auto;
}

.admin-actions a,
.secondary-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions a:hover,
.secondary-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.admin-hero {
  grid-column: 1 / -1;
  border-radius: 8px;
  background: linear-gradient(135deg, #16191d 0%, #303b45 100%);
  color: var(--white);
  padding: 28px;
  overflow: hidden;
}

.admin-hero h1 {
  margin: 6px 0 8px;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
  letter-spacing: 0;
}

.admin-hero p:last-child {
  max-width: 620px;
  margin: 0;
  color: #d9e0e6;
  font-size: 18px;
  line-height: 1.45;
}

.admin-menu {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 16px 34px rgba(22, 25, 29, .08);
}

.admin-menu button {
  width: 100%;
  min-height: 72px;
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(22, 25, 29, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.admin-menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef3f6;
  color: var(--red);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(125, 150, 169, .18);
}

.admin-menu button strong,
.admin-menu button small {
  display: block;
}

.admin-menu button strong {
  font-size: 15px;
  line-height: 1.15;
}

.admin-menu button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.admin-menu button:hover,
.admin-menu button.is-active {
  border-color: var(--red);
  background: #ffffff;
  color: var(--red);
  box-shadow: 0 14px 30px rgba(237, 28, 36, .14);
  transform: translateY(-2px);
}

.admin-menu button.is-active .admin-menu-icon {
  background: var(--red);
  color: var(--white);
}

.admin-menu button.is-active small {
  color: var(--red-dark);
}

.admin-tab-panel {
  grid-column: 2;
  display: none;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
}

.admin-tab-panel.is-active {
  display: grid;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.admin-title {
  margin-bottom: 18px;
}

.admin-title h1,
.admin-title h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.news-form {
  display: grid;
  gap: 14px;
}

.news-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.news-form input,
.news-form select,
.news-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: var(--white);
}

.news-form textarea {
  resize: vertical;
}

.news-form input:focus,
.news-form select:focus,
.news-form textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(237, 28, 36, .12);
}

.upload-box {
  border: 1px dashed var(--blue);
  border-radius: 8px;
  padding: 16px;
  background: #f7fafc;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-box strong {
  width: fit-content;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  font-size: 14px;
}

.upload-box small {
  color: var(--muted);
  font-weight: 600;
}

.image-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions .primary-link {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-news-list {
  display: grid;
  gap: 12px;
}

.admin-news-item {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.admin-news-item img {
  width: 128px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.admin-news-item img.is-square {
  aspect-ratio: 1;
}

.admin-news-item h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

.admin-news-item h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.admin-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.item-actions button:hover {
  border-color: var(--red);
  color: var(--red);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0 16px;
  }

  .social-bar,
  .radio-player,
  .brand {
    justify-self: center;
  }

  .brand {
    width: 108px;
    order: -1;
  }

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

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

  .admin-main {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    grid-column: 1;
    position: static;
  }

  .admin-tab-panel {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .admin-news-item {
    grid-template-columns: 108px 1fr;
  }

  .item-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .main-nav,
  main {
    width: min(100% - 20px, 1180px);
  }

  .social-bar {
    width: 100%;
    justify-content: center;
  }

  .social-btn {
    width: 48px;
    height: 42px;
  }

  .radio-player {
    width: 100%;
  }

  .news-content,
  .video-panel {
    padding: 16px;
  }

  .featured-news-controls {
    left: 10px;
    right: 10px;
    top: 96px;
  }

  .featured-news-controls > button {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .featured-news-dots {
    bottom: -96px;
  }

  .news-content h1 {
    font-size: 32px;
  }

  .news-content p {
    font-size: 16px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .admin-header {
    width: min(100% - 20px, 1180px);
  }

  .admin-main {
    width: min(100% - 20px, 1180px);
  }

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

  .admin-news-item img {
    width: 100%;
  }
}
