:root {
  --red: #d71920;
  --red-dark: #a80f15;
  --blue: #1556a8;
  --ink: #101828;
  --muted: #667085;
  --surface: #f5f7fa;
  --white: #ffffff;
  --border: #e4e7ec;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(16,24,40,.06);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.header-inner nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.header-inner nav a:hover {
  color: var(--red);
}

.live-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.live-button span {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}

.hero {
  min-height: 500px;
  display: flex;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(10,20,40,.94),
      rgba(10,20,40,.55),
      rgba(10,20,40,.12)
    ),
    linear-gradient(
      135deg,
      #16233c,
      #304c74
    );
}

.hero-content {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero .eyebrow {
  color: #ff686d;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .98;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 30px;
  font-size: 21px;
  line-height: 1.5;
}

.primary-action {
  display: inline-block;
  padding: 14px 20px;
  background: var(--red);
  border-radius: 8px;
  font-weight: 700;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 72px 0;
}

.surface {
  width: 100%;
  max-width: none;
  padding-left:
    max(20px, calc((100% - var(--max))/2));
  padding-right:
    max(20px, calc((100% - var(--max))/2));
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.section-heading > p,
.section-heading > a {
  color: var(--muted);
}

.live-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.media-card,
.news-card,
.schedule-card,
.replay-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.media-screen {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg,#101828,#344054);
}

.media-placeholder {
  padding: 30px;
  text-align: center;
}

.media-placeholder strong {
  display: block;
  margin: 24px 0 8px;
  font-size: 30px;
}

.live-badge {
  display: inline-block;
  padding: 6px 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.media-info {
  padding: 22px;
}

.media-info h3 {
  margin: 0 0 5px;
  font-size: 22px;
}

.media-info p {
  color: var(--muted);
}

.radio-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  background: #eef3f9;
}

.radio-visual img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.radio-visual .live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}

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

.news-image,
.replay-image {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg,#d8dee8,#aab7c9);
}

.news-content {
  padding: 20px;
}

.news-content span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.news-content h3 {
  margin: 8px 0;
}

.news-content p,
.replay-card p {
  color: var(--muted);
}

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

.schedule-card {
  padding: 24px;
}

.schedule-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.schedule-card time {
  display: block;
  margin: 18px 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.schedule-card.active {
  border-top: 4px solid var(--red);
}

.replay-image {
  display: grid;
  place-items: center;
}

.replay-image span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: var(--white);
  background: rgba(16,24,40,.8);
  border-radius: 50%;
}

.replay-card h3,
.replay-card p {
  margin-left: 18px;
  margin-right: 18px;
}

footer {
  padding: 50px max(20px,calc((100% - var(--max))/2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d0d5dd;
  background: #101828;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand p {
  margin: 5px 0 0;
}

footer nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.breaking-news {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #101828;
  font-size: 13px;
}

.breaking-news strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--red);
  white-space: nowrap;
}

.ticker {
  overflow: hidden;
  padding-left: 20px;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
}

@media (max-width: 900px) {

  .header-inner {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .header-inner nav {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .live-grid,
  .news-grid,
  .schedule,
  .replay-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .live-button {
    padding: 10px 12px;
  }

  .hero-content,
  .section {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .surface {
    width: 100%;
  }

  .breaking-news {
    font-size: 11px;
  }

  .breaking-news strong {
    padding: 0 10px;
  }
}

/*
 * Hamana visual refinement R4A
 * Keep sticky navigation visible while preventing anchored
 * editorial sections from being hidden beneath the header.
 */
#hero,
#direct,
#actualites,
#programmes,
#replay {
  scroll-margin-top: 6px;
}

/* ==========================================================
   HAMANA WEB N2-R8
   EN DIRECT — LOCAL SECTION GEOMETRY ONLY

   Global .section padding remains 52px.
   Only #direct uses 24px top padding.
   ========================================================== */

#direct {
    padding-top: 24px;
}

/* ==========================================================
   HAMANA WEB N2-R11 CONSTRUCTION BANNER
   PREOPENING INFORMATION — LOCAL COMPONENT ONLY
   ========================================================== */

.construction-banner {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.construction-banner strong {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.construction-banner span {
    font-weight: 600;
}

@media (max-width: 720px) {
    .construction-banner {
        flex-direction: column;
        gap: 2px;
        padding: 7px 14px;
        font-size: 11px;
    }

    .construction-banner strong {
        font-size: 11px;
    }
}

/* Powered by Sensei — discreet footer attribution */
.sensei-powered {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.62;
  text-align: center;
}

/* HAMANA LIVE MEDIA — SHADOW CONTRACT */

.media-screen {
  position: relative;
}

.hamana-tv-player {
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
  object-fit: contain;
}

[data-hamana-tv][data-media-state="ready"]
.hamana-tv-player,
[data-hamana-tv][data-media-state="live"]
.hamana-tv-player {
  display: block;
}

[data-hamana-tv][data-media-state="ready"]
[data-hamana-tv-placeholder],
[data-hamana-tv][data-media-state="live"]
[data-hamana-tv-placeholder] {
  display: none;
}

[data-hamana-radio-player] {
  display: none;
}

[data-hamana-radio-control]:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.hamana-ad-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.hamana-ad-placeholder {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--white);
}

.hamana-ad-placeholder h2 {
  margin: 6px 0 10px;
}

.hamana-ad-placeholder > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto 14px;
  color: var(--muted);
}

.hamana-ad-placeholder > span {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.social-preview-placeholder {
  position: relative;
}

.social-preview-card p {
  padding-bottom: 18px;
}

@media (max-width: 520px) {
  .hamana-ad-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hamana-ad-placeholder {
    padding: 24px 18px;
  }
}

/* Hamana live CTA */
.hamana-live-cta {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 58px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.hamana-live-cta-copy {
  max-width: 620px;
}

.hamana-live-cta-copy h2 {
  margin: 6px 0 10px;
}

.hamana-live-cta-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.hamana-live-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hamana-live-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hamana-live-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hamana-live-cta {
    width: calc(100% - 28px);
    padding: 46px 0;
  }

  .hamana-live-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .hamana-live-cta-button {
    justify-content: center;
    width: 100%;
  }
}


/* Hamana footer mobile responsive R4 */
@media (max-width: 520px) {
  footer {
    gap: 24px;
  }

  footer nav {
    width: 100%;
    gap: 12px 16px;
  }

  .sensei-powered {
    width: 100%;
    text-align: left;
  }
}

/* HAMANA SOCIAL LOCAL VISUALS — R36 */
.social-preview-card .social-preview-visual {
  overflow: hidden;
  background: #091527;
}
.social-preview-card .social-preview-visual > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
