:root {
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --text-color: #ffffff;
    --font-size-base: 48px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: 'Lexend Deca', sans-serif;
    cursor: none;
}

#frame-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.media-layer, .blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-layer {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: 5;
}

.blur-layer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    filter: blur(25px) brightness(0.7);
    transform: scale(1.1);
    z-index: 1;
}

#video-player {
    object-fit: contain;
}

/* Centered Clock Layout */
.bottom-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding-bottom: 3.5rem;
    z-index: 100;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: white;
}
#clock {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 0.9;
}
#date {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Vertical Weather Sidebar */
#weather-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#weather-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
#current-weather {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
#temp {
    font-size: 2.5rem;
    font-weight: 500;
}
#weather-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}
.forecast-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 400;
}
.forecast-item .time-label {
    opacity: 0.7;
    width: 60px;
}
.forecast-item .temp-label {
    font-weight: 600;
    text-align: right;
}

/* Sports Sidebar (Top Right) */
#sports-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3rem;
    z-index: 100;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: right;
    width: 320px;
}
.sports-card {
    opacity: 1; /* Was display: none */
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.team-name {
    font-size: 1.4rem;
    font-weight: 800;
}
.league-tag {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.sports-content {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}
.sports-score-line {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.news-headline {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    opacity: 0.9;
}
.next-game-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}
