/* ============================================

.language-switcher {
    position: relative;
}

.language-btn {
    background: var(--light);
    border: 2px solid var(--gray-light);
    color: var(--secondary);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.language-btn:hover, .language-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

.language-dropdown {
    display: none !important; /* Hidden by default */
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 101;
    border: 1px solid var(--gray-light);
    padding: 5px 0;
}

.language-dropdown.show {
    display: block !important; /* Show when .show class is added */
}

.language-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--secondary);
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-dropdown a:hover {
    background: var(--primary);
    color: var(--white);
}
   ATTRACTION-MEDIA - Complete Professional Stylesheet
   ============================================ */

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

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === BREAKING NEWS TICKER === */
.breaking-ticker {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 38px;
    font-size: 0.85rem;
}

.ticker-label {
    background: var(--primary-dark);
    padding: 0 16px;
    font-weight: 700;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    z-index: 2;
}

.ticker-wrap { 
    overflow: hidden; 
    flex: 1; 
    display: flex; 
    align-items: center; 
} 

.ticker-track { 
    display: flex; 
    align-items: center; 
    white-space: nowrap; 
    will-change: transform; 
} 

.ticker-track a { 
    color: white; 
    text-decoration: none; 
    padding: 0 1rem; 
    font-size: 0.85rem; 
    white-space: nowrap; 
} 

.ticker-track a:hover { 
    text-decoration: underline; 
} 

.ticker-sep { 
    color: rgba(255,255,255,0.5); 
    padding: 0 0.25rem; 
}

/* === HEADER === */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav-bar {
    border-top: 1px solid var(--gray-light);
}

.header-nav-bar .container {
    display: flex;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    background: var(--light);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    border: none;
    padding: 8px 16px;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.search-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary);
}

/* === NAVIGATION === */
.main-nav {
    display: flex;
    align-items: center;

}

.header-nav-bar.nav-left .main-nav {
    justify-content: flex-start;
}

.header-nav-bar.nav-center .main-nav {
    justify-content: center;
}

.header-nav-bar.nav-right .main-nav {
    justify-content: flex-end;
}

.main-nav a {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(231, 76, 60, 0.04);
}

.nav-live-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 14px 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* === HERO SECTION === */
.hero-section {
    margin: 24px 0;
}

.hero-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.hero-image {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-image img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

.hero-overlay h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 12px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === CATEGORY BADGE === */
.category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.large {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* === LIVE SECTION === */
.live-section {
    margin: 30px 0;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.live-widget {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--dark);
    color: white;
}

.widget-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.widget-body {
    padding: 20px;
}

.radio-player-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.radio-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.radio-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.play-btn-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-mini:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.mini-player {
    display: none;
}

.tv-preview {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tv-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === NEWS GRID === */
.news-section,
.popular-section,
.related-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-card a {
    display: block;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === POPULAR / TRENDING === */
.popular-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.popular-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.popular-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
    opacity: 0.7;
}

.popular-info {
    flex: 1;
}

.popular-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-info h4 {
    font-size: 0.95rem;
    margin: 4px 0;
    line-height: 1.3;
    color: var(--dark);
}

.popular-views {
    font-size: 0.78rem;
    color: var(--gray);
}

.popular-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* === CATEGORY FILTERS === */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 16px 0;
}

.filter-tag {
    padding: 8px 18px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    cursor: pointer;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === PAGE HEADER === */
.page-header {
    padding: 30px 0 10px;
}

.page-header.centered {
    text-align: center;
    padding: 40px 0 20px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header.centered h1 {
    justify-content: center;
}

.page-header p {
    color: var(--gray);
    margin-top: 6px;
    font-size: 1rem;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === ARTICLE PAGE === */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 30px 0;
}

.article-main {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.article-header {
    margin-bottom: 24px;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 14px 0;
    color: var(--dark);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
}

.author-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-featured-image {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--secondary);
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 30px 0 14px;
    color: var(--dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-light);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
    color: var(--dark);
}

.article-body img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(231,76,60,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-dark);
}

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.tag {
    background: var(--light);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid var(--gray-light);
}

/* === SHARE BUTTONS === */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.share-buttons > span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: var(--secondary); }

/* === SIDEBAR === */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.sidebar-widget h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post:hover {
    padding-left: 8px;
}

.sidebar-post:hover h4 {
    color: var(--primary);
}

.sidebar-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sidebar-post h4 {
    font-size: 0.88rem;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-date {
    font-size: 0.75rem;
    color: var(--gray);
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-cat {
    display: block;
    padding: 10px 14px;
    border-left: 4px solid var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-cat:hover {
    background: var(--light);
    padding-left: 20px;
    color: var(--primary);
}

.no-items {
    color: var(--gray);
    font-size: 0.9rem;
}

/* === RADIO PAGE === */
.radio-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.radio-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
}

.radio-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.radio-card.is-live {
    border-color: var(--primary);
}

.radio-card-visual {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark), var(--darker));
}

.radio-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-card-visual .live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.radio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 4rem;
}

.radio-card-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-card-info h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.radio-card-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* === CUSTOM AUDIO PLAYER === */
.audio-player-wrapper {
    margin-bottom: 8px;
}

.radio-audio {
    display: none;
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--light);
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid var(--gray-light);
}

.player-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.player-progress {
    flex: 1;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.player-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-volume button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}

.player-volume input[type="range"] {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-light);
    border-radius: 2px;
    outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* === EQUALIZER === */
.equalizer-section {
    text-align: center;
    padding: 30px 0;
}

.equalizer-section p {
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
}

.equalizer .bar {
    width: 6px;
    background: var(--primary);
    border-radius: 3px;
    animation: eq 0.8s ease-in-out infinite alternate;
}

.equalizer .bar:nth-child(1) { height: 15px; animation-delay: 0s; }
.equalizer .bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.equalizer .bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.equalizer .bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.equalizer .bar:nth-child(5) { height: 25px; animation-delay: 0.4s; }
.equalizer .bar:nth-child(6) { height: 35px; animation-delay: 0.5s; }
.equalizer .bar:nth-child(7) { height: 18px; animation-delay: 0.6s; }
.equalizer .bar:nth-child(8) { height: 28px; animation-delay: 0.7s; }

@keyframes eq {
    0% { height: 8px; }
    100% { height: 45px; }
}

/* === TV PAGE === */
.tv-page {
    max-width: 960px;
    margin: 0 auto;
}

.tv-main-player {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.tv-player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.tv-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tv-player-info {
    padding: 20px 24px;
    color: white;
}

.tv-now-playing {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tv-now-playing h2 {
    font-size: 1.2rem;
}

.tv-now-playing p {
    width: 100%;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

.tv-channels-grid {
    margin-top: 10px;
}

.tv-channels-grid h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.channels-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.channel-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.channel-card:hover,
.channel-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.channel-card.active {
    background: rgba(231,76,60,0.04);
}

.channel-thumb {
    width: 100px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--dark);
}

.channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
}

.live-badge-sm {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.live-badge-sm .live-dot {
    width: 5px;
    height: 5px;
}

.channel-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: var(--dark);
}

.channel-info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.channel-type {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--light);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

/* === FOOTER === */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    margin-top: 60px;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li i {
    color: var(--primary);
    width: 16px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   ADMIN STYLES
   ============================================ */

/* === LOGIN PAGE === */
.login-page {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 1.6rem;
    color: var(--dark);
}

.login-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    color: var(--gray);
    font-size: 0.85rem;
}

.login-footer a:hover {
    color: var(--primary);
}

/* === ALERTS === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* === ADMIN LAYOUT === */
/* Hide site frontend header/footer on admin pages */
body:has(.admin-layout) .main-header,
body:has(.admin-layout) .header-top-bar,
body:has(.admin-layout) .header-nav-bar,
body:has(.admin-layout) .breaking-ticker,
body:has(.admin-layout) .pjax-loading-bar,
body:has(.admin-layout) .global-radio-player,
body:has(.admin-layout) .main-footer {
    display: none !important;
}
body:has(.admin-layout) #page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header i {
    color: var(--primary);
}

.admin-nav {
    padding: 12px 0;
}

.admin-nav hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 16px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: var(--primary);
}

.admin-nav-item.logout {
    color: var(--primary);
}

.admin-nav-item.logout:hover {
    background: rgba(231,76,60,0.15);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

/* === ADMIN MAIN === */
.admin-main {
    padding: 30px;
    background: var(--light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.admin-header p {
    width: 100%;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: -8px;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.stat-blue .stat-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-green .stat-icon { background: linear-gradient(135deg, #27ae60, #219653); }
.stat-orange .stat-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-red .stat-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-purple .stat-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-teal .stat-icon { background: linear-gradient(135deg, #1abc9c, #16a085); }

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-info p {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}

/* === ADMIN CARD === */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--gray-light);
}

.admin-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray-light);
}

.admin-card-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

/* === ADMIN TABLE === */
.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--light);
}

.admin-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 2px solid var(--gray-light);
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(231,76,60,0.02);
}

.table-thumb {
    width: 60px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.table-thumb-placeholder {
    width: 60px;
    height: 42px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
    font-size: 0.8rem;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--light);
    color: var(--secondary);
    border: 1px solid var(--gray-light);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    width: fit-content;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray);
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--secondary);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* === FORMS === */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--secondary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    color: var(--secondary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-input-lg {
    font-size: 1.2rem !important;
    padding: 14px 18px !important;
    font-weight: 600;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray);
    font-size: 0.78rem;
}

.form-group input[type="file"] {
    padding: 8px;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.form-main,
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* === EDITOR TOOLBAR === */
.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
}

.editor-toolbar button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.editor-toolbar + textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* === IMAGE UPLOAD === */
.image-upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--light);
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(231,76,60,0.03);
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.image-upload-area p {
    font-size: 0.85rem;
    color: var(--gray);
}

.image-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* === MEDIA MANAGE ITEMS (Radio & TV Admin) === */
.media-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--gray-light);
    gap: 16px;
    flex-wrap: wrap;
}

.media-manage-item:last-child {
    border-bottom: none;
}

.media-manage-info {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 1;
}

.media-manage-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.media-manage-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.media-manage-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* === EDIT DROPDOWN === */
.edit-dropdown {
    position: relative;
}

.edit-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.edit-dropdown summary::-webkit-details-marker {
    display: none;
}

.edit-dropdown[open] .edit-form {
    display: block;
}

.edit-form {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    margin-top: 4px;
}

.edit-form .form-group {
    margin-bottom: 12px;
}

.edit-form label {
    font-size: 0.8rem;
}

.edit-form input,
.edit-form select {
    padding: 8px 10px;
    font-size: 0.85rem;
}

/* === 404 PAGE === */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--light);
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.error-page p {
    font-size: 1.3rem;
    color: var(--gray);
    margin: 12px 0 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: 2;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: -280px;
        width: 260px;
        transition: var(--transition);
        z-index: 200;
    }

    .admin-sidebar.open {
        left: 0;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }

    .search-form {
        order: 3;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-bottom: 1px solid var(--gray-light);
        border-left: 3px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom-color: var(--gray-light);
        border-left-color: var(--primary);
    }

    .nav-live-indicator {
        margin-left: 0;
        justify-content: center;
    }

    .hero-image {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 1.4rem;
    }

    .hero-overlay {
        padding: 30px 20px 20px;
    }

    .live-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .popular-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-main {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
    }

    .radio-card {
        flex-direction: column;
    }

    .radio-card-visual {
        width: 100%;
        min-height: 150px;
    }

    .custom-player {
        flex-wrap: wrap;
    }

    .player-volume {
        width: 100%;
        justify-content: center;
    }

    .channels-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-main {
        padding: 16px;
    }

    .edit-form {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        min-width: 90vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-image {
        height: 220px;
    }

    .hero-overlay h1 {
        font-size: 1.1rem;
    }

    .hero-meta {
        font-size: 0.75rem;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .login-box {
        padding: 24px;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* === SVG PLACEHOLDER (create as public/css/placeholder.svg) === */
/* You'll also need a placeholder image, see below */

/* ============================================
   HLS RADIO PLAYER STYLES
   ============================================ */

/* Playing state */
.radio-card.playing {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2), var(--shadow-lg);
}

/* Visualizer overlay on cover */
.radio-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 0 16px 10px;
}

.viz-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.viz-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: vizPulse 0.6s ease-in-out infinite alternate;
}

.viz-bar:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.viz-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.viz-bar:nth-child(3) { height: 14px; animation-delay: 0.15s; }
.viz-bar:nth-child(4) { height: 30px; animation-delay: 0.2s; }
.viz-bar:nth-child(5) { height: 18px; animation-delay: 0.25s; }
.viz-bar:nth-child(6) { height: 35px; animation-delay: 0.3s; }
.viz-bar:nth-child(7) { height: 22px; animation-delay: 0.35s; }
.viz-bar:nth-child(8) { height: 28px; animation-delay: 0.4s; }
.viz-bar:nth-child(9) { height: 12px; animation-delay: 0.45s; }
.viz-bar:nth-child(10) { height: 25px; animation-delay: 0.5s; }

@keyframes vizPulse {
    0% { height: 5px; opacity: 0.5; }
    100% { height: 38px; opacity: 1; }
}

/* Player middle section */
.player-middle {
    flex: 1;
    min-width: 0;
}

.player-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-card.playing .player-status {
    color: var(--primary);
}

/* Stream info bar */
.stream-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.78rem;
    color: var(--gray);
}

.stream-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.stream-quality {
    background: var(--light);
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.72rem;
}

.radio-card.playing .stream-quality {
    background: var(--primary);
    color: white;
}

/* Now Playing Fixed Bar */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    padding: 0;
}

.now-playing-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.now-playing-pulse {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.now-playing-controls {
    display: flex;
    gap: 8px;
}

.now-playing-controls button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-playing-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Add bottom padding to body when now-playing bar is visible */
body:has(.now-playing-bar[style*="display: block"]),
body:has(.now-playing-bar[style*="display:block"]) {
    padding-bottom: 70px;
}

/* Radio card visual needs relative positioning for visualizer */
.radio-card-visual {
    position: relative;
}

/* ============================================
   HOME PAGE MINI RADIO with HLS
   ============================================ */
.radio-player-mini .mini-player-hls {
    display: none;
}




/* ============================================
   GLOBAL PERSISTENT RADIO PLAYER
   ============================================ */

.global-radio-player {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-radio-player.visible {
    bottom: 0;
}

body.has-radio-player {
    padding-bottom: 70px;
}

body.has-radio-player .main-footer {
    margin-bottom: 70px;
}

/* Player Bar */
.grp-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    min-height: 64px;
}

.grp-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.grp-pulse {
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.grp-pulse.active {
    background: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.grp-bar-info {
    min-width: 0;
}

.grp-bar-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grp-bar-status {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-radio-player.playing .grp-bar-status {
    color: var(--primary);
}

.grp-bar-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.grp-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.grp-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

#grpPlayBtn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-color: var(--primary);
    background: var(--primary);
}

#grpPlayBtn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.grp-volume-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grp-mute-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    border: none !important;
}

.grp-volume {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.grp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.grp-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.grp-close-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.75rem !important;
    border: none !important;
    opacity: 0.5;
}

.grp-close-btn:hover {
    opacity: 1;
    background: #c0392b !important;
}

/* Expanded Panel */
.grp-expanded {
    max-height: 0;
    overflow: hidden;
    background: #0f1629;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grp-expanded.open {
    max-height: 200px;
}

.grp-expanded-inner {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.grp-cover {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.grp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grp-details h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.grp-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Mini Equalizer */
.grp-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.grp-eq.active {
    opacity: 1;
}

.grp-eq-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    height: 5px;
    transition: height 0.1s;
}

.grp-eq.active .grp-eq-bar {
    animation: eqBar 0.6s ease-in-out infinite alternate;
}

.grp-eq-bar:nth-child(1) { animation-delay: 0s; }
.grp-eq-bar:nth-child(2) { animation-delay: 0.08s; }
.grp-eq-bar:nth-child(3) { animation-delay: 0.16s; }
.grp-eq-bar:nth-child(4) { animation-delay: 0.24s; }
.grp-eq-bar:nth-child(5) { animation-delay: 0.32s; }
.grp-eq-bar:nth-child(6) { animation-delay: 0.40s; }
.grp-eq-bar:nth-child(7) { animation-delay: 0.48s; }

@keyframes eqBar {
    0% { height: 4px; }
    100% { height: 28px; }
}

/* PJAX Loading Bar */
.pjax-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    width: 0;
    transition: width 0.3s ease;
}

.pjax-loading-bar.loading {
    width: 70%;
    transition: width 2s ease;
}

/* ============================================
   RADIO PAGE - Card playing indicator
   ============================================ */
.radio-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.radio-play-btn {
    min-width: 120px;
}

.stream-type-label {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-card-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 16px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.rcp-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.rcp-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 1px;
    animation: eqBar 0.5s ease-in-out infinite alternate;
}

.rcp-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.rcp-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.rcp-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.rcp-bar:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.rcp-bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }

.radio-card.playing {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15), var(--shadow-lg);
}

.radio-card.playing .radio-play-btn {
    background: var(--dark);
}

/* ============================================
   RESPONSIVE - Global Player
   ============================================ */
@media (max-width: 768px) {
    .grp-volume-wrap {
        display: none;
    }

    .grp-bar {
        padding: 10px 14px;
    }

    .grp-bar-title {
        font-size: 0.85rem;
    }

    .grp-expanded-inner {
        padding: 14px;
    }

    .grp-cover {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .grp-details h3 {
        font-size: 1rem;
    }

    body.has-radio-player {
        padding-bottom: 64px;
    }

    #scrollTopBtn {
        bottom: 80px !important;
    }
}

@media (max-width: 480px) {
    .grp-close-btn {
        display: none;
    }

    #grpStopBtn {
        display: none;
    }
}




/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.settings-tab {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-tab:hover { color: var(--secondary); }

.settings-tab.active {
    background: var(--primary);
    color: white;
}

.setting-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: start;
}

.setting-item:last-child { border-bottom: none; }

.setting-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.setting-key {
    display: block;
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 400;
    font-family: monospace;
    margin-top: 2px;
}

.setting-input .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
}

.setting-input .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    width: 50px;
    height: 40px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
}

.color-text {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-light);
}

.setting-image-preview {
    max-width: 200px;
    max-height: 80px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 2px solid var(--gray-light);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--gray-light);
    border-radius: 13px;
    position: relative;
    transition: var(--transition);
}

.toggle-slider::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    left: 25px;
}

.toggle-text {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gray);
}

.code-editor {
    font-family: 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    background: var(--dark) !important;
    color: #a8e6cf !important;
    padding: 16px !important;
    border-radius: var(--radius-sm) !important;
}

.color-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.color-swatch {
    text-align: center;
}

.swatch-color {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-light);
    margin-bottom: 6px;
}

.color-swatch span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
}

.color-swatch code {
    font-size: 0.72rem;
    color: var(--gray);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ============================================
   USERS PAGE
   ============================================ */

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
}

.user-cell-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin { background: #fde8e8; color: #c0392b; }
.role-editor { background: #d4edda; color: #155724; }
.role-author { background: #d1ecf1; color: #0c5460; }
.role-moderator { background: #fff3cd; color: #856404; }

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.permission-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--gray-light);
}

.permission-card h4 {
    margin-bottom: 12px;
}

.perm-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
}

.perm-check input {
    accent-color: var(--primary);
}

.perm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-light);
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--gray-light);
}

.profile-avatar-placeholder-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.5rem;
    color: var(--gray);
}

.profile-card h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.profile-form-section .admin-card {
    margin-bottom: 20px;
}

/* Admin sidebar section label */
.admin-nav-section {
    padding: 10px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
}

/* Logo in sidebar */
.admin-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* Logo in header */
.logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   RESPONSIVE - Settings & Users
   ============================================ */

@media (max-width: 768px) {
    .setting-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* ============================================
   ADMIN MOBILE TOP BAR
   ============================================ */

.admin-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: var(--dark);
    color: white;
    z-index: 201;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.admin-menu-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.admin-menu-btn:hover,
.admin-menu-btn:active {
    background: rgba(255,255,255,0.2);
}

.admin-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.admin-topbar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar-logo {
    height: 30px;
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

.admin-topbar-user {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.admin-topbar-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-topbar-user:hover {
    background: rgba(255,255,255,0.25);
}

/* Sidebar close button (inside sidebar, mobile only) */
.admin-sidebar-close {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all 0.2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.admin-sidebar-close:hover {
    background: rgba(231,76,60,0.4);
    color: white;
}

/* Sidebar backdrop overlay */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    animation: fadeOverlay 0.2s ease;
}

.admin-sidebar-overlay.active {
    display: block;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   ADMIN RESPONSIVE — ≤1024px (tablet + mobile)
   ============================================ */

@media (max-width: 1024px) {
    /* Show mobile top bar */
    .admin-topbar {
        display: flex;
    }

    /* Show close button inside sidebar */
    .admin-sidebar-close {
        display: flex;
    }

    /* Sidebar becomes off-canvas drawer */
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        z-index: 200;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.open {
        left: 0;
        box-shadow: 8px 0 32px rgba(0,0,0,0.35);
    }

    /* Push content down below top bar */
    .admin-main {
        padding-top: 80px;
    }

    /* Sidebar header with close button */
    .admin-sidebar-header {
        display: flex;
        align-items: center;
    }
}

/* ============================================
   ADMIN RESPONSIVE — ≤768px (mobile)
   ============================================ */

@media (max-width: 768px) {
    .admin-main {
        padding: 76px 14px 32px;
    }

    /* Page header */
    .admin-header {
        margin-bottom: 18px;
    }

    .admin-header h1 {
        font-size: 1.15rem;
        gap: 8px;
    }

    /* Cards */
    .admin-card {
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .admin-card h3 {
        font-size: 0.95rem;
    }

    .admin-card-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .admin-card-header h2 {
        font-size: 0.95rem;
    }

    /* Stats grid — 2 columns on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 14px 12px;
        gap: 12px;
        border-radius: 8px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .stat-info h3 {
        font-size: 1.25rem;
    }

    .stat-info p {
        font-size: 0.78rem;
    }

    /* Tables — horizontal scroll with touch support */
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        /* Scroll shadow hint on the right */
        background:
            linear-gradient(to right, white 20px, transparent 40px) 0 0,
            linear-gradient(to left, white 20px, transparent 40px) 100% 0,
            radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.12), transparent) 0 0,
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.12), transparent) 100% 0;
        background-repeat: no-repeat;
        background-attachment: local, local, scroll, scroll;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* Action buttons in table */
    .actions-cell {
        white-space: nowrap;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem; /* prevent iOS auto-zoom */
        padding: 10px 12px;
    }

    /* Buttons — better touch targets */
    .btn {
        padding: 9px 14px;
        font-size: 0.85rem;
        border-radius: 7px;
    }

    .btn-sm {
        padding: 7px 11px;
        font-size: 0.78rem;
    }

    .btn-block {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Alerts */
    .alert {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    /* Login box */
    .login-box {
        margin: 20px 12px;
        padding: 28px 20px;
    }

    /* User cell in table */
    .user-cell {
        gap: 8px;
    }

    .user-cell-avatar,
    .user-cell-avatar-placeholder {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    /* Role badges */
    .role-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    /* Status badges */
    .status-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    /* Permissions grid */
    .permissions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Image preview */
    .image-preview {
        max-height: 160px;
    }

    /* Post/page editor */
    .admin-header .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Settings tabs */
    .settings-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .settings-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Navigation manager sortable list */
    .nav-sort-item {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* Backup card */
    .backup-actions {
        flex-direction: column;
    }

    /* Radio/TV manage forms */
    .radio-manage-form,
    .tv-manage-form {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ADMIN RESPONSIVE — ≤480px (small phones)
   ============================================ */

@media (max-width: 480px) {
    .admin-main {
        padding: 72px 12px 28px;
    }

    .admin-header h1 {
        font-size: 1rem;
    }

    /* Stats: 2 columns but smaller */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto;
    }

    .stat-info h3 {
        font-size: 1.15rem;
    }

    .stat-info p {
        font-size: 0.75rem;
    }

    /* Cards */
    .admin-card {
        padding: 14px 12px;
    }

    .admin-card-header h2 {
        font-size: 0.9rem;
    }

    /* Top bar brand text */
    .admin-topbar-brand span {
        font-size: 0.85rem;
    }

    /* Table font */
    .admin-table th,
    .admin-table td {
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    /* Form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 10px;
    }

    /* Login */
    .login-box {
        padding: 22px 16px;
    }

    /* Admin nav font size */
    .admin-nav-item {
        font-size: 0.88rem;
        padding: 11px 18px;
    }
}





/* ============================================
   EVENTS
   ============================================ */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-card.event-past {
    opacity: 0.7;
}

.event-date-badge {
    min-width: 90px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.event-date-badge .event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-date-badge .event-day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-badge .event-year {
    font-size: 0.7rem;
    opacity: 0.8;
}

.event-card.event-past .event-date-badge {
    background: var(--gray);
}

.event-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
}

.event-card-image {
    width: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-past-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
}

.event-card-content {
    padding: 20px;
    flex: 1;
    min-width: 0;
}

.event-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.event-card-content h3 a {
    color: var(--dark);
}

.event-card-content h3 a:hover {
    color: var(--primary);
}

.event-meta-info {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.event-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-excerpt {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.event-detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin-top: 16px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-detail-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.event-detail-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.event-date-badge-sm {
    min-width: 45px;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    padding: 6px;
    flex-shrink: 0;
}

.event-date-badge-sm span {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-badge-sm small {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.row-muted {
    opacity: 0.5;
}

/* ============================================
   SERMONS
   ============================================ */
.sermon-filters {
    margin-bottom: 30px;
}

.sermon-filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sermon-filter-form select {
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--white);
    min-width: 160px;
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sermon-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.sermon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.sermon-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark), var(--secondary));
}

.sermon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 3rem;
}

.sermon-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: var(--transition);
}

.sermon-card:hover .sermon-play-overlay {
    opacity: 1;
}

.sermon-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sermon-card-body {
    padding: 18px;
}

.sermon-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sermon-series-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
}

.sermon-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.sermon-card-body h3 a {
    color: var(--dark);
}

.sermon-card-body h3 a:hover {
    color: var(--primary);
}

.sermon-speaker {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.sermon-scripture {
    font-size: 0.82rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 8px;
}

.sermon-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.sermon-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sermon Single */
.sermon-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 30px 0;
}

.sermon-main {
    min-width: 0;
}

.sermon-header {
    margin: 20px 0;
}

.sermon-header h1 {
    font-size: 1.8rem;
    margin: 10px 0;
    color: var(--dark);
}

.sermon-detail-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--gray);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.sermon-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sermon-audio-section {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    border: 1px solid var(--gray-light);
}

.sermon-audio-section h3 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.sermon-audio-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sermon-document {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    border: 1px solid var(--gray-light);
}

.sermon-document h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.sermon-video-player {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
}

/* Inline form */
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form input {
    padding: 8px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ============================================
