:root {
  --accent: #e0359f;   /* magenta from the eye */
  --accent2: #ff9a1f;  /* orange-yellow glow */
  --iris: #3ddc84;     /* green iris */
  --bg: #07060f;
  --bg2: rgba(18, 12, 32, 0.78);
  --card: rgba(10, 8, 22, 0.55);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7f3ff;
  --muted: #c3b8dc;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Background video ---------- */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg) center/cover no-repeat; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; }
.bg-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(7,6,15,0), rgba(7,6,15,.45) 75%),
    linear-gradient(to bottom, rgba(7,6,15,.1) 0%, rgba(7,6,15,.3) 60%, rgba(7,6,15,.7) 100%);
  transition: background .6s;
}
body.scrolled .bg-shade { background: rgba(7,6,15,.72); }
h1, h2 { line-height: 1.1; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(7, 6, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.logo {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size: 0.8rem; letter-spacing: 0.05em; color: #fff;
}
.logo img { height: 40px; width: auto; border-radius: 12px; }
.logo.has-img { background: none; padding: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.15rem; }
.brand-ml { font-size: .75rem; font-weight: 600; color: var(--accent2); }
.ml { font-family: "Noto Sans Malayalam", "Outfit", system-ui, sans-serif; }
.ml:empty { display: none; }
.title-ml {
  margin: -0.2em 0 14px; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; color: #ffd1ec;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.nav-news .ml { font-size: .85em; }
.freq {
  font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.freq:empty { display: none; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .freq { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh; display: grid; place-items: center;
  padding: 60px 16px 40px; text-align: center;
}
.hero-bg { display: none; }
body.no-video .hero-bg {
  display: block; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 25% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(45% 45% at 75% 60%, color-mix(in srgb, var(--accent2) 55%, transparent), transparent 70%);
  filter: blur(40px); opacity: 0.55;
}
.hero-inner { position: relative; width: 100%; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.5rem); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0%, #ffd1ec 35%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.6));
}
.tagline { font-size: clamp(1rem, 2.5vw, 1.25rem); color: #fff; opacity: .9; margin: 0 0 32px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em;
  background: rgba(7,6,15,.6); color: #ff6fc0; border: 1px solid rgba(224, 53, 159, 0.6);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Player card ---------- */
.player-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 22px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.play-btn {
  position: relative; width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform .15s;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn:active { transform: scale(0.96); }
.play-btn svg { width: 34px; height: 34px; fill: currentColor; }
.play-btn.small { width: 46px; height: 46px; }
.play-btn.small svg { width: 22px; height: 22px; }
.play-btn .i-pause, .play-btn .spinner { display: none; }
body.playing .play-btn .i-play { display: none; }
body.playing .play-btn .i-pause { display: block; }
body.loading .play-btn svg { display: none; }
body.loading .play-btn .spinner { display: block; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.play-btn.small .spinner { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.np { min-width: 0; }
.np-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.np-title { font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-show { font-size: .9rem; color: var(--muted); }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.eq i { width: 4px; height: 20%; background: linear-gradient(to top, var(--iris), var(--accent2)); border-radius: 2px; }
body.playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s !important; }
.eq i:nth-child(3) { animation-delay: -.5s !important; }
.eq i:nth-child(4) { animation-delay: -.7s !important; }
.eq i:nth-child(5) { animation-delay: -.35s !important; }
@keyframes eq { 0%,100% { height: 20%; } 50% { height: 100%; } }

.volume { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
body.muted-on #muteBtn { color: var(--accent); }
input[type=range] { flex: 1; accent-color: var(--accent); }
.status { min-height: 1.4em; color: var(--muted); font-size: .9rem; margin-top: 14px; }

@media (max-width: 520px) {
  .player-card { grid-template-columns: auto 1fr; padding: 16px; }
  .eq { display: none; }
  .play-btn { width: 62px; height: 62px; }
}

/* ---------- Strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  gap: 12px;
}
.strip-item { backdrop-filter: blur(10px); background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.strip-label { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 72px 16px 24px; }
.about p { font-size: 1.15rem; color: var(--muted); max-width: 760px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.tabs button {
  flex: none; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--border);
  font: inherit; font-weight: 600;
}
.tabs button[aria-selected=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.schedule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schedule-list li {
  display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border);
}
.schedule-list .time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.schedule-list .host { color: var(--muted); font-size: .9rem; }
.schedule-list li, .show-card, .tabs button, .btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.schedule-list li.now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg2)); }
.badge-now { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--iris); }
@media (max-width: 560px) {
  .schedule-list li { grid-template-columns: 1fr auto; }
  .schedule-list .time { grid-column: 1 / -1; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.show-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 800; font-size: 1.2rem;
}
.show-card h3 { margin: 0; }
.show-card .host { color: var(--accent2); font-weight: 600; font-size: .95rem; }
.show-card p { color: var(--muted); margin: 10px 0 0; }

.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  background: var(--bg2); border: 1px solid var(--border);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--muted); }
.social a:hover { color: var(--text); border-color: var(--accent); }

.footer { text-align: center; color: var(--muted); padding: 48px 16px 120px; font-size: .9rem; }

/* ---------- Mini player ---------- */
.mini {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 12px;
  width: min(420px, calc(100% - 32px));
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(12, 8, 24, 0.9); border: 1px solid var(--border);
  backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.mini[hidden] { display: none; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-text span { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.footer .credit { font-size: .8rem; opacity: .7; }
.music-credits p { margin: 4px auto; max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  .bg-video video { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- News page ---------- */
.news-hero { max-width: 900px; margin: 0 auto; padding: 56px 16px 8px; text-align: center; }
.news-hero h1 {
  font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #fff 0%, #ffd1ec 35%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.6));
}
.news-hero .title-ml { margin-top: 0; }
.news-hero .btn { margin-top: 8px; }
.news-list { max-width: 900px; margin: 0 auto; padding: 24px 16px 24px; display: grid; gap: 16px; }
.news-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.news-card time { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.news-card h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); margin: 6px 0 4px; }
.news-card .h-ml { font-size: 1.05rem; font-weight: 600; color: #ffd1ec; margin: 0 0 8px; }
.news-card p { color: var(--muted); margin: 8px 0 0; }
.news-card .tag { display: table; margin-top: 12px; font-size: .75rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.news-card a.more { display: inline-block; margin-top: 12px; color: var(--accent2); font-weight: 600; }
.news-empty { text-align: center; color: var(--muted); }

/* ---------- News / FM tabs in the top bar ---------- */
.site-tabs { display: flex; gap: 8px; }
.site-tab {
  --tab: var(--accent); --tab2: var(--accent2);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: .95rem; color: var(--text);
  background: color-mix(in srgb, var(--tab) 14%, rgba(7,6,15,.6));
  border: 1.5px solid color-mix(in srgb, var(--tab) 70%, transparent);
  transition: background .2s, box-shadow .2s;
}
.site-tab.tab-news { --tab: var(--iris); --tab2: #19b6c9; }
.site-tab .ml { font-weight: 600; font-size: .85em; }
.site-tab:hover { background: color-mix(in srgb, var(--tab) 26%, rgba(7,6,15,.6)); }
.site-tab.active {
  background: linear-gradient(135deg, var(--tab), var(--tab2)); border-color: transparent; color: #fff;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--tab) 45%, transparent);
}
.site-tab.tab-news.active { color: #04130b; }
.site-tab .freq { margin-left: 4px; }
.t-short, .t-short-ml { display: none; }
.brand { min-width: 0; }
@media (max-width: 1240px) {
  .site-tab .t-long { display: none; }
  .site-tab .t-short, .site-tab .t-short-ml { display: inline; }
}
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; }
  .brand .logo { display: none; }
  .site-tabs { gap: 2px; }
  .site-tab { padding: 7px 10px; font-size: .88rem; gap: 4px; }
}

/* =====================================================================
   News portal (news.html)
   ===================================================================== */
body.news-view .bg-shade { background: rgba(7,6,15,.86); }
body.reader-open, body.consent-open { overflow: hidden; }
.np-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nw .ml { font-family: "Noto Sans Malayalam", "Outfit", system-ui, sans-serif; }

/* Info bar */
.np-info { background: rgba(5,4,12,.85); border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.np-info-row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 7px; padding-bottom: 7px; }
.np-info-row span[hidden] { display: none; }
.np-info-row > span + span::before { content: "·"; margin-right: 18px; opacity: .5; }

/* Masthead */
.np-mast { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 22px; }
.nw-title {
  margin: 0; font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.05;
  background: linear-gradient(90deg, var(--iris) 0%, #19b6c9 30%, #fff 55%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-title-ml { margin: 6px 0 4px; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; color: #ffd1ec; }
.np-tag { margin: 0; color: var(--muted); }
.np-mast-ad {
  flex: none; display: grid; place-items: center; text-align: center; gap: 2px;
  width: min(360px, 40%); min-height: 96px; padding: 12px; border-radius: 14px; text-decoration: none;
  border: 1.5px dashed color-mix(in srgb, var(--accent2) 70%, transparent);
  background: color-mix(in srgb, var(--accent2) 8%, rgba(7,6,15,.5)); color: var(--text);
}
.np-mast-ad strong { font-size: 1.05rem; }
.np-mast-ad span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .np-mast-ad { display: none; } .np-mast { padding-top: 18px; padding-bottom: 14px; } }

/* Category bar */
.np-cats { position: sticky; top: 64px; z-index: 15; background: linear-gradient(90deg, #a01c6f, #c2265f 50%, #d2541c); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.np-cats-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.np-cats-row::-webkit-scrollbar { display: none; }
.np-cat {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 9px 16px; text-decoration: none; color: #fff; border-bottom: 3px solid transparent; line-height: 1.2;
}
.np-cat .ml { font-weight: 700; font-size: 1rem; }
.np-cat small { font-size: .68rem; opacity: .8; letter-spacing: .05em; text-transform: uppercase; }
.np-cat:hover { background: rgba(0,0,0,.15); }
.np-cat.active { background: rgba(0,0,0,.28); border-bottom-color: #fff; }

/* Breaking ticker */
.np-breaking { background: #10162e; border-bottom: 1px solid var(--border); }
.np-breaking[hidden] { display: none; }
.np-breaking-row { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.np-breaking-label { flex: none; background: #e3263b; color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 6px; animation: blink 2s infinite; }
.np-breaking-label .ml { font-weight: 600; letter-spacing: 0; margin-left: 4px; }
@keyframes blink { 50% { opacity: .75; } }
.np-ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.np-ticker-track { display: inline-flex; gap: 60px; white-space: nowrap; animation: ticker 30s linear infinite; padding-left: 100%; }
.np-ticker:hover .np-ticker-track { animation-play-state: paused; }
.np-ticker a { color: #fff; text-decoration: none; font-weight: 600; }
.np-ticker a:hover { color: var(--accent2); }
.np-ticker a::before { content: "◆"; color: var(--accent2); margin-right: 10px; font-size: .7em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Layout */
.np-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 26px; padding-bottom: 20px; }
@media (max-width: 960px) { .np-body { grid-template-columns: 1fr; } }
.np-section-title { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--accent2); }
.np-section-title .ml { color: var(--muted); font-size: .95rem; font-weight: 600; }
.np-main > .np-section-title:not(:first-child) { margin-top: 30px; }

/* Cards */
.np-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); overflow: hidden;
  background: rgba(16,12,30,.88); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.np-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.np-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.np-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #140f24; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-thumb-empty {
  display: grid; place-items: center;
  background:
    radial-gradient(70% 90% at 20% 20%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%),
    radial-gradient(60% 80% at 85% 80%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    #120d22;
}
.np-thumb-empty span { font-weight: 700; font-size: clamp(1.2rem, 3vw, 2rem); color: rgba(255,255,255,.92); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.np-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.np-badge { color: #fff; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 75%, #000); }
.np-h-ml { margin: 4px 0 0; font-size: 1.1rem; line-height: 1.4; font-weight: 700; }
.np-h-en { margin: 0; color: #e8defc; font-weight: 600; font-size: .95rem; }
.np-sum { margin: 6px 0 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.np-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.np-card-lead .np-h-ml { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.np-card-lead .np-h-en { font-size: 1.05rem; }
.np-lead-side { display: grid; gap: 16px; align-content: start; }
.np-card-small { flex-direction: row; }
.np-card-small .np-thumb { flex: none; width: 38%; aspect-ratio: auto; min-height: 110px; }
.np-card-small .np-thumb-empty span { font-size: 1rem; }
.np-card-small .np-h-ml { font-size: 1rem; }
@media (max-width: 720px) { .np-lead { grid-template-columns: 1fr; } }
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.np-empty { color: var(--muted); padding: 18px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; margin: 0; grid-column: 1 / -1; }

/* Sidebar */
.np-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 961px) { .np-side { position: sticky; top: 140px; } }
.np-box { background: rgba(16,12,30,.88); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.np-box h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.np-box h3 .ml { color: var(--muted); font-size: .9rem; font-weight: 600; }
.np-box p { margin: 0 0 12px; }
.np-send { display: flex; flex-wrap: wrap; gap: 8px; }
.np-radio { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 35%, #120d22), color-mix(in srgb, var(--accent2) 25%, #120d22)); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.np-radio-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: #ffd1ec; margin-bottom: 12px; }
.np-radio-head .ml { letter-spacing: 0; font-weight: 600; }
.np-radio-row { display: flex; align-items: center; gap: 14px; }
.np-radio-row strong { display: block; }
.np-radio-row strong .ml { font-size: .85em; color: #ffd1ec; font-weight: 600; }
.np-radio-np { display: block; color: #f3e8ff; font-size: .88rem; }
.np-radio-btn { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #fff; color: #a01c6f; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.np-radio-btn svg { width: 26px; height: 26px; fill: currentColor; }
.np-radio-btn .i-pause, body.playing .np-radio-btn .i-play { display: none; }
body.playing .np-radio-btn .i-pause { display: block; }
.np-radio-link { display: inline-block; margin-top: 12px; font-size: .85rem; color: #fff; opacity: .85; }
.np-ad { text-align: center; display: grid; gap: 4px; justify-items: center; border-style: dashed; border-color: color-mix(in srgb, var(--accent2) 60%, transparent); }
.np-ad-label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.np-ad strong { font-size: 1.15rem; }
.np-ad .ml { color: var(--muted); }
.np-ad p { color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.np-side-cats { display: grid; gap: 6px; }
.np-side-cat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); border-left: 4px solid var(--c); background: rgba(255,255,255,.03); }
.np-side-cat .ml { font-weight: 600; }
.np-side-cat small { color: var(--muted); }
.np-side-cat b { margin-left: auto; font-size: .78rem; color: var(--muted); }
.np-side-cat:hover, .np-side-cat.active { background: color-mix(in srgb, var(--c) 18%, transparent); }

/* Reader */
.np-reader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.np-reader[hidden] { display: none; }
.np-reader-backdrop { position: absolute; inset: 0; background: rgba(3,2,8,.78); backdrop-filter: blur(4px); }
.np-reader-card {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #120d22; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.np-reader-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; background: rgba(0,0,0,.6); color: #fff; }
.np-thumb-big { aspect-ratio: 21 / 9; }
.np-reader-body { padding: 20px 24px 26px; }
.np-reader-body h2 { margin: 10px 0 4px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.np-reader-ml { margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; color: #ffd1ec; }
.np-reader-text p { color: #e8defc; font-size: 1.05rem; line-height: 1.75; margin: 0 0 14px; }
.np-reader-text p.ml { line-height: 1.95; }
.np-lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); margin: 4px 0 14px; }
.np-lang[hidden] { display: none; }
.np-lang button { border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.np-lang button[aria-pressed=true] { background: var(--accent); color: #fff; }
.np-more { color: var(--accent2); font-weight: 600; }
.np-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.np-share button.btn { color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }

/* Consent */
.np-consent { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(3,2,8,.7); backdrop-filter: blur(5px); }
.np-consent[hidden] { display: none; }
.np-consent-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: #1a1530; border-radius: 18px; padding: 26px 26px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.np-consent-hi { margin: 0; color: #6a5f86; font-size: .9rem; text-align: center; }
.np-consent-card h2 { text-align: center; margin: 6px 0 12px; font-size: 1.5rem; }
.np-consent-card h2 .ml { display: block; font-size: 1rem; color: #a01c6f; margin-top: 4px; }
.np-consent-card ul { padding-left: 20px; margin: 8px 0 12px; }
.np-consent-card li { margin-bottom: 6px; }
.np-consent-ml { color: #4b4266; font-size: .92rem; }
.np-consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.np-consent-btns .btn { justify-content: center; font: inherit; font-weight: 700; cursor: pointer; backdrop-filter: none; }
.np-consent-btns .btn:not(.primary) { background: #fff; color: #2a2245; border: 1.5px solid #c9c1dd; }
.np-consent .small.muted { color: #6a5f86; text-align: center; margin: 0; }
@media (max-width: 420px) { .np-consent-btns { grid-template-columns: 1fr; } }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .np-ticker-track { padding-left: 0; } }

/* News view inside the main page */
#newsView[hidden], #radioView[hidden] { display: none; }
.np-card-small .np-thumb { width: 30%; min-height: 100px; }
.np-card-small .np-card-body { padding: 12px 14px; }
.np-card-small .np-h-ml { font-size: .98rem; line-height: 1.35; }
.np-card-small .np-badge { font-size: .72rem; }
.np-thumb-empty span { text-align: center; padding: 6px; }

/* ---------- Photo gallery ---------- */
#npNewsMain[hidden], #npGalleryView[hidden], .np-gl-back[hidden], .np-gl-desc[hidden] { display: none; }
.np-cat-gallery { background: rgba(255,210,63,.18); }
.np-gl-back { display: inline-block; margin: 0 0 12px; color: var(--accent2); font-weight: 600; text-decoration: none; }
.np-gl-back .ml { color: var(--muted); font-weight: 500; }
.np-gl-desc { margin: -4px 0 16px; color: #e8defc; }
.np-gl-desc p { margin: 0 0 8px; }
.np-gl-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.np-gl-album .np-thumb { aspect-ratio: 4 / 3; }
.np-gl-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.np-gl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.np-gl-tile { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #140f24; cursor: zoom-in; }
.np-gl-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.np-gl-tile:hover img, .np-gl-tile:focus-visible img { transform: scale(1.05); }
.np-side-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 12px; }
.np-side-gallery .np-gl-tile { border-radius: 8px; cursor: pointer; }
@media (max-width: 480px) { .np-gl-photos { grid-template-columns: repeat(2, 1fr); } }

.np-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(3,2,8,.94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.np-lightbox[hidden] { display: none; }
.np-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.np-lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 90px); object-fit: contain; border-radius: 8px; }
.np-lightbox figcaption { color: var(--muted); font-size: .9rem; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Story as a full article page ---------- */
.np-reader.np-article { position: static; inset: auto; z-index: auto; display: block; padding: 0; }
.np-reader.np-article[hidden] { display: none; }
.np-article .np-reader-backdrop { display: none; }
.np-article .np-reader-card { width: 100%; max-height: none; overflow: visible; box-shadow: none; }
.np-article .np-reader-close {
  position: static; width: auto; height: auto; border-radius: 999px; margin: 14px 0 0 16px;
  padding: 8px 16px; font: inherit; font-size: .95rem; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid var(--border);
}
.np-article .np-reader-close:hover { background: rgba(255,255,255,.16); }
.np-article .np-reader-img { margin-top: 12px; }
.np-article .np-thumb-big { aspect-ratio: 16 / 9; }
.np-article .np-reader-body h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; }
.np-article .np-reader-text p { font-size: 1.12rem; }
.np-article #rdTitle:focus { outline: none; }
.np-article-more { margin-top: 30px; }
.np-article .np-thumb-big.np-thumb-empty { aspect-ratio: 21 / 7; }
