/* 
    1144sessions.com — HÖR Berlin Inspired Aesthetic
    Clinic, Structured, High-Performance, Minimal.
*/

:root {
    --bg: #ffffff;
    --text: #000000;
    --border: #eeeeee;
    --accent: #11311d; /* Finalized Collective Green */
    --sidebar-w: 374px; /* Matched to original site */
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-heading);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CSP Compliance Utilities */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden !important;
}

/* HÖR Style Ticker */
.ticker-wrap {
    background: var(--text);
    color: var(--bg);
    height: 30px;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.app-container {
    display: flex;
    padding-top: 30px; /* Ticker space */
    min-height: 100vh;
}

/* Sidebar: Arty Gallery View */
.sidebar {
    width: var(--sidebar-w);
    height: calc(100vh - 30px);
    position: fixed;
    padding: 45px 75px; /* Matched to original 'narrow' look */
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.brand-logo {
    width: 150px; /* Matched to original size */
    margin-bottom: 45px;
    display: block;
}

.about-section {
    font-size: 13px; /* Matched to original elegance */
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text);
}

.about-section .lead {
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.btn-subscribe {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: opacity 0.2s;
}

.btn-subscribe:hover {
    background: var(--accent);
}

.social-links {
    margin-top: 60px;
}

.social-links a {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.social-links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 10px;
    opacity: 0.4;
    font-family: var(--font-mono);
}

/* Main Content: Feature + Grid Matrix */
.main-content {
    margin-left: var(--sidebar-w);
    flex-grow: 1;
    background: var(--bg);
}

/* Banner Section */
.live-feature {
    width: 100%;
    background: #000;
    border-bottom: 2px solid var(--text);
    position: relative;
    overflow: hidden;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-controls {
    display: flex;
    gap: 1px;
    background: var(--border);
    padding: 1px;
    margin-top: 10px;
}

.banner-controls button {
    flex: 1;
    background: var(--bg);
    border: none;
    color: var(--text);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banner-controls button:hover {
    background: #eeeeee;
}

.banner-controls button.active {
    background: var(--text);
    color: var(--bg);
}


.banner-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Deeper protective gradient from top */
    padding: 20px 40px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    color: #fff;
    display: flex;
    justify-content: flex-end; /* Force content to the right */
}

.banner-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4); /* Added background for extreme readability */
    padding: 6px 12px;
    color: #fff;
}

.status-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #ff0000 !important;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.live-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
}

/* Grid Matrix: 4 Columns on Desktop */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}

/* Card: Clinical & Responsive */
.session-card {
    background: var(--bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.thumbnail-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f7f7f7;
    position: relative;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* Genre Badge: Clinic Style */
.genre-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--text);
    color: var(--bg);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
}

/* Session Overlay on Thumbnail */
.thumbnail-container::after {
    content: "PLAY SESSION";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    color: var(--text);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 0.1em;
    z-index: 6;
}

.session-card:hover .thumbnail-container::after {
    opacity: 1;
}

.session-card:hover img {
    opacity: 0.6;
}

.session-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.session-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.loading-indicator {
    padding: 100px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #999;
    letter-spacing: 0.1em;
}

/* Video Player Modal: Stark */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

#player-container {
    width: 100%;
    height: 100%;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.close-modal {
    position: fixed;
    top: 40px;
    right: 40px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
}

/* Responsive Overrides */
@media (max-width: 1400px) {
    .sessions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    /* Hide featured banner in ARCHIVE mode on mobile to avoid duplication with the grid */
    body.archive-view .live-feature {
        display: none !important;
    }
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--text); /* More clinical separation */
        padding: 30px 20px; /* Tighter padding for better usage of space */
    }
    .brand-logo {
        width: 100px;
        margin-bottom: 25px;
    }
    .about-section {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 30px;
    }
    .live-wrapper {
        aspect-ratio: 16 / 9; /* Taller on mobile for prominence */
    }
    .artist-name {
        font-size: 15px; /* Bigger for touch readability */
    }
    .session-meta {
        font-size: 11px;
    }
    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 14px;
        padding: 10px;
        background: rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.2);
    }
    .main-content {
        margin-left: 0;
    }
    .sessions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    .banner-header {
        height: 60px; /* Reduced to avoid blocking video on small screens */
        padding: 10px 15px;
    }
    .banner-status {
        font-size: 9px;
        padding: 4px 8px;
    }
    .status-dot {
        width: 6px !important;
        height: 6px !important;
    }
    .session-info {
        padding: 15px;
    }
    .genre-badge {
        font-size: 8px;
        padding: 3px 8px;
    }
    .thumbnail-container::after {
        opacity: 0.9 !important; /* Visible on mobile */
        background: var(--bg);
        color: var(--text);
        top: 20px;
        left: 20px;
        transform: none;
        font-size: 9px;
    }
}
