/**
 * Entertainment Section Styles — edge-to-edge shell matches /business + /finance
 */

:root {
    --entertainment-primary: var(--nk-accent, #128A6B);
    --entertainment-secondary: var(--nk-accent-hover, #0c6b53);
    --entertainment-accent: var(--nk-accent, #128A6B);
    --entertainment-surface: var(--bg-light, #ffffff);
    --entertainment-primary-soft: rgba(18, 138, 107, 0.08);
    --entertainment-primary-border: rgba(18, 138, 107, 0.22);
}

.burudani-theme {
    --primary-color: var(--entertainment-primary);
}

.entertainment-view.finance-detail-container {
    color: var(--text-primary);
}

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

.entertainment-aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: start;
}

.entertainment-aside .ent-radio-panel {
    width: 100%;
    margin-bottom: 24px;
}

.entertainment-header-actions {
    margin: 0 0 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.entertainment-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.entertainment-header-link:hover {
    border-color: var(--nk-border-strong, #DDD9CF);
    background: var(--nk-chip, #F0EEE7);
}

.entertainment-radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--entertainment-primary-border);
    background: var(--entertainment-primary-soft);
    color: var(--entertainment-secondary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.entertainment-radio-btn:hover {
    border-color: var(--entertainment-primary);
    background: rgba(18, 138, 107, 0.14);
}

.entertainment-radio-btn:focus-visible,
.entertainment-header-link:focus-visible {
    outline: 2px solid var(--entertainment-primary);
    outline-offset: 2px;
}

/* ========================================
   Radio sidebar widget (mirrors BRELA panel)
   ======================================== */

.ent-radio-panel {
    margin: 0;
    padding: 20px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color);
    background: #f9f9f9;
    box-shadow: none;
}

.ent-radio-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ent-radio-panel__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.ent-radio-panel__sub {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: none;
}

.ent-radio-external-link {
    display: inline-flex;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--entertainment-secondary);
    text-decoration: none;
}

.ent-radio-external-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ent-radio-panel__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(62vh, 560px);
    overflow: auto;
    padding-right: 2px;
}

.ent-radio-panel__list .discover-radio-card {
    background: var(--bg-light, #fff);
    border: 1px solid var(--border-color);
    box-shadow: none;
    border-radius: var(--radius-md, 10px);
    min-height: 64px;
    padding: 10px 12px;
}

.ent-radio-panel__list .discover-radio-card-avatar {
    background: linear-gradient(135deg, var(--entertainment-primary), var(--entertainment-secondary));
    border-radius: 10px;
}

.ent-radio-panel__list .discover-radio-play {
    background: var(--entertainment-primary-soft);
    color: var(--entertainment-secondary);
    border: 1px solid var(--entertainment-primary-border);
}

.ent-radio-panel__list .discover-radio-play:hover,
.ent-radio-panel__list .discover-radio-play.is-playing {
    background: var(--entertainment-primary);
    color: #fff;
    border-color: var(--entertainment-primary);
}

.ent-radio-panel__empty {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.ent-hub-ad {
    margin: 0 0 20px;
}

.entertainment-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1200px) {
    .entertainment-aside {
        order: -1;
    }

    .ent-radio-panel__list {
        max-height: none;
    }
}

/* What's Happening — align with business cards */
.entertainment-main .whats-happening-section {
    margin-top: 0;
    margin-bottom: 28px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.entertainment-view .whats-happening-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.entertainment-view .whats-happening-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.entertainment-view .carousel-container {
    position: relative;
    padding: 0 8px;
}

.entertainment-view .whats-happening-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.entertainment-view .whats-happening-carousel::-webkit-scrollbar {
    display: none;
}

.entertainment-view .happening-card--entertainment {
    flex: 0 0 280px;
    width: 280px;
    min-width: 260px;
    max-width: 280px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md, 10px);
    padding: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    box-shadow: none;
    cursor: pointer;
}

.entertainment-view .happening-card--entertainment:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--entertainment-primary);
    background: var(--bg-light);
}

.entertainment-view .happening-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.entertainment-view .source-icons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.entertainment-view .source-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.entertainment-view .happening-source-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.entertainment-view .happening-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary, #fafaf9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.entertainment-view .happening-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: var(--text-primary);
}

.entertainment-view .happening-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entertainment-view .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.entertainment-view .carousel-nav:hover {
    background: var(--nk-chip, #F0EEE7);
    transform: translateY(-50%) scale(1.06);
}

.entertainment-view .carousel-nav.prev { left: -10px; }
.entertainment-view .carousel-nav.next { right: -10px; }

/* Filters */
.entertainment-filters-wrapper {
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
    background: transparent;
}

.entertainment-view .filter-select-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.entertainment-view .filter-select-container::-webkit-scrollbar {
    display: none;
}

.entertainment-view .filter-select-item {
    padding: 8px 16px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.entertainment-view .filter-select-item.active {
    background: var(--entertainment-primary);
    color: #fff;
    border-color: var(--entertainment-primary);
    box-shadow: none;
}

.entertainment-view .filter-select-item:hover:not(.active) {
    background: var(--nk-chip, #F0EEE7);
    transform: none;
}

/* Influencer list */
.entertainment-view .influencer-list-container {
    background: var(--bg-light);
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color);
    box-shadow: none;
    overflow: hidden;
}

.entertainment-view .influencer-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 0.8fr 1.5fr;
    padding: 14px 20px;
    background: var(--bg-secondary, #fafaf9);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.entertainment-view .influencer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 0.8fr 1.5fr;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    align-items: center;
    transition: background 0.15s ease;
}

.entertainment-view .influencer-row:hover {
    background: var(--entertainment-primary-soft);
}

.entertainment-view .influencer-row:last-child {
    border-bottom: none;
}

.entertainment-view .profile-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.entertainment-view .influencer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.entertainment-view .profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.entertainment-view .profile-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entertainment-view .profile-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.entertainment-view .verified-badge {
    background: #0095f6;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
}

.entertainment-view .profile-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.entertainment-view .stat-cell {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.entertainment-view .actions-cell {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.entertainment-view .btn-save,
.entertainment-view .btn-view {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.entertainment-view .btn-save {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.entertainment-view .btn-save:hover {
    border-color: var(--nk-border-strong, #DDD9CF);
    background: var(--nk-chip, #F0EEE7);
}

.entertainment-view .btn-view {
    background: var(--entertainment-primary-soft);
    border: 1px solid var(--entertainment-primary-border);
    color: var(--entertainment-secondary);
}

.entertainment-view .btn-view:hover {
    border-color: var(--entertainment-primary);
    background: rgba(18, 138, 107, 0.14);
}

@media (max-width: 850px) {
    .entertainment-view .influencer-list-header {
        display: none;
    }

    .entertainment-view .influencer-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .entertainment-view .profile-cell {
        grid-column: span 2;
    }

    .entertainment-view .stat-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .entertainment-view .stat-cell::before {
        content: attr(data-label);
        font-size: 11px;
        color: var(--text-tertiary, #999);
        text-transform: uppercase;
        font-weight: 600;
    }

    .entertainment-view .actions-cell {
        grid-column: span 2;
        justify-content: stretch;
        width: 100%;
        margin-top: 6px;
    }

    .entertainment-view .btn-save,
    .entertainment-view .btn-view {
        flex: 1;
        text-align: center;
    }

    .entertainment-view .carousel-nav {
        display: none;
    }

    .entertainment-view .carousel-container {
        padding: 0;
    }
}
