/* =========================================
   Header
   ========================================= */
.site-header {
    background: #14141c;
    border-bottom: 1px solid #23232e;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    text-align: center;
    padding: 60px 20px 30px;
    background: radial-gradient(circle at top, #1c1c28, #0d0d12);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.hero p {
    color: #9a9aa6;
    font-size: 1.1rem;
}

/* =========================================
   Channels grid
   ========================================= */
.channels-grid-section {
    padding: 40px 20px 80px;
}
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.channel-card {
    background: #16161f;
    border: 1px solid #23232e;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}
.channel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent, #e63946);
}
.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #e63946);
}
.channel-card__link {
    display: block;
}
.channel-card__logo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 12px;
}
.channel-card__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #e63946);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}
.channel-card__title {
    margin: 8px 0 4px;
    font-size: 1.2rem;
}
.channel-card__subtitle {
    color: #9a9aa6;
    font-size: 0.9rem;
    margin: 0 0 10px;
}
.channel-card__now-playing {
    font-size: 0.85rem;
    color: #cfcfda;
    min-height: 1.4em;
    margin-bottom: 14px;
}
.channel-card__play-btn,
.big-play-btn {
    background: var(--accent, #e63946);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.channel-card__play-btn:hover,
.big-play-btn:hover {
    opacity: 0.85;
}
.channel-card__play-btn.is-playing,
.big-play-btn.is-playing {
    background: #2a2a36;
}

/* =========================================
   Single channel page
   ========================================= */
.channel-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, #0d0d12), #0d0d12);
    padding: 60px 20px;
}
.channel-hero__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.channel-hero__logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
}
.channel-hero__info h1 {
    font-size: 2.2rem;
    margin: 0 0 6px;
}
.channel-hero__subtitle {
    color: #cfcfda;
    margin: 0 0 14px;
}
.channel-hero__now-playing {
    margin-bottom: 20px;
    font-size: 1rem;
}
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #e63946;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
.channel-description {
    padding: 20px 20px 0;
    color: #cfcfda;
}

/* =========================================
   Schedule table
   ========================================= */
.channel-schedule {
    padding: 50px 20px 80px;
}
.schedule-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.schedule-table th {
    background: #16161f;
    padding: 12px;
    border: 1px solid #23232e;
    font-size: 0.9rem;
}
.schedule-table td {
    vertical-align: top;
    padding: 10px;
    border: 1px solid #23232e;
    width: 14.28%;
}
.schedule-item {
    background: #1c1c28;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.schedule-item__time {
    font-size: 0.75rem;
    color: var(--accent, #e63946);
    font-weight: 700;
}
.schedule-item__title {
    font-size: 0.9rem;
    margin: 2px 0;
}
.schedule-item__host {
    font-size: 0.75rem;
    color: #9a9aa6;
}
.no-program {
    color: #55555f;
}

/* =========================================
   Global player bar
   ========================================= */
.global-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #14141c;
    border-top: 1px solid #23232e;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.global-player-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
}
.gp-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.gp-info {
    flex: 1;
    min-width: 0;
}
.gp-channel-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.gp-program-name {
    font-size: 0.8rem;
    color: #9a9aa6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-play-pause {
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 0.9rem;
}
.gp-volume {
    width: 90px;
}
.gp-live-badge {
    font-size: 0.75rem;
    color: #55555f;
    font-weight: 700;
}
.gp-live-badge.is-live {
    color: #e63946;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    padding: 24px 20px;
    text-align: center;
    color: #55555f;
    font-size: 0.85rem;
    border-top: 1px solid #23232e;
    margin-bottom: 70px; /* простор за фиксираната лента за плеерот */
}

/* Responsive */
@media (max-width: 600px) {
    .channel-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .gp-volume {
        display: none;
    }
}
