/* ==========================================================
   Maaveerar Naal mode (body.mv-mode)
   Black band, red-over-yellow rules, serif Tamil type,
   seven clay lamps for the week. Solid colours only.
   ========================================================== */

body.mv-mode {
    --mv-bg: #0d0a09;
    --mv-band: #0d0a09;
    --mv-red: #b3221a;
    --mv-yellow: #e5aa12;
    --mv-text: #f3ebe3;
    --mv-soft: #d8cabe;
    --mv-muted: #9a8a80;
    --mv-line: #2b221e;
    --mv-clay: #3b2a22;
    --mv-clay-rim: #4d382d;
    --mv-clay-lit: #a8683a;
    --mv-clay-lit-rim: #c8854e;

    --primary: var(--mv-red);
    --primary-hover: #c82a20;
    --primary-glow: transparent;
    --gradient-primary: var(--mv-red);
    --bg-dark: var(--mv-bg);
    --bg-panel: #151110;
    --bg-card: #171211;
    --bg-elevated: #1b1514;
    --border-subtle: var(--mv-line);
    --shadow-glow: none;
}

body.mv-mode,
body.mv-mode .ttn-site { background-color: var(--mv-bg) !important; }

body.mv-mode [lang="ta"] { font-family: 'Noto Sans Tamil', 'Inter', sans-serif; }

body.mv-mode nav.ttn-header {
    background: #0a0807 !important;
    border-bottom: 0 !important;
    box-shadow: none;
}
body.mv-mode .logo span {
    background: none;
    -webkit-text-fill-color: var(--mv-yellow);
    color: var(--mv-yellow);
}
body.mv-mode .video-meta-panel {
    background: #141010;
    border-bottom: 1px solid var(--mv-line);
}

/* ---------- Band ---------- */
.mv-band {
    background: var(--mv-band);
    border-top: 3px solid var(--mv-red);
    box-shadow: inset 0 3px 0 var(--mv-yellow);
    color: var(--mv-text);
    overflow: hidden;
}
.mv-band-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 52px 32px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 40px;
    align-items: end;
}

.mv-band h2 {
    margin: 0;
    font-family: 'Noto Serif Tamil', serif;
    font-weight: 800;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--mv-text);
}
.mv-band h2 [lang="ta"] { font-family: 'Noto Serif Tamil', serif; }
.mv-year {
    font-family: 'Noto Serif Tamil', Georgia, serif;
    font-weight: 500;
    color: var(--mv-yellow);
}
.mv-date {
    margin: 14px 0 0;
    font-size: 15px;
    color: var(--mv-muted);
}
.mv-pledge {
    margin: 28px 0 6px;
    max-width: 36ch;
    font-size: 21px;
    line-height: 1.7;
    color: var(--mv-soft);
}
.mv-pledge-en {
    margin: 0;
    max-width: 60ch;
    font-size: 14px;
    color: var(--mv-muted);
}

/* ---------- Week of lamps ---------- */
.mv-week {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--mv-line);
}
.mv-lamps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.mv-day {
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--mv-muted);
}
.mv-day-main {
    width: 110px;
    margin-left: 14px;
    padding-left: 20px;
    border-left: 1px solid var(--mv-line);
    box-sizing: content-box;
}
.mv-agal { width: 62px; height: 62px; display: block; }
.mv-day-main .mv-agal { width: 100px; height: 100px; }

.mv-agal-bowl { fill: var(--mv-clay); transition: fill .6s ease; }
.mv-agal-rim  { fill: var(--mv-clay-rim); transition: fill .6s ease; }
.mv-agal-wick { opacity: .6; }
.mv-agal-flame {
    opacity: 0;
    transform-origin: 48px 36px;
    transform: scale(.3);
    transition: opacity .7s ease, transform .7s ease;
}
.mv-day.is-lit .mv-agal-bowl { fill: var(--mv-clay-lit); }
.mv-day.is-lit .mv-agal-rim  { fill: var(--mv-clay-lit-rim); }
.mv-day.is-lit .mv-agal-flame {
    opacity: 1;
    transform: scale(1);
    animation: mv-flicker 3s ease-in-out .7s infinite;
}
@keyframes mv-flicker {
    0%, 100% { transform: scale(1) skewX(0deg); }
    35%      { transform: scale(1.03, .96) skewX(-2deg); }
    70%      { transform: scale(.97, 1.03) skewX(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
    .mv-day.is-lit .mv-agal-flame { animation: none; }
}

.mv-day-num {
    margin-top: 6px;
    font: 600 15px 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--mv-soft);
}
.mv-day-main .mv-day-num { font-size: 20px; color: var(--mv-yellow); }
.mv-day-wd { font-size: 11px; color: var(--mv-muted); }
.mv-day.is-today .mv-day-num { color: var(--mv-yellow); }

.mv-cd {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}
.mv-cd-text { font-size: 16px; color: var(--mv-soft); }
.mv-cd-digits {
    font: 600 26px 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    color: var(--mv-text);
}
.mv-cd-digits small {
    font-size: 15px;
    font-weight: 500;
    color: var(--mv-muted);
    margin: 0 10px 0 3px;
}
.mv-cd-digits:empty { display: none; }
.mv-cd-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--mv-muted);
}
.mv-light-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 22px;
    background: var(--mv-yellow);
    color: #1a1007;
    border: 0;
    border-radius: 4px;
    font: 700 15px 'Noto Sans Tamil', 'Inter', sans-serif;
    cursor: pointer;
}
.mv-light-btn:hover { background: #f0b922; }
.mv-light-btn[hidden] { display: none; }
.mv-light-en { font: 500 13px 'Inter', sans-serif; opacity: .75; }

/* ---------- Leader at the flame ---------- */
.mv-hero {
    margin: -52px -32px -40px 0;   /* bleed to the band's top, right and bottom edges */
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.mv-hero img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
}

/* ---------- Streams ---------- */
.mv-streams {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px 8px;
}
.mv-streams-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--mv-red);
}
.mv-streams-head h2 {
    margin: 0;
    font-family: 'Noto Serif Tamil', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.25;
    color: var(--mv-text);
}
.mv-streams-head h2 [lang="ta"] { font-family: 'Noto Serif Tamil', serif; }
.mv-streams-head p {
    margin: 0;
    font-size: 13px;
    color: var(--mv-muted);
}

.mv-stream-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
}
.mv-stream { border-bottom: 1px solid var(--mv-line); }
.mv-stream-btn {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 4px 14px 12px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: var(--mv-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background-color .15s ease;
}
.mv-stream.is-ready .mv-stream-btn:hover,
.mv-stream-btn:focus-visible { background-color: #161110; }
.mv-stream.is-soon .mv-stream-btn { cursor: default; }

.mv-flag {
    width: 32px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--mv-line);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.mv-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-stream.is-soon .mv-flag { opacity: .55; }
.mv-place { display: flex; flex-direction: column; min-width: 0; }
.mv-country {
    font-family: 'Noto Serif Tamil', serif !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.mv-sub {
    font-size: 13px;
    color: var(--mv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mv-status {
    font-size: 13px;
    color: var(--mv-muted);
    white-space: nowrap;
}
.mv-stream.is-ready .mv-status { color: var(--mv-soft); }
.mv-stream.is-ready .mv-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    vertical-align: 1px;
    background: var(--mv-red);
    border-radius: 50%;
}
.mv-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--mv-line);
    color: #5a4c45;
}
.mv-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.mv-stream.is-ready .mv-play { background: var(--mv-red); border-color: var(--mv-red); color: #fff; }
.mv-stream.is-soon .mv-country { color: var(--mv-soft); }

.mv-stream.is-playing .mv-stream-btn { border-left-color: var(--mv-yellow); background-color: #17110f; }
.mv-stream.is-playing .mv-status { color: var(--mv-yellow); }
.mv-stream.is-playing .mv-status::before { background: var(--mv-yellow); }
.mv-stream.is-playing .mv-play { background: var(--mv-yellow); border-color: var(--mv-yellow); color: #1a1007; }

/* YouTube embed over the player */
.mv-embed { position: absolute; inset: 0; z-index: 30; background: #000; }
.mv-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.mv-embed-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    font: 600 13px 'Noto Sans Tamil', 'Inter', sans-serif;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .mv-band-inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
}
@media (max-width: 860px) {
    .mv-band-inner {
        grid-template-columns: 1fr;
        padding: 32px 16px 28px;
        position: relative;
    }
    .mv-band-inner { padding-top: 0; }
    .mv-hero {
        order: -1;
        margin: 0 -16px -56px;
        justify-content: center;
    }
    .mv-hero img { max-width: 520px; }
    .mv-copy { position: relative; }
    .mv-band h2 { font-size: 40px; max-width: 7em; }
    .mv-pledge { font-size: 17px; margin-top: 20px; max-width: none; }
    .mv-stream-list { grid-template-columns: 1fr; }
    .mv-streams { padding: 28px 16px 4px; }
}
@media (max-width: 480px) {
    .mv-band h2 { font-size: 34px; }
    .mv-pledge-en { display: none; }
    .mv-week { margin-top: 24px; padding-top: 18px; }
    .mv-lamps { gap: 0; justify-content: space-between; }
    .mv-day { width: auto; flex: 1; }
    .mv-day-main { flex: 1.4; margin-left: 6px; padding-left: 8px; }
    .mv-agal { width: 38px; height: 38px; }
    .mv-day-main .mv-agal { width: 58px; height: 58px; }
    .mv-day-num { font-size: 13px; }
    .mv-day-main .mv-day-num { font-size: 16px; }
    .mv-cd-digits { font-size: 22px; }
    .mv-status { display: none; }
    .mv-stream-btn { gap: 12px; }
    .mv-flag { width: 28px; height: 21px; }
}
