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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0c0c0f;
    color: #e6e6e6;
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
}

/* --- Stream List Grid --- */
#stream-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 14px;
}

/* List items - subtle hover with vertical lift */
#stream-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1a1a21;
    padding: 14px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #e6e6e6;
    border: 1px solid #2a2a33;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#stream-list a:hover {
    background: #24242b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

#stream-list img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    transition: transform 0.15s ease;
}

#stream-list a:hover img {
    transform: translateY(-3px);
}

/* --- Home Button --- */
#home-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a21;
    border-bottom: 1px solid #2a2a33;
    height: 50px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Make the <a> fill the full button area */
#home-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    height: 100%;
    gap: 8px;
    text-decoration: none;
    color: #e6e6e6;
    font-size: 16px;
    transition: color 0.2s ease;
}

#home-button:hover {
    background: #24242b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#home-button img {
    width: 26px;
    height: 26px;
}

/* --- Video Layout --- */
body:has(#stream-video:not([style*="display: none"])) {
    flex-direction: column;
}

#stream-video {
    width: 100%;
    height: calc(100vh - 50px - 32px);
    background: black;
    object-fit: contain;
    display: block;
}

/* --- Footer --- */
#site-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 10px 0;
    background: #0c0c0f;
    border-top: 1px solid #1a1a21;
    margin-top: auto; /* pushes footer to bottom without stretching content */
}

/* --- Smooth Fade --- */
#stream-list,
#home-button,
#stream-video {
    transition: opacity 0.25s ease;
}

[style*="display: none"] {
    opacity: 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}
::-webkit-scrollbar-track {
    background: #111;
}

