/* ================================================================
   New Frontier TV — Main Stylesheet
   Design: Dark Navy + Gold + Blue
   Mobile-first responsive
   ================================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:     #1C5DC8;
    --primary-dark:#1448A0;
    --secondary:   #E8A020;
    --accent:      #E8A020;
    --bg:          #0A0E2E;
    --bg2:         #111442;
    --bg3:         #0D1135;
    --card-bg:     rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.10);
    --text:        #FFFFFF;
    --text-muted:  #9BA3C2;
    --text-dim:    #6B7494;
    --live-red:    #FF3B3B;
    --success:     #22C55E;
    --warning:     #F59E0B;
    --danger:      #EF4444;
    --radius:      12px;
    --radius-sm:   8px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(0,0,0,0.35);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.50);
    --transition:  all 0.25s ease;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.2rem); }
p { color: var(--text-muted); }

/* ===== UTILITY CLASSES ===== */
.container  { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 900px; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 9999px; }

/* ===== COLORS ===== */
.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.text-dim      { color: var(--text-dim); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-warning  { color: var(--warning); }
.text-white    { color: #fff; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent   { background: var(--accent); color: #0A0E2E; }
.btn-accent:hover { background: #d4911a; transform: translateY(-1px); }
.btn-outline  { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-ghost    { background: rgba(255,255,255,0.08); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-success  { background: var(--success); color: #fff; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-xl  { padding: 16px 40px; font-size: 18px; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-round { border-radius: 9999px; }
.btn-live {
    background: var(--live-red);
    color: #fff;
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-live    { background: var(--live-red); color: #fff; }
.badge-live::before { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.badge-premium { background: linear-gradient(135deg, #E8A020, #f5c060); color: #000; }
.badge-new     { background: var(--success); color: #fff; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent  { background: var(--accent); color: #000; }

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.card:hover { border-color: rgba(28,93,200,0.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-dark   { background: rgba(0,0,0,0.3); }
.card-glow:hover { box-shadow: 0 0 30px rgba(28,93,200,0.25); }

/* ===== THUMBNAIL / MEDIA CARDS ===== */
.media-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}
.media-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.media-card:hover .play-overlay { opacity: 1; }

.media-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg3);
}
.media-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.media-card:hover .media-thumbnail img { transform: scale(1.08); }

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.play-btn-circle {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}
.media-card-body { padding: 12px; }
.media-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.media-card-sub   { font-size: 12px; color: var(--text-muted); }
.duration-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ===== SHOWS HORIZONTAL RAIL ===== */
.show-card {
    min-width: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
@media(min-width:768px) { .show-card { min-width: 200px; } }
.show-card-thumb {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    background: var(--bg2);
}
.show-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.show-card:hover .show-card-thumb img { transform: scale(1.05); }
.show-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px 12px 12px;
}
.show-card-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.show-card-meta  { font-size: 11px; color: var(--text-muted); }

/* ===== HORIZONTAL SCROLL RAIL ===== */
.h-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll > * { flex-shrink: 0; }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.see-all:hover { color: var(--secondary); }

/* ===== NAVBAR ===== */
.topbar {
    background: rgba(10,14,46,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 16px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
}
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.topbar-logo img { height: 40px; }
.topbar-logo-text { font-size: 18px; font-weight: 800; color: #fff; }
.topbar-logo-sub  { font-size: 10px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; }

.topbar-nav { display: none; align-items: center; gap: 4px; }
@media(min-width: 900px) { .topbar-nav { display: flex; } }
.topbar-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}
.topbar-nav a:hover, .topbar-nav a.active { color: #fff; background: rgba(255,255,255,0.08); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
@media(min-width: 900px) { .topbar-mobile-menu { display: none; } }

/* Live ticker */
.live-ticker {
    background: var(--live-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.ticker-badge { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ticker-content { overflow: hidden; flex: 1; }
.ticker-scroll  { animation: ticker-move 20s linear infinite; white-space: nowrap; }
@keyframes ticker-move { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, #0d1b4e 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 60% 40%, rgba(28,93,200,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.hero-title {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title span { color: var(--accent); }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; max-width: 560px; }
.hero-cta  { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== LIVE TV PLAYER ===== */
.player-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-lg);
}
.player-iframe { width: 100%; height: 100%; border: none; }
.player-overlay {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.viewer-count {
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fullscreen-btn {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.fullscreen-btn:hover { background: rgba(0,0,0,0.85); }

/* ===== LIVE INFO PANEL ===== */
.live-info { padding: 16px 0; }
.live-show-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.live-show-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.live-actions    { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.live-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 60px;
}
.live-action-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.live-action-btn .icon { font-size: 18px; }

/* ===== SCHEDULE SIDEBAR ===== */
.schedule-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.schedule-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: rgba(255,255,255,0.04); }
.schedule-item.active { background: rgba(28,93,200,0.15); border-left: 3px solid var(--primary); }
.schedule-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg3);
}
.schedule-thumb img { width: 100%; height: 100%; object-fit: cover; }
.schedule-info { flex: 1; min-width: 0; }
.schedule-time { font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.schedule-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-presenter { font-size: 11px; color: var(--text-muted); }

/* ===== CHAT ===== */
.chat-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 420px;
}
.chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-body { flex: 1; }
.chat-msg-name { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.chat-msg-text { font-size: 13px; color: var(--text-muted); }
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
    width: 38px; height: 38px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.chat-send:hover { background: var(--primary-dark); }

/* ===== POLLS ===== */
.poll-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.poll-question { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.poll-option {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.poll-option:hover { border-color: var(--primary); }
.poll-option.voted  { border-color: var(--primary); }
.poll-option-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: rgba(28,93,200,0.25);
    transition: width 0.6s ease;
}
.poll-option-label {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}
.poll-pct { font-weight: 700; color: var(--primary); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}
.form-control:focus { border-color: var(--primary); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(28,93,200,0.15); }
.form-control::placeholder { color: var(--text-dim); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-hint  { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control option { background: var(--bg2); }
.input-with-icon { position: relative; }
.input-with-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 16px; }
.input-with-icon .form-control { padding-left: 40px; }
.input-with-icon .icon-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-dim); }

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}
.tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
}
.tab.active { background: var(--primary); color: #fff; }

/* ===== TOPNAV TABS (page-level) ===== */
.page-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    overflow-x: auto;
}
.page-tab {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
}
.page-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== HIGHLIGHTS REEL (TikTok style) ===== */
.highlights-reel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
@media(min-width: 640px) { .highlights-reel { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.highlight-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    background: var(--bg2);
}
.highlight-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.highlight-card:hover img { transform: scale(1.06); }
.highlight-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    padding: 16px 10px 10px;
}
.highlight-title { font-size: 12px; font-weight: 700; line-height: 1.3; }
.highlight-duration { font-size: 10px; color: var(--text-muted); }
.highlight-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
}
.highlight-card:hover .highlight-play { opacity: 1; }

/* ===== NEWS CARDS ===== */
.news-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.news-card:hover { border-color: rgba(28,93,200,0.4); transform: translateY(-2px); }
.news-thumb {
    width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg2);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.news-excerpt { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.news-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; }

/* ===== PRESENTER CARDS ===== */
.presenter-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.presenter-card:hover { border-color: rgba(232,160,32,0.4); transform: translateY(-3px); }
.presenter-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--primary);
    background: var(--bg2);
}
.presenter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.presenter-name  { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.presenter-title { font-size: 12px; color: var(--text-muted); }

/* ===== FEATURE ICONS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media(min-width: 640px)  { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1024px) { .feature-grid { grid-template-columns: repeat(6, 1fr); } }
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.feature-item:hover { border-color: rgba(28,93,200,0.4); }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.feature-label { font-size: 12px; font-weight: 600; }
.feature-desc  { font-size: 11px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
    background: #080C24;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 16px 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto 40px;
}
@media(min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 44px; }
.footer-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: var(--transition);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    max-width: 1280px;
    margin: 0 auto;
}
.footer-newsletter { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.footer-newsletter input::placeholder { color: var(--text-dim); }
.footer-newsletter button {
    background: var(--accent);
    color: #0A0E2E;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

/* ===== STATS / COUNTERS ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media(min-width: 640px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== LOADER ===== */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(28,93,200,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: #1e243e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    min-width: 240px;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: all;
    animation: slideInRight 0.3s ease, fadeOut 0.4s ease 3.6s forwards;
    box-shadow: var(--shadow);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes slideInRight { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes fadeOut { from{opacity:1} to{opacity:0;pointer-events:none} }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--bg2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close  { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px 20px; border-top: 1px solid var(--card-border); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== VIDEO PLAYER PAGE ===== */
.video-player-page { background: #000; aspect-ratio: 16/9; width: 100%; position: relative; }
video { width: 100%; height: 100%; background: #000; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media(min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 900px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== PAGE SECTIONS ===== */
.section { padding: 48px 0; }
.section-sm { padding: 24px 0; }
.section-lg { padding: 80px 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-dim); }

/* ===== DONATE SECTION ===== */
.donate-banner {
    background: linear-gradient(135deg, #1a4fa8, #0d2d6b);
    border: 1px solid rgba(28,93,200,0.3);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
}
.donate-banner h2 { color: #fff; margin-bottom: 8px; }
.donate-banner p  { color: var(--text-muted); margin-bottom: 24px; }

/* ===== ALERT ===== */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: rgba(34,197,94,0.15);  border: 1px solid rgba(34,197,94,0.3);  color: #4ade80; }
.alert-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.alert-info    { background: rgba(28,93,200,0.15);  border: 1px solid rgba(28,93,200,0.3);  color: #60a5fa; }

/* ===== PREMIUM GATE ===== */
.premium-gate {
    background: linear-gradient(135deg, var(--bg2), #1a2460);
    border: 1px solid rgba(232,160,32,0.3);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
}
.premium-crown { font-size: 48px; margin-bottom: 12px; }
.premium-gate h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.premium-gate p  { color: var(--text-muted); margin-bottom: 24px; }

/* ===== SEARCH ===== */
.search-bar {
    position: relative;
    max-width: 500px;
}
.search-bar input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    padding: 11px 16px 11px 42px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 16px;
}

/* ===== DIVIDER ===== */
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 24px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
    padding: 20px;
}
.auth-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 56px; margin: 0 auto 8px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub   { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.social-btn {
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.12); }

/* ===== RESPONSIVE ===== */
@media(max-width: 640px) {
    .hero { padding: 40px 0 60px; }
    .section { padding: 32px 0; }
    .auth-card { padding: 24px 20px; }
    .modal { max-height: 95vh; }
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in  { animation: fadeIn 0.4s ease; }
.slide-up { animation: slideUp 0.4s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ===== APP STORE BUTTONS ===== */
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}
.store-btn:hover { background: rgba(255,255,255,0.15); }
.store-btn-icon { font-size: 24px; }
.store-btn-text .line1 { font-size: 10px; color: var(--text-muted); }
.store-btn-text .line2 { font-size: 15px; font-weight: 700; }

/* ===== SKIP LINK (accessibility) ===== */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: #fff; padding: 8px; z-index: 99999; }
.skip-link:focus { top: 0; }
