/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-52a1c482.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-545550cc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-5e1dcb28.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-513b0918.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-9f1d404e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-c14ed056.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-488e62cc.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-aeb5ca34.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-d3fa17e5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-e8c6b573.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-513b0918.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-9f1d404e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-c14ed056.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-488e62cc.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-aeb5ca34.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-d3fa17e5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/font-e8c6b573.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-513b0918.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-9f1d404e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-c14ed056.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-488e62cc.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-aeb5ca34.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-d3fa17e5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-e8c6b573.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-513b0918.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-9f1d404e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-c14ed056.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-488e62cc.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-aeb5ca34.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-d3fa17e5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-e8c6b573.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ THEMES ============ */
/* Default = Broadcast Dark */
:root,
[data-theme="dark"] {
  --bg: #0A0E14;
  --bg-elev: #11161F;
  --bg-card: #151B26;
  --bg-hover: #1B2330;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #E8ECF2;
  --text-muted: #8590A3;
  --text-dim: #5C6677;
  --primary: oklch(0.70 0.17 240);   /* electric blue */
  --primary-hover: oklch(0.76 0.17 240);
  --primary-ink: #0A0E14;
  --gold: oklch(0.82 0.17 85);        /* Niue flag yellow nod */
  --red: oklch(0.65 0.22 25);         /* ON AIR red */
  --accent: var(--primary);
  --hero-tint: linear-gradient(135deg, rgba(20,40,80,0.6), rgba(60,20,100,0.4));
  --tone: 'dark';
}

[data-theme="flag"] {
  --bg: #07173F;
  --bg-elev: #0B2461;
  --bg-card: #0E2B73;
  --bg-hover: #143489;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.22);
  --text: #F5F7FF;
  --text-muted: #A7B4D8;
  --text-dim: #6B78A0;
  --primary: #FFD21F;                 /* canary yellow (flag star) */
  --primary-hover: #FFDE4F;
  --primary-ink: #07173F;
  --gold: #FFD21F;
  --red: oklch(0.65 0.22 25);
  --accent: var(--primary);
  --hero-tint: linear-gradient(135deg, rgba(11,36,97,0.85), rgba(20,52,137,0.6));
  --tone: 'dark';
}

[data-theme="ocean"] {
  --bg: #062C35;
  --bg-elev: #0A3B47;
  --bg-card: #0E4A58;
  --bg-hover: #135B6B;
  --border: rgba(235,223,194,0.14);
  --border-strong: rgba(235,223,194,0.26);
  --text: #F3EBD4;
  --text-muted: #C4B896;
  --text-dim: #8F856A;
  --primary: oklch(0.78 0.14 195);    /* turquoise */
  --primary-hover: oklch(0.84 0.14 195);
  --primary-ink: #062C35;
  --gold: #EBDFC2;                    /* sand */
  --red: oklch(0.68 0.20 25);         /* coral */
  --accent: var(--primary);
  --hero-tint: linear-gradient(135deg, rgba(10,59,71,0.8), rgba(19,91,107,0.55));
  --tone: 'dark';
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Animated background layers */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-hiapo {
  position: absolute;
  inset: -10%;
  background-image: url("../images/logo.png");
  background-size: 620px auto;
  background-repeat: repeat;
  opacity: 0.03;
  animation: hiapoDrift 180s linear infinite;
}
[data-theme="flag"] .bg-hiapo { opacity: 0.04; }
[data-theme="ocean"] .bg-hiapo { opacity: 0.025; }
@keyframes hiapoDrift {
  from { background-position: 0 0; }
  to   { background-position: 620px 620px; }
}
.bg-orb {
  position: absolute;
  width: 52vw; height: 52vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.08;
  will-change: transform;
}
.bg-orb.a {
  background: radial-gradient(circle at 30% 30%, var(--primary), transparent 62%);
  top: -14vw; left: -10vw;
  animation: orbA 28s ease-in-out infinite alternate;
}
.bg-orb.b {
  background: radial-gradient(circle at 70% 50%, var(--gold), transparent 62%);
  bottom: -18vw; right: -12vw;
  animation: orbB 34s ease-in-out infinite alternate;
  opacity: 0.06;
}
.bg-orb.c {
  background: radial-gradient(circle at 50% 50%, var(--red), transparent 65%);
  top: 40%; left: 40%;
  width: 38vw; height: 38vw;
  opacity: 0.03;
  animation: orbC 42s ease-in-out infinite alternate;
}
[data-theme="flag"] .bg-orb.a { opacity: 0.05; }
[data-theme="flag"] .bg-orb.b { opacity: 0.08; }
[data-theme="ocean"] .bg-orb.a { opacity: 0.1; }
[data-theme="ocean"] .bg-orb.b { opacity: 0.05; }
@keyframes orbA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(22vw, 18vh) scale(1.15); }
}
@keyframes orbB {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-18vw, -22vh) scale(0.95); }
}
@keyframes orbC {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -60%) scale(1.3); }
}

/* Floating stars (Niue flag reference — small animated dots) */
.bg-star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  animation: starTwinkle 6s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 0.15; transform: scale(1); }
}

/* Ocean wave SVG line */
.bg-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%; height: 140px;
  opacity: 0.015;
  animation: waveSlide 40s linear infinite;
}
[data-theme="ocean"] .bg-wave { opacity: 0.03; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-hiapo, .bg-orb, .bg-star, .bg-wave { animation: none !important; }
}

.site { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, .display {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ LAYOUT ============ */
.site { max-width: 1440px; margin: 0 auto; }

/* Top utility bar */
.utility-bar {
  background: #000;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  font-size: 12px;
}
.utility-bar .left { display: flex; gap: 18px; align-items: center; color: var(--text-muted); }
.utility-bar .right { display: flex; gap: 10px; align-items: center; }
.utility-bar .wx {
  display: flex; gap: 8px; align-items: center;
  color: var(--text-muted);
}
.utility-bar .wx strong { color: var(--text); font-weight: 600; }

.theme-switcher {
  display: flex; gap: 2px; align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 2px;
}
.theme-switcher button {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--text-muted);
}
.theme-switcher button.active {
  background: var(--primary);
  color: var(--primary-ink);
}

/* Header */
.header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo-img {
  height: 52px; width: auto; display: block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.brand-logo-img.footer-logo {
  height: 46px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.brand-logo {
  width: 54px; height: 54px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid; place-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  border-radius: 4px;
  position: relative;
}
.brand-logo::after {
  content: '';
  position: absolute;
  inset: -3px -3px auto auto;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg-elev);
}
.brand-text {
  font-family: 'Archivo', sans-serif;
  line-height: 1;
}
.brand-text .name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-text .tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.header-right { display: flex; align-items: center; gap: 12px; }
.search {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  width: 260px;
}
.search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; flex: 1;
  font-family: inherit;
}
.search input::placeholder { color: var(--text-dim); }
.listen-btn {
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 3px;
  display: flex; gap: 8px; align-items: center;
}
.listen-btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white;
  animation: pulse 1.6s infinite;
}

/* Primary nav */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 14px 18px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

/* Main grid (no sidebar) */
.main-grid { display: block; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-title .icon { width: 14px; height: 14px; color: var(--primary); }
.sidebar-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 6px;
  border-radius: 2px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-item .time {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  min-width: 38px;
}
.sidebar-item.live .time { color: var(--red); }
.sidebar-item.live { color: var(--text); font-weight: 500; }
.sidebar-item .live-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: white;
  background: var(--red);
  padding: 2px 5px;
  border-radius: 2px;
}

.content { padding: 28px 32px; max-width: 1440px; margin: 0 auto; }

/* ============ SUBPAGES ============ */
.page-head {
  padding: 40px 32px 28px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-elev);
  max-width: 1440px; margin: 0 auto;
}
.page-head .kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.page-head h1 {
  font-size: 52px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-head p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.5;
}

/* News index grid */
.news-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-index .news-card h3 { font-size: 17px; }

/* Videos page */
.videos-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Schedule page */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.schedule-col { }
.schedule-col h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.schedule-row .time {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.schedule-row .show-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.schedule-row .show-sub {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.schedule-row.live .time { color: var(--red); }
.schedule-row .live-badge {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 7px; border-radius: 2px;
}

/* About page */
.about-layout {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
}
.about-layout .prose p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.about-layout .prose p strong { color: var(--text); font-weight: 600; }
.about-layout .prose h3 {
  font-size: 20px; margin-top: 24px; margin-bottom: 10px;
}
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px; border-radius: 4px;
}
.stat-card .val {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 40px;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1;
}
.stat-card .lbl {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 8px;
}

/* Contact page */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-block {
  padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
}
.contact-block h4 {
  font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.contact-block .val { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 700; }
.contact-block .sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 24px;
}
.contact-form label {
  display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px; margin-top: 14px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px; border-radius: 3px; font-family: inherit; font-size: 13px;
  outline: none; transition: border-color 0.15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button[type="submit"] {
  margin-top: 20px; background: var(--primary); color: var(--primary-ink);
  padding: 12px 20px; font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 3px; width: 100%;
}

/* Data-source banner */
.data-banner {
  background: rgba(255, 210, 31, 0.08);
  border: 1px solid rgba(255, 210, 31, 0.3);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: flex; justify-content: space-between; gap: 12px;
}
.data-banner .status.live { color: oklch(0.75 0.17 150); }
.data-banner .status.cached { color: var(--gold); }

/* ============ HERO CAROUSEL ============ */
.hero-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 16px; margin-bottom: 32px; }

.hero {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 4px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-slide.active { opacity: 1; }
.hero-slide .bg-placeholder {
  position: absolute; inset: 0;
}
.hero-slide .bg-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-tint);
  z-index: 1;
}
.hero-slide .bg-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 2;
}
.hero-slide .placeholder-label {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}
.hero-slide .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    transparent 0 20px,
    rgba(255,255,255,0.04) 20px 21px);
}
.hero-slide .kicker {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.hero-slide.accent-gold .kicker { color: var(--gold); }
.hero-slide .hero-title {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 10px;
}
.hero-slide .hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 16px;
  line-height: 1.45;
}
.hero-slide .hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.hero-slide.accent-gold .hero-cta { background: var(--gold); color: #1a1000; }

.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,23,63,0.88) 0%, rgba(7,23,63,0.55) 55%, rgba(7,23,63,0.2) 100%); }

.hero-dots {
  position: absolute;
  bottom: 16px; right: 20px;
  display: flex; gap: 6px;
  z-index: 4;
}
.hero-dots button {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
  transition: background 0.2s;
}
.hero-dots button.active { background: var(--primary); }
[data-theme="flag"] .hero-dots button.active { background: var(--gold); }

/* ============ RADIO CARD ============ */
.radio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.radio-top .radio-card-head { margin-bottom: 14px; }
.radio-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.radio-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.on-air {
  display: flex; align-items: center; gap: 6px;
  background: var(--red);
  color: white;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 2px;
}
.on-air .blink {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.3s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.radio-card .station {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.radio-card h3 {
  font-size: 21px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.radio-card .host {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.radio-card .freq {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 3px 9px;
  border-radius: 3px;
  width: fit-content;
}
.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 42px;
  margin: 0;
}
.waveform span {
  flex: 1;
  height: 24%;
  background: var(--primary);
  opacity: 0.7;
  border-radius: 2px;
  animation: eq 2.4s ease-in-out infinite;
}
.radio-card.playing .waveform span {
  opacity: 1;
  animation-duration: 1.4s;   /* livelier once the stream is playing */
}
@keyframes eq {
  0%, 100% { height: 24%; }
  50%      { height: 64%; }
}
@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; height: 38%; }
}
.radio-card-controls {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.play-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { fill: currentColor; }
.play-btn .ico-play { transform: translateX(1px); }   /* optically centre the triangle */
.play-btn .ico-pause { display: none; }
.radio-card.playing .play-btn .ico-play { display: none; }
.radio-card.playing .play-btn .ico-pause { display: inline; }
.radio-meta { display: flex; flex-direction: column; gap: 4px; }
.radio-meta .freq { margin: 0; }
.radio-card-controls .up-next {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ============ SECTION HEADER ============ */
.section {
  margin-bottom: 32px;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .bar {
  width: 4px; height: 18px;
  background: var(--primary);
}
.section-head .see-all {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex; align-items: center; gap: 6px;
}

/* ============ YOUTUBE SECTION ============ */
.yt-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.yt-channel-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,0,0,0.12);
  color: #ff5050;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.yt-featured {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.yt-featured:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}
.yt-featured .thumb-wrap {
  position: relative; aspect-ratio: 16/9;
  flex: 1 1 auto; min-height: 0;
  border-radius: 6px; overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.yt-featured .thumb-wrap img,
.yt-card .thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.yt-featured h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1.25;
  color: var(--text); margin: 12px 4px 4px;
}
.yt-featured .sub { font-size: 12px; color: var(--text-muted); margin: 0 4px 2px; }
.yt-featured .thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
}
.yt-featured .play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
  transition: background 0.2s;
}
.yt-featured:hover .play-overlay { background: rgba(0,0,0,0.15); }
.yt-featured .play-overlay .icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  transition: all 0.2s;
}
.yt-featured:hover .play-overlay .icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.yt-featured .duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 3px 7px;
  border-radius: 2px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.yt-featured .meta {
  padding: 16px 18px;
}
.yt-featured .meta h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.yt-featured .meta .sub {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 12px;
}

.yt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.yt-card {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.yt-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 22px rgba(0,0,0,0.26);
  transform: translateY(-2px);
}
.yt-card .thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.25);
}
.yt-card .duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 2px 5px;
  border-radius: 2px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
}
.yt-featured .play-mini,
.yt-card .play-mini {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: transparent;                 /* hide the raw ▶ glyph */
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}
.yt-featured .play-mini::after,
.yt-card .play-mini::after {
  content: '';
  display: block;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}
.yt-card .play-mini::after {
  border-width: 9px 0 9px 15px;       /* small triangle */
}
.yt-featured .play-mini::after {
  border-width: 14px 0 14px 24px;     /* larger triangle for the hero */
}
.yt-featured:hover .play-mini,
.yt-card:hover .play-mini { background: rgba(0,0,0,0.35); }
.yt-featured:hover .play-mini::after,
.yt-card:hover .play-mini::after { opacity: 1; transform: scale(1.12); }
.yt-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 2px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 2px;
}

/* ============ YOUTUBE LIGHTBOX ============ */
.yt-modal[hidden] { display: none; }
.yt-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
}
.yt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 8, 24, 0.82);
  backdrop-filter: blur(4px);
  animation: yt-fade 0.2s ease;
}
.yt-modal-dialog {
  position: relative; z-index: 1;
  width: min(1000px, 100%);
  animation: yt-pop 0.2s ease;
}
.yt-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.yt-modal-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.yt-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}
.yt-modal-close:hover { opacity: 1; transform: scale(1.1); }
body.modal-open { overflow: hidden; }
@keyframes yt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yt-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 560px) {
  .yt-modal-close { top: -40px; }
}

/* ============ NEWS SECTION ============ */
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 18px;
}
.news-card { display: flex; flex-direction: column; cursor: pointer; }
.news-card.featured { grid-row: span 2; }
.news-card .thumb-wrap {
  position: relative;
  aspect-ratio: 16/10;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 3px;
}
.news-card.featured .thumb-wrap { aspect-ratio: 16/11; }
.news-card .category {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 4px 9px;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 2px;
  z-index: 2;
}
.news-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.news-card.featured h3 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.news-card:hover h3 { color: var(--primary); }
.news-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.featured p {
  font-size: 14px;
  -webkit-line-clamp: 4;
}
.news-card .byline {
  display: flex; gap: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.news-card .byline .dot { opacity: 0.5; }

/* ============ FOOTER ============ */
.footer {
  background: #000;
  border-top: 2px solid var(--primary);
  padding: 32px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 24px;
}
.footer h5 {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer li a { color: var(--text-muted); font-size: 12px; }
.footer li a:hover { color: var(--text); }
.footer .intro { font-size: 12px; color: var(--text-muted); line-height: 1.5; max-width: 320px; }
.footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ FLOATING MINI PLAYER ============ */
.mini-player {
  position: fixed;
  bottom: 20px; left: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 50;
  min-width: 340px;
  animation: slideUp 0.3s ease;
  backdrop-filter: blur(12px);
}
.mini-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
  border-radius: 6px 0 0 6px;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
}
.mini-player .mp-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mini-player .mp-info { flex: 1; min-width: 0; }
.mini-player .mp-info .station {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.mini-player .mp-info .station .blink {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.3s infinite;
}
.mini-player .mp-info .title {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player .mp-wave {
  display: flex; gap: 2px; align-items: flex-end;
  height: 22px; width: 40px;
}
.mini-player .mp-wave span {
  flex: 1;
  background: var(--primary);
  border-radius: 1px;
  min-height: 2px;
}
.mini-player .mp-close {
  color: var(--text-muted);
  padding: 4px;
}
.mini-player .mp-close:hover { color: var(--text); }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 16px;
  z-index: 60;
  width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.tweaks h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h4 .close { font-size: 14px; color: var(--text-muted); cursor: pointer; }
.tweak-row { margin-bottom: 12px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.tweak-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: rgba(0,0,0,0.25);
  padding: 3px;
  border-radius: 3px;
}
.tweak-segmented button {
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 2px;
}
.tweak-segmented button.active {
  background: var(--primary);
  color: var(--primary-ink);
}

/* ---- static-site additions ---- */
.hero-slide .content-inner {
  position: relative;
  z-index: 3;
  padding: 36px 40px;
  color: white;
  max-width: 70%;
}
.article-hero { max-width: 760px; margin: 28px auto 0; padding: 0 20px; }
.article-hero img {
  display: block; width: 100%;
  aspect-ratio: 16/9; max-height: 460px; object-fit: cover;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card);
}
/* image_or_placeholder() output: fills any sized, positioned container
   (article hero, card thumbnails); becomes a self-sized block when given
   the .inline-placeholder modifier for use inside article body copy. */
.bg-placeholder { position: relative; background: var(--bg-card); overflow: hidden; }
.bg-placeholder .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    transparent 0 20px, rgba(255,255,255,0.06) 20px 21px);
}
.bg-placeholder .placeholder-label {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px; color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.45); padding: 3px 8px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.08em; backdrop-filter: blur(4px);
}
.news-card .thumb-wrap .bg-placeholder { position: absolute; inset: 0; }
.article-hero .bg-placeholder {
  position: relative; width: 100%;
  aspect-ratio: 16/9; max-height: 460px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.news-card .thumb-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.bg-placeholder.inline-placeholder {
  width: 100%; aspect-ratio: 16/10; margin: 18px 0; border: 1px solid var(--border);
}
.article-head { max-width: 760px; margin: 28px auto 0; padding: 0 20px; }
.article-head .category { display: inline-block; background: var(--gold); color: #07173f;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; margin-bottom: 14px; }
.article-head h1 { font-family: Archivo, Impact, sans-serif; font-weight: 900;
  font-size: clamp(28px, 5vw, 44px); line-height: 1.08; margin: 0 0 12px; }
.article-head .byline { color: var(--text-muted); font-size: 13px;
  font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.article-body { max-width: 760px; margin: 24px auto 56px; padding: 0 20px;
  font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body p { margin: 0 0 1.2em; }
.article-body img { max-width: 100%; height: auto; margin: 18px 0; border: 1px solid var(--border); }
.article-body a { color: var(--gold); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin-top: 22px; }
.archive-grid .news-card[id] { scroll-margin-top: 90px; }
.page-title { font-family: Archivo, Impact, sans-serif; font-weight: 900;
  font-size: clamp(26px, 4vw, 38px); margin: 30px 0 6px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.filter-bar a { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; }
.filter-bar a.active, .filter-bar a:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; font-size: 16px; cursor: pointer; }
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .yt-layout { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; }
  .nav.open { display: flex; }
  .content { padding: 20px 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-slide .hero-title { font-size: 30px; }
  .hero-slide .content-inner { max-width: 100%; padding: 24px 20px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
