/* ===========================================================
   Radio Tele 6 Univers — design tokens
   Palette drawn from the station's own blue/red/gold identity
   =========================================================== */
:root {
  --navy: #0a0a0a;      /* brand black, sampled from the 6 Univers logo */
  --navy-2: #1c1c1c;
  --red: #e42024;       /* brand red, sampled from the logo */
  --red-dark: #b3181c;
  --gold: #f5c518;      /* brand yellow/gold, sampled from the logo */
  --paper: #f7f6f3;
  --ink: #171717;
  --ink-soft: #4a4f57;
  --line: #e3e1db;
  --white: #ffffff;

  --display: 'Archivo Black', Georgia, serif;
  --head: 'Oswald', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #cfd8e8; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a:hover { color: var(--gold); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { font-weight: 700; opacity: 0.6; }
.lang-switch a.active { opacity: 1; color: var(--gold); }

/* ---------- Masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: 50px; border-radius: 6px; object-fit: cover; }
.brand-name { display: block; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; color: var(--navy); }
.brand-name em { font-style: normal; color: var(--red); }
.brand-name .w-red { color: var(--red); }
.brand-name .w-gold { color: #d69e00; } /* darker gold for legibility on white */
.brand-name .w-ink { color: var(--ink); }
.brand-tagline { display: block; font-size: 11.5px; color: var(--ink-soft); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.search-form { display: flex; border: 2px solid var(--navy); border-radius: 3px; overflow: hidden; }
.search-form input { border: none; padding: 8px 12px; font-family: var(--body); font-size: 14px; width: 200px; }
.search-form input:focus { outline: none; }
.search-form button { background: var(--navy); border: none; color: #fff; width: 40px; cursor: pointer; }
.watch-live-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; padding: 10px 16px; border-radius: 3px; white-space: nowrap; }
.watch-live-btn:hover { background: var(--red-dark); }

/* ---------- Breaking ticker ---------- */
.ticker { background: var(--red); color: #fff; }
.ticker-inner { display: flex; align-items: center; height: 38px; overflow: hidden; }
.ticker-label { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 1px; background: var(--red-dark); padding: 6px 14px; white-space: nowrap; margin-right: 14px; height: 100%; display: flex; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker-content a { font-size: 13.5px; font-weight: 500; }
.ticker-content a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Main nav (with hover dropdowns for nested menu items) ---------- */
.mainnav { background: var(--navy); position: relative; z-index: 40; }
.mainnav-inner { position: relative; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 12px 14px; font-family: var(--head); font-size: 13.5px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: #dde4f0; }
.nav-list a:hover, .nav-list a.active { background: var(--red); color: #fff; }
.nav-list .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--white); min-width: 200px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); border-radius: 0 0 4px 4px; overflow: hidden; }
.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a { color: var(--ink); padding: 10px 16px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.nav-list .sub-menu a:hover { background: var(--paper); color: var(--red); }
.nav-list li.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.nav-toggle { display: none; width: 100%; background: var(--navy); color: #fff; border: none; padding: 12px 20px; text-align: left; font-family: var(--head); font-size: 14px; }

/* ---------- Hot topics ribbon ---------- */
.hot-topics { background: var(--paper); border-bottom: 1px solid var(--line); }
.hot-topics-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 20px; }
.hot-topics-label { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--ink-soft); }
.hot-topics-inner a { font-family: var(--head); font-size: 11.5px; font-weight: 600; color: var(--red); letter-spacing: 0.3px; }
.hot-topics-inner a:hover { text-decoration: underline; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: center; gap: 12px; margin: 36px 0 18px; }
.section-head h2 { font-family: var(--head); font-size: 20px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); margin: 0; padding-left: 12px; border-left: 5px solid var(--red); }
.section-head .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--red); }

/* ---------- Homepage hero ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 28px; }
.hero-main { position: relative; border-radius: 4px; overflow: hidden; background: var(--navy); color: #fff; min-height: 420px; display: flex; align-items: flex-end; }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-main-body { position: relative; padding: 28px; }
.hero-tag { display: inline-block; background: var(--red); font-family: var(--head); font-size: 11.5px; letter-spacing: 1px; padding: 4px 10px; margin-bottom: 10px; text-transform: uppercase; }
.hero-main h1 { font-family: var(--head); font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.hero-main p { color: #dfe6f2; max-width: 60ch; margin: 0; }
.hero-main .read-time { display: block; margin-top: 10px; font-size: 12px; color: #b9c4d8; font-family: var(--head); letter-spacing: 0.4px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item img { width: 110px; height: 76px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.hero-side-item h3 { font-family: var(--head); font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
.hero-side-item .meta { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }

/* ---------- Post grid & cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-family: var(--head); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.card h3 { font-family: var(--head); font-size: 17px; line-height: 1.3; margin: 0; }
.card h3 a:hover { color: var(--red); }
.card .excerpt { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.card .meta { font-size: 11.5px; color: #8a8f98; text-transform: uppercase; letter-spacing: 0.4px; margin-top: auto; }

/* ---------- Layout: content + sidebar ---------- */
.content-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 32px; align-items: start; }
.sidebar { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 18px; position: sticky; top: 16px; }
.sidebar h4 { font-family: var(--head); font-size: 15px; text-transform: uppercase; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin: 0 0 12px; }
.sidebar-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-num { font-family: var(--display); font-size: 22px; color: var(--red); width: 28px; flex-shrink: 0; }
.sidebar-item h5 { font-family: var(--head); font-size: 13.5px; margin: 0; line-height: 1.3; }

/* ---------- Ad slots ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 24px 0; overflow: hidden; }
.ad-slot-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: #9a9a9a; margin-bottom: 6px; }
.ad-slot-sidebar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Single post ---------- */
.post-header { max-width: 820px; margin: 30px auto 0; }
.post-header .card-cat { font-size: 12.5px; }
.post-header h1 { font-family: var(--head); font-size: 34px; line-height: 1.2; margin: 10px 0; color: var(--navy); }
.post-meta { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 20px; }

/* ---------- Social share buttons ---------- */
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-bar-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { font-family: var(--head); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 34px; height: 34px; border-radius: 50%; color: #fff; border: none; cursor: pointer; transition: transform 0.1s, opacity 0.15s; }
.share-btn:hover { transform: scale(1.08); opacity: 0.9; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x { background: #0a0a0a; }
.share-copy { background: var(--ink-soft); width: auto; padding: 0 12px; font-size: 12px; font-family: var(--body); }
.share-copy.copied { background: #1e7a35; }
.share-copy-label { display: none; font-weight: 600; }
.share-copy.copied .share-copy-label { display: inline; }
.post-hero-img { max-width: 900px; margin: 0 auto 24px; border-radius: 4px; overflow: hidden; }
.post-body { max-width: 820px; margin: 0 auto 40px; font-size: 17px; line-height: 1.75; }
.post-body p { margin: 0 0 20px; }
.post-body img { border-radius: 4px; margin: 20px 0; }

/* ---------- Category page ---------- */
.category-header { background: var(--navy); color: #fff; padding: 30px 0; margin-bottom: 30px; }
.category-header h1 { font-family: var(--head); font-size: 30px; text-transform: uppercase; margin: 0; }
.breadcrumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.breadcrumbs .wrap { padding: 10px 20px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 4px; color: #b0b0b0; }
.breadcrumbs span:last-child { color: var(--ink); }

/* ---------- Forms (contact / admin) ---------- */
.form-page { max-width: 640px; margin: 30px auto; background: var(--white); border: 1px solid var(--line); padding: 30px; border-radius: 4px; }
.form-page h1 { font-family: var(--head); color: var(--navy); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--body); font-size: 14px; }
.btn { display: inline-block; background: var(--red); color: #fff; border: none; padding: 11px 22px; font-family: var(--head); font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.btn-secondary { background: var(--navy); }
.alert { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e7a35; border: 1px solid #b8e0c2; }
.alert-error { background: #fdeaea; color: var(--red-dark); border: 1px solid #f5c2c2; }

/* ---------- Live page ---------- */
/* ---------- Live badge (shared by radio + TV players) ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,32,36,0.5); } 50% { box-shadow: 0 0 0 8px rgba(228,32,36,0); } }

/* ---------- Radio hero player ---------- */
.radio-hero { max-width: 480px; margin: 30px auto 50px; text-align: center; background: var(--navy); border-radius: 12px; padding: 40px 24px; color: #fff; }
.radio-hero-compact { max-width: 420px; margin: 40px auto; padding: 30px 24px; }
.radio-hero h1, .radio-hero h2 { font-family: var(--head); font-size: 24px; margin: 4px 0 2px; }
.radio-hero-sub { color: #b9c4d8; font-size: 13px; margin: 0 0 24px; }
.radio-art { position: relative; width: 140px; height: 140px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.radio-art img { width: 100%; height: 100%; object-fit: cover; }
.radio-art .equalizer { position: absolute; bottom: 0; left: 0; right: 0; height: 36px; background: rgba(10,10,10,0.55); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 6px 0; opacity: 0; transition: opacity 0.2s; }
.radio-art.is-playing .equalizer { opacity: 1; }
.radio-art .equalizer span { width: 4px; background: var(--gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.radio-art .equalizer span:nth-child(1) { height: 8px; animation-delay: 0s; }
.radio-art .equalizer span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.radio-art .equalizer span:nth-child(3) { height: 24px; animation-delay: 0.3s; }
.radio-art .equalizer span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.radio-art .equalizer span:nth-child(5) { height: 20px; animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.radio-play-btn { width: 68px; height: 68px; border-radius: 50%; background: var(--red); border: none; color: #fff; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: 6px auto 20px; transition: background 0.15s, transform 0.1s; }
.radio-play-btn:hover { background: var(--red-dark); transform: scale(1.05); }
.radio-play-btn .icon-pause { display: none; }
.radio-play-btn.is-playing .icon-play { display: none; }
.radio-play-btn.is-playing .icon-pause { display: inline; }
.volume-control { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.volume-control input[type="range"] { width: 140px; accent-color: var(--red); }
.radio-hero-note { font-size: 12px; color: #8a95ad; margin-top: 20px; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* ---------- TV player ---------- */
.tv-hero { max-width: 900px; margin: 30px auto 50px; text-align: center; }
.tv-hero h1 { font-family: var(--head); font-size: 26px; color: var(--navy); margin: 4px 0 20px; }
.tv-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.35); border: 6px solid #1c1c1c; }
.tv-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.tv-frame-led { position: absolute; top: 10px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); z-index: 3; }
.tv-brand-watermark { position: absolute; top: 10px; right: 14px; font-family: var(--head); font-size: 11px; letter-spacing: 0.5px; color: rgba(255,255,255,0.55); z-index: 3; text-transform: uppercase; }
.tv-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); z-index: 3; }
.tv-btn { background: rgba(255,255,255,0.12); border: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
.tv-btn:hover { background: rgba(255,255,255,0.24); }
.tv-btn .icon-pause { display: none; }
.tv-btn.is-playing .icon-play { display: none; }
.tv-btn.is-playing .icon-pause { display: inline; }
.tv-btn-pip { width: auto; border-radius: 20px; padding: 0 14px; font-family: var(--head); font-size: 12px; gap: 6px; }
.tv-spacer { flex: 1; }

/* ---------- Persistent mini radio player (site-wide, fixed bottom bar) ---------- */
.mini-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,0.3); transform: translateY(100%); transition: transform 0.25s ease; cursor: default; }
.mini-player.visible { transform: translateY(0); }
.mini-player.needs-tap { cursor: pointer; }
.mini-player-art { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mini-player-toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--red); border: none; color: #fff; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
.mini-player-toggle .icon-pause { display: none; }
.mini-player-toggle.is-playing .icon-play { display: none; }
.mini-player-toggle.is-playing .icon-pause { display: inline; }
.mini-player-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.mini-player-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; animation: live-pulse 2s ease-in-out infinite; }
.mini-player-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player-tap-msg { display: none; font-size: 12px; color: var(--gold); }
.mini-player.needs-tap .mini-player-title { display: none; }
.mini-player.needs-tap .mini-player-tap-msg { display: block; }
.mini-player-close { background: transparent; border: none; color: #8a95ad; font-size: 16px; cursor: pointer; flex-shrink: 0; padding: 8px; }
.mini-player-close:hover { color: #fff; }
body.rt6u-mini-active { padding-bottom: 62px; }
body.rt6u-mini-active .mini-player { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: #fff; padding: 20px 0; }
.admin-sidebar .brand-name { color: #fff; padding: 0 20px 20px; display: block; font-family: var(--head); }
.admin-sidebar a { display: block; padding: 12px 20px; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--red); }
.admin-main { padding: 26px 32px; background: var(--paper); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.admin-table th { background: #f0efe9; font-family: var(--head); font-size: 12.5px; text-transform: uppercase; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-published { background: #e6f4ea; color: #1e7a35; }
.badge-draft { background: #f0efe9; color: #6b6f76; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6cede; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 40px 20px; }
.footer-logo { height: 64px; width: 64px; border-radius: 6px; margin-bottom: 10px; }
.footer-social { display: flex; gap: 14px; margin-top: 12px; font-size: 12.5px; }
.footer-col h4 { font-family: var(--head); font-size: 13.5px; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.footer-col ul li { margin-bottom: 4px; font-size: 13.5px; }
.footer-col ul li a { display: inline-block; padding: 6px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #223357; padding: 16px 0; font-size: 12.5px; text-align: center; color: #8a95ad; }

/* ---------- Newsletter signup strip ---------- */
.newsletter-strip { background: var(--red); }
.newsletter-box { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 22px 20px; text-align: center; }
.newsletter-box h4 { font-family: var(--head); font-size: 16px; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 0.3px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] { padding: 10px 14px; border: none; border-radius: 3px; font-size: 14px; width: 240px; max-width: 60vw; }
.newsletter-form button { background: var(--navy); color: #fff; border: none; padding: 10px 20px; border-radius: 3px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; cursor: pointer; }
.newsletter-form button:hover { background: var(--navy-2); }
.newsletter-msg { width: 100%; margin: 0; font-size: 13px; color: #fff; font-weight: 600; }

/* ---------- Accessibility: skip link, focus states, keyboard dropdown ---------- */
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 200; background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 4px 4px; font-family: var(--head); font-size: 13px; transition: top 0.15s ease; }
.skip-link:focus { top: 0; left: 12px; position: fixed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.nav-list li.open-sub > .sub-menu { display: block; }

/* ---------- Responsive: three real device tiers, not just "mobile" ---------- */

/* Tablet / small laptop (≤1024px): tighten grids, keep full nav */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
}

/* Tablet portrait / large phone (≤860px): switch to the hamburger nav here,
   not at phone width — tablets in portrait can't fit the full category bar either */
@media (max-width: 860px) {
  .masthead-inner { flex-wrap: wrap; row-gap: 12px; }
  .search-form { flex: 1; min-width: 180px; }
  .watch-live-btn { order: 3; }
  .nav-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { min-height: 44px; display: flex; align-items: center; }
  .nav-list .sub-menu { display: none; position: static; box-shadow: none; background: rgba(0,0,0,0.25); }
  .nav-list li:hover > .sub-menu, .nav-list li.open-sub > .sub-menu { display: block; }
  .nav-list .sub-menu a { color: #fff; min-height: 40px; display: flex; align-items: center; }
  .hot-topics-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hot-topics-inner::-webkit-scrollbar { display: none; }
}

/* Phone (≤600px) */
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; height: auto; padding: 6px 0; }
  .topbar-date { display: none; }
  .topbar-links { flex-wrap: wrap; gap: 12px; row-gap: 6px; }
  .newsletter-box { flex-direction: column; gap: 12px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type="email"] { flex: 1; width: auto; max-width: none; }
  .masthead-inner { flex-direction: column; align-items: stretch; }
  .brand { justify-content: flex-start; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; min-height: 44px; }
  .search-form button { min-width: 44px; }
  .watch-live-btn { justify-content: center; min-height: 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social a { display: inline-block; padding: 6px 2px; }
  .post-header h1 { font-size: 24px; }
  .hero-main h1 { font-size: 24px; }
  .mini-player-art { display: none; }
  .radio-hero { padding: 30px 18px; }
  .radio-art { width: 110px; height: 110px; }
  .tv-controls { padding: 8px 10px; gap: 6px; }
  .tv-btn-pip span:last-child { display: none; } /* icon only on phones, label back at wider widths */
}

/* Small phone (≤380px): tighten type and spacing further */
@media (max-width: 380px) {
  .brand-name { font-size: 18px; }
  .brand-tagline { font-size: 10px; }
  .wrap { padding: 0 14px; }
  .hero-main-body { padding: 18px; }
}

/* ---------- WordPress core classes (required for the block editor/content to render correctly) ---------- */
.alignleft { float: left; margin: 6px 20px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 20px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 6px 0; }
.wp-block-image img, .post-body img { border-radius: 4px; }
.screen-reader-text { position: absolute; left: -9999px; }
.pagination { display: flex; gap: 10px; justify-content: center; padding: 36px 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--head); font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
