/* --- SYSTEM DESIGN & VARIABLES --- */
:root {
    --primary-color: #0D1B3D;
    --primary-dark: #060F24;
    --accent-color: #E30613;
    --accent-hover: #C2050F;
    --grey-color: #9CA3AF;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --text-light: #F9FAFB;
    --bg-main: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-dark-section: #091227;
    --border-color: #E5E7EB;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --font-sans: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Mencegah horizontal scroll (garis bawah) */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, select, input, textarea {
    font-family: inherit;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    display: none; /* Menyembunyikan garis scroll di samping */
}

/* --- UTILITIES --- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.badge-danger {
    background-color: var(--accent-color);
    color: white;
}
.badge-info {
    background-color: #0284C7;
    color: white;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background-color: #E5E7EB;
    color: var(--text-main);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-secondary:hover {
    background-color: #D1D5DB;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}
.btn-outline.light {
    color: white;
    border-color: white;
}
.btn-outline.light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    transition: var(--transition-fast);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: var(--transition-fast);
}
.btn-text:hover {
    color: var(--primary-color);
    gap: 8px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 11px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.date-time {
    white-space: nowrap;
    font-weight: 500;
    color: var(--grey-color);
}

/* Breaking News Ticker */
.breaking-news {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 28px;
    max-width: 700px;
}
.breaking-label {
    background-color: var(--accent-color);
    color: white;
    font-weight: 800;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    position: relative;
}
.breaking-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--accent-color);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    z-index: 2;
}
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}
.ticker-content {
    display: flex;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    animation: ticker 35s linear infinite;
    padding-left: 20px;
}
.ticker-content span {
    padding-right: 50px;
    font-weight: 500;
}
.ticker-content span::after {
    content: '•';
    color: var(--accent-color);
    margin-left: 25px;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    color: var(--grey-color);
    font-size: 13px;
}
.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}
.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.search-box input {
    background: none;
    border: none;
    color: white;
    font-size: 11px;
    padding: 4px;
    outline: none;
    width: 100px;
    transition: var(--transition-fast);
}
.search-box input:focus {
    width: 160px;
}
.search-box button {
    background: none;
    border: none;
    color: var(--grey-color);
    cursor: pointer;
}
.search-box button:hover {
    color: var(--accent-color);
}

/* --- MAIN HEADER --- */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Design */
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-visual {
    width: 48px;
    height: 48px;
    background-color: var(--primary-dark);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.logo-k {
    font-size: 32px;
    font-weight: 900;
    color: white;
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
    line-height: 1;
    transform: italic;
}
.logo-play-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid var(--accent-color);
    right: 2px;
    bottom: 6px;
    z-index: 1;
    transform: rotate(-15deg);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}
.logo-brand .highlight {
    color: var(--accent-color);
}
.logo-brand .digital-suffix {
    font-weight: 600;
    font-size: 0.45em;
    vertical-align: super;
    color: inherit;
    letter-spacing: 0;
    margin-left: 2px;
}
.logo-tagline {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--grey-color);
    margin-top: 4px;
}

/* Navigation Links */
.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 14px;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
    color: white;
    border-bottom-color: var(--accent-color);
}

.mobile-nav-header {
    display: none;
}

/* Dropdown Menu */
.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border-top: 2px solid var(--accent-color);
}
.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 10.5px;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.7);
}
.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 24px;
}

/* LIVE TV NAV BTN */
.btn-live-tv {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}
.btn-live-tv:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}
.live-dot {
    width: 7px;
    height: 7px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* --- MAIN LAYOUT CONTENT --- */
.main-content-wrapper {
    padding-top: 32px;
    padding-bottom: 48px;
}

/* --- HERO GRID SECTION --- */
.hero-grid-section {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.2fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* Slider */
.main-story-col {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 480px;
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slider .slide.active img {
    transform: scale(1);
}
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(13, 27, 61, 0.8) 0%, rgba(13, 27, 61, 0.1) 70%, transparent 100%);
    pointer-events: none;
}
.slide-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
    max-width: 580px;
    padding: 24px;
    background: rgba(18, 30, 56, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s;
}
.hero-slider .slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}
.slide-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 12px;
    margin-bottom: 10px;
    line-height: 1.35;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.slide-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-width: 100%;
}
.slide-meta {
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: var(--grey-color);
}
.slide-meta i {
    color: var(--accent-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 27, 61, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}
.slider-btn:hover {
    background-color: var(--accent-color);
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dots .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}
.slider-dots .dot.active {
    background-color: var(--accent-color);
    width: 20px;
    border-radius: var(--radius-sm);
}

/* SECTION TITLES */
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.section-title-wrapper.compact {
    margin-bottom: 14px;
}
.accent-line {
    height: 4px;
    width: 40px;
    background-color: var(--accent-color);
    display: inline-block;
    border-radius: var(--radius-sm);
}
.accent-line-vertical {
    height: 24px;
    width: 4px;
    background-color: var(--accent-color);
    display: inline-block;
    border-radius: var(--radius-sm);
}
.section-title-wrapper h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}
.section-title-wrapper h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Trending Sidebar Col */
.trending-col {
    background: linear-gradient(135deg, #0f1014 0%, #1e2128 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 480px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.trending-col .section-title-wrapper h3 {
    color: white;
}
.trending-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.trending-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    background-color: transparent;
    box-shadow: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.trending-item:hover,
.trending-item.active {
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent-color);
    box-shadow: none;
    transform: translateX(4px);
}
.trending-item.active .trending-info h4 {
    color: white;
}
.trending-num {
    position: absolute;
    top: 4px;
    left: 8px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    font-style: normal;
    -webkit-text-stroke: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}
.trending-item:hover .trending-num,
.trending-item.active .trending-num {
    transform: scale(1.1);
    color: white;
}
@keyframes pulse-skeleton {
    0% { background-color: rgba(255, 255, 255, 0.1); }
    50% { background-color: rgba(255, 255, 255, 0.18); }
    100% { background-color: rgba(255, 255, 255, 0.1); }
}

.trending-thumb {
    width: 72px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse-skeleton 1.5s infinite ease-in-out;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.trending-item:hover .trending-thumb img {
    transform: scale(1.08);
}
.placeholder-thumb-icon {
    font-size: 16px;
    color: var(--grey-color);
}
.trending-info {
    flex: 1;
}
.trending-info h4 {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition-fast);
}
.trending-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
}

/* LIVE TV PLAYER COLUMN */
.live-tv-col {
    height: 480px;
}
.live-player-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.live-player-header {
    padding: 12px 16px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}
.live-indicator {
    background-color: var(--accent-color);
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}
.live-player-header h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Player screen container */
.player-container {
    background-color: black;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}
.player-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.6);
    transition: var(--transition-normal);
}
.player-container.playing .player-poster {
    filter: brightness(0.3);
}
.player-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}
.player-container.playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.play-btn-circle {
    width: 54px;
    height: 54px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.5);
    transition: var(--transition-fast);
    animation: ripple 2s infinite;
}
@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4), 0 0 0 10px rgba(227, 6, 19, 0.2); }
    100% { box-shadow: 0 0 0 15px rgba(227, 6, 19, 0), 0 0 0 25px rgba(227, 6, 19, 0); }
}
.play-btn-circle:hover {
    transform: scale(1.1);
    background-color: white;
    color: var(--accent-color);
}
.overlay-text {
    font-size: 9.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}
.watermark {
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 2;
}
.watermark .hl { color: rgba(227, 6, 19, 0.6); }

/* Canvas simple visualizer */
.visualizer-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    display: none;
}
.player-container.playing .visualizer-canvas {
    display: block;
}

/* Controls */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    font-size: 11px;
}
.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-fast);
}
.control-btn:hover {
    color: var(--accent-color);
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.volume-control input[type=range] {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    appearance: none;
    outline: none;
}
.volume-control input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}
.volume-control input[type=range]::-webkit-slider-thumb:hover {
    background: var(--accent-color);
}
.live-timer {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.player-controls .right-align {
    margin-left: auto;
}

/* Schedule Widget */
.schedule-widget {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.schedule-tabs {
    display: flex;
    background-color: var(--primary-dark);
    padding: 2px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.schedule-tabs .tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--grey-color);
    font-weight: 700;
    font-size: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}
.schedule-tabs .tab-btn.active,
.schedule-tabs .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.schedule-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}
.schedule-tab-content.active {
    display: block;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}
.schedule-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
}
.schedule-list li.live-now {
    border-left-color: var(--accent-color);
    background-color: rgba(227, 6, 19, 0.08);
}
.schedule-list .time {
    font-weight: 700;
    color: var(--accent-color);
}
.schedule-list .title {
    font-weight: 600;
}
.schedule-list .status-now {
    margin-left: auto;
    font-size: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.live-dot-blink {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    animation: pulse 1s infinite;
}

.schedule-list .bullet {
    color: var(--accent-color);
    font-size: 10px;
}

.btn-more-schedule {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--grey-color);
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.btn-more-schedule:hover {
    color: var(--accent-color);
}

/* --- SECTION GENERAL --- */
.section-container {
    margin-bottom: 48px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
    width: 100%;
    min-width: 0;
}

/* Filter Tabs are defined globally below */

/* Filter tabs inside dark news section */
.section-container.bg-dark-section {
    background-color: var(--bg-dark-section);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 48px calc(50vw - 50% + 24px);
    color: white;
}
.section-header .light-text {
    color: white !important;
}

/* --- NEWS CARD GRID --- */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.news-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 27, 61, 0.15);
}
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--primary-dark);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}
.news-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-card-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.85;
}
.placeholder-card-img.bg-blue { background: linear-gradient(135deg, var(--primary-color), #2563EB); }
.placeholder-card-img.bg-red { background: linear-gradient(135deg, var(--accent-color), #f43f5e); }
.placeholder-card-img.bg-grey { background: linear-gradient(135deg, #4B5563, #6B7280); }

.card-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 800;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: var(--grey-color);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.load-more-container {
    text-align: center;
    margin-top: 36px;
}

/* --- VIDEO CARD GRID --- */
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.video-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: black;
}
.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-normal);
}
.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.05);
    opacity: 0.6;
}

.placeholder-video-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}
.placeholder-video-img.bg-dark-blue { background: linear-gradient(135deg, var(--primary-dark), #1E293B); }
.placeholder-video-img.bg-red { background: linear-gradient(135deg, #991B1B, #3F0712); }
.placeholder-video-img.bg-grey { background: linear-gradient(135deg, #374151, #1F2937); }

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.play-overlay-icon {
    position: absolute;
    width: 38px;
    height: 38px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.video-card:hover .play-overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.video-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.video-category-badge {
    color: var(--accent-color);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}
.video-card-body h3 {
    font-size: 11.5px;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 8.5px;
    color: var(--grey-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}
.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- PROGRAM SECTION & ADS --- */
.program-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}
.program-list-col {
    display: flex;
    flex-direction: column;
}
.program-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.program-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}
.program-card:hover {
    transform: translateX(4px);
    border-color: rgba(13, 27, 61, 0.15);
    box-shadow: var(--shadow-md);
}
.host-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-main);
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-color);
    background-color: #E5E7EB;
}
.program-info {
    flex: 1;
}
.program-info h3 {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.program-info p {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ADS Banner */
.ads-col {
    display: flex;
}
.ads-banner {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-image: radial-gradient(circle at 10% 20%, rgba(227, 6, 19, 0.15) 0%, transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: white;
}
.ads-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    opacity: 0.1;
    filter: blur(40px);
}
.ads-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ads-badge {
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.7);
}
.ads-banner h3 {
    font-size: 20px;
    font-weight: 800;
}
.ads-banner p {
    font-size: 12px;
    color: var(--grey-color);
    max-width: 240px;
}

/* --- CITIZEN JOURNALISM SECTION --- */
.citizen-section {
    margin-top: 48px;
}
.citizen-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    padding: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.citizen-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: -130px;
    left: -130px;
    opacity: 0.12;
    filter: blur(50px);
}
.citizen-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
}
.citizen-info h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}
.citizen-info p {
    font-size: 11px;
    color: var(--grey-color);
    margin-bottom: 24px;
    max-width: 320px;
}

/* Citizen Mockup Phone */
.citizen-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}
.phone-frame {
    width: 170px;
    height: 310px;
    background-color: #1F2937;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 3px solid #374151;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone-header {
    height: 16px;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
}
.camera-notch {
    width: 40px;
    height: 6px;
    background-color: #1F2937;
    border-radius: 0 0 4px 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}
.signal-wifi {
    font-size: 7px;
    color: var(--text-muted);
    display: flex;
    gap: 3px;
    margin-left: auto;
}
.phone-app-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}
.logo-area.mini {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.logo-visual.mini {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-visual.mini .logo-k { font-size: 10px; }
.logo-visual.mini .logo-play-triangle {
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid var(--accent-color);
    right: 0px;
    bottom: 2px;
}
.logo-area.mini .logo-brand { font-size: 9px; }
.logo-area.mini .logo-brand.text-dark { color: var(--primary-color); }

.phone-form-preview {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.phone-form-preview h5 {
    font-size: 8px;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}
.fake-input {
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
    font-size: 6px;
    color: var(--grey-color);
    background-color: var(--bg-main);
}
.fake-input.large {
    flex: 1;
}
.fake-btn {
    background-color: var(--accent-color);
    color: white;
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    padding: 5px;
    border-radius: var(--radius-sm);
}

.citizen-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    font-size: 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.feature-item:hover .feature-icon {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}
.feature-text h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.feature-text p {
    font-size: 9px;
    color: var(--grey-color);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 54px 0 0;
    border-top: 3px solid var(--accent-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer-col h3 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
}
.brand-col .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.footer-desc {
    font-size: 10.5px;
    color: var(--grey-color);
    margin-bottom: 20px;
}
.footer-social a {
    background-color: rgba(255, 255, 255, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-color);
    transition: var(--transition-fast);
}
.footer-social a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.links-col ul a {
    font-size: 10.5px;
    color: var(--grey-color);
}
.links-col ul a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.contact-col p {
    font-size: 10.5px;
    color: var(--grey-color);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.contact-col i {
    color: var(--accent-color);
    margin-top: 3px;
}

.app-col p {
    font-size: 10.5px;
    color: var(--grey-color);
    margin-bottom: 16px;
}
.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.app-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    color: var(--grey-color);
    transition: var(--transition-fast);
}
.app-btn i {
    font-size: 20px;
    color: white;
}
.app-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.app-btn strong {
    font-size: 11px;
    color: white;
}
.app-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--primary-dark);
    padding: 20px 0;
    font-size: 9.5px;
    color: var(--grey-color);
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.tagline-bottom {
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- CITIZEN FORM MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 15, 36, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background-color: white;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}
.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-main);
    outline: none;
    background-color: var(--bg-main);
    transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background-color: var(--bg-main);
    position: relative;
    transition: var(--transition-fast);
}
.file-drop-area:hover {
    border-color: var(--accent-color);
    background-color: rgba(227, 6, 19, 0.02);
}
.file-drop-area i {
    color: var(--grey-color);
}
.file-drop-area span {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}
.file-drop-area input[type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.file-name-preview {
    font-size: 9.5px;
    color: var(--text-muted);
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

/* --- TOAST SUCCESS --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    pointer-events: none;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-container.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-card {
    background-color: var(--primary-color);
    color: white;
    border-left: 4px solid #10B981;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}
.toast-icon {
    font-size: 24px;
    color: #10B981;
}
.toast-body h4 {
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 2px;
}
.toast-body p {
    font-size: 10.5px;
    color: var(--grey-color);
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1200px) {
    .hero-grid-section {
        grid-template-columns: 1fr 1fr;
    }
    .live-tv-col {
        grid-column: span 2;
        height: auto;
    }
    .live-player-card {
        flex-direction: row;
        height: 320px;
    }
    .player-container {
        flex: 1.3;
        height: 100%;
        aspect-ratio: auto;
    }
    .schedule-widget {
        flex: 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-col.app-col,
    .footer-col.contact-col {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .main-content-wrapper {
        padding: 0 !important;
    }
    .trending-col,
    .schedule-widget,
    #berita-terkini-section,
    #program-section,
    .citizen-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-grid-section {
        grid-template-columns: 1fr;
    }
    .main-story-col,
    .trending-col,
    .live-tv-col {
        grid-column: span 1;
    }
    .trending-col {
        height: auto;
    }
    .trending-list,
    .schedule-tab-content {
        overflow: visible !important;
    }
    
    /* TABLET/MOBILE FULL BLEED */
    .main-story-col,
    .live-player-card,
    .hero-slider {
        border-radius: 0;
    }
    
    .live-player-card {
        flex-direction: column;
        height: auto;
    }
    .player-container {
        aspect-ratio: 16/9;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    .ads-col {
        height: 200px;
    }
    
    .citizen-card {
        grid-template-columns: 1fr 1fr;
    }
    .citizen-features {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: block;
        padding: 0;
    }
    .top-bar .date-time,
    .top-bar .top-bar-right {
        display: none;
    }
    .top-bar-container {
        padding: 0;
    }
    .breaking-news {
        border-radius: 0;
        max-width: 100%;
        height: 26px;
    }
    .breaking-label {
        font-size: 9px;
        padding: 0 8px;
    }
    .mobile-nav-toggle {
        display: block;
        margin-left: 8px;
    }
    
    /* MOBILE HEADER IMPROVEMENTS */
    .header-container {
        padding: 0 16px;
        gap: 10px;
    }
    .logo-link {
        gap: 8px;
    }
    .logo-visual {
        width: 36px;
        height: 36px;
    }
    .logo-k {
        font-size: 24px;
    }
    .logo-brand {
        font-size: 18px;
    }
    .logo-tagline {
        font-size: 5.5px;
        letter-spacing: 1px;
    }
    .btn-live-tv {
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 6px;
        white-space: nowrap;
    }
    .live-dot {
        width: 5px;
        height: 5px;
    }
    
    /* REDUCE PADDING ON MOBILE */
    .container {
        padding: 0 16px;
    }
    .section-container.bg-dark-section {
        padding: 32px calc(50vw - 50% + 16px);
    }
    
    /* MOBILE HERO IMPROVEMENTS */
    .slide-content {
        padding: 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    }
    .slide-content h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .slide-content p {
        font-size: 11px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    .slide-meta {
        font-size: 9px;
        flex-direction: column;
        gap: 6px;
    }

    /* SCROLLABLE FILTER TABS ON MOBILE */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px; /* Space to avoid clipping */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .filter-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    .filter-btn {
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }

    .nav-container {
        display: flex; /* Flex layout to allow margin-top: auto */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 280px;
        height: 100%;
        max-height: -webkit-fill-available;
        background-color: var(--primary-dark);
        padding: 0 24px calc(40px + env(safe-area-inset-bottom, 20px)); /* Extra padding for Safari toolbar */
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.08);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-container.open {
        right: 0; /* Slide in */
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 0 16px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        position: sticky;
        top: 0;
        background-color: var(--primary-dark);
        z-index: 2;
    }
    .mobile-nav-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        padding: 4px;
        opacity: 0.8;
    }
    .mobile-nav-close:hover {
        opacity: 1;
        color: var(--accent-color);
    }
    .nav-links {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links a {
        padding: 14px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Submenu Fixes for Mobile Drawer */
    .dropdown-menu {
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0,0,0,0.15);
        border: none;
        border-radius: var(--radius-sm);
        margin-top: 8px;
        transform: none;
        /* Replace visibility with display to avoid empty gaps */
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 4px 0;
    }
    .dropdown-menu li a {
        padding: 10px 16px;
        border-bottom: none;
    }
    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    .mobile-nav-close {
        display: block !important;
    }
    
    /* COMPACT 2-COLUMN CARDS FOR MOBILE */
    .news-cards-grid,
    .video-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 8px; /* Menambah jarak dari tepi layar */
    }
    .news-card h3, .video-card-body h3 {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .news-card p {
        display: none; /* Sembunyikan snippet teks di layar kecil 2-kolom */
    }
    .card-meta, .video-meta {
        font-size: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .card-body, .video-card-body {
        padding: 10px;
    }
    .card-category-badge, .video-category-badge {
        font-size: 8px;
        padding: 3px 6px;
    }
    .duration-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    .citizen-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .citizen-mockup {
        display: none;
    }
    .citizen-features {
        grid-column: span 1;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: span 2;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .brand-col {
        grid-column: span 1;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- FILTER TABS (Video & Category Buttons) --- */
.filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 4px 16px 4px; /* extra bottom padding for hover effects and shadow */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    max-width: 100%;
    width: 100%;
    min-width: 0; /* Fixes flex child overflow issue */
}
.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Default & Light Variant: For Light Backgrounds */
.filter-btn,
.filter-tabs.light .filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.filter-btn:hover,
.filter-tabs.light .filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(13, 27, 61, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.filter-btn.active,
.filter-tabs.light .filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
    transform: translateY(-2px);
}

/* Dark Variant: For Dark Backgrounds (e.g., Video Section & Video Page) */
.filter-tabs.dark .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}
.filter-tabs.dark .filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.filter-tabs.dark .filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
    transform: translateY(-2px);
}

/* Pulse keyframe for skeleton loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   NEWSLETTER SUBSCRIPTION SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d6e 50%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(26, 45, 110, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(227, 6, 19, 0.2);
    border: 1px solid rgba(227, 6, 19, 0.4);
    color: #ff6b7a;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.newsletter-badge i {
    font-size: 10px;
    animation: blink-pulse 2s ease-in-out infinite;
}

@keyframes blink-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.newsletter-text h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.newsletter-text h2 span {
    color: var(--accent-color);
}

.newsletter-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 420px;
}

.newsletter-form-area {
    flex: 1;
    max-width: 480px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: rgba(227, 6, 19, 0.6);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-sans);
}

.newsletter-input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input-group button {
    background: var(--accent-color);
    border: none;
    color: #fff;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    border-radius: 0 50px 50px 0;
}

.newsletter-input-group button:hover {
    background: var(--accent-hover);
}

.newsletter-input-group button:active {
    transform: scale(0.97);
}

.newsletter-input-group button i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.newsletter-input-group button:hover i {
    transform: translateX(3px);
}

.newsletter-privacy {
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.newsletter-privacy i {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

.newsletter-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nl-stat {
    display: flex;
    flex-direction: column;
}

.nl-stat strong {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.nl-stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
}

/* Newsletter Toast Notification */
#newsletter-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-lg);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

#newsletter-toast.show {
    transform: translateY(0);
    opacity: 1;
}

#newsletter-toast.success {
    background: #1a3a2a;
    border: 1px solid #2d6a4f;
    color: #52b788;
}

#newsletter-toast.error {
    background: #3a1a1a;
    border: 1px solid #6a2d2d;
    color: #e07070;
}

#newsletter-toast.warning {
    background: #3a2d0a;
    border: 1px solid #8a6a1a;
    color: #e0b050;
}

/* Responsive */
@media (max-width: 900px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-text p {
        max-width: 100%;
        margin: 0 auto;
    }
    .newsletter-form-area {
        max-width: 100%;
        width: 100%;
    }
    .newsletter-privacy {
        justify-content: center;
    }
    .newsletter-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 40px 0;
    }
    .newsletter-text h2 {
        font-size: 22px;
    }
    .newsletter-input-group {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    .newsletter-input-group button {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        justify-content: center;
        padding: 12px;
    }
    .newsletter-input-group input {
        text-align: center;
    }
}

/* --- DARK MODE SETTINGS --- */
:root[data-theme="dark"] {
    --text-main: #F9FAFB;
    --text-muted: #D1D5DB;
    --bg-main: #091227;
    --bg-card: #0D1B3D;
    --border-color: #1A2A50;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: 10px;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .trending-item:hover,
[data-theme="dark"] .trending-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mobile-theme-toggle-container {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-theme-toggle-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.8);
        font-size: 13px;
        font-weight: 600;
    }
    .mobile-theme-toggle-container .theme-toggle {
        margin-left: 0;
        background: rgba(255,255,255,0.15);
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
