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

body {
    background: #000;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.weatherstar-container {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.crt-monitor {
    width: 900px;
    height: 675px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 80px rgba(100, 150, 255, 0.4);
    position: relative;
}

.crt-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a4a8a 0%, #1a2a5a 50%, #0a1a3a 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* CRT Scanline Effect */
.crt-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

/* CRT Flicker Effect */
.crt-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 11;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

#weatherContent {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Weather Channel Logo */
.twc-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a5aa0;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    text-align: center;
    line-height: 1.2;
    z-index: 5;
}

.twc-logo-text {
    display: block;
}

/* Header Bar */
.ws4000-header {
    background: linear-gradient(90deg, 
        rgba(139, 69, 177, 0.9) 0%, 
        rgba(204, 102, 51, 0.9) 20%, 
        rgba(255, 204, 51, 0.9) 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.header-title {
    font-size: 34px;
    color: #ffff00;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(255, 255, 0, 0.5);
    letter-spacing: 1px;
}

.header-info {
    text-align: right;
    line-height: 1.3;
}

.header-time {
    font-size: 24px;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 2px;
}

.header-date {
    font-size: 18px;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 2px;
}

.header-labels {
    font-size: 18px;
    color: #ffff00;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 4px;
}

/* Travel Forecast Screen */
.travel-forecast {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forecast-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr;
    align-items: center;
    gap: 30px;
    padding: 8px 0;
}

.city-name {
    font-size: 38px;
    color: #ffff00;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(255, 255, 0, 0.4);
    letter-spacing: 1px;
}

.weather-icon {
    font-size: 60px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.temps {
    display: flex;
    gap: 25px;
    font-size: 48px;
    color: #ffff00;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

/* Bottom Info Bar */
.bottom-bar {
    background: linear-gradient(90deg, #1a3a6a 0%, #2a4a8a 100%);
    padding: 12px 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-info {
    font-size: 22px;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 2px;
}

/* Local Forecast Screen */
.local-forecast {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.current-temp-large {
    font-size: 120px;
    color: #ffff00;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        0 0 20px rgba(255, 255, 0, 0.6);
    line-height: 1;
}

.current-conditions {
    font-size: 32px;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    text-align: center;
    letter-spacing: 2px;
}

.detail-row {
    display: flex;
    gap: 50px;
    font-size: 24px;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Extended Forecast */
.extended-forecast {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forecast-day-row {
    display: grid;
    grid-template-columns: 1.8fr 0.8fr 1.5fr 2fr;
    align-items: center;
    gap: 20px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
}

.day-label {
    font-size: 28px;
    color: #ffff00;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    letter-spacing: 1px;
}

.day-icon {
    font-size: 40px;
    text-align: center;
}

.day-temps {
    display: flex;
    gap: 15px;
    font-size: 32px;
    color: #ffff00;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.day-condition {
    font-size: 22px;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
}

.control-btn {
    background: rgba(42, 74, 138, 0.8);
    border: 2px solid #ffff00;
    color: #ffff00;
    padding: 12px 24px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(42, 74, 138, 1);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.screen-transition {
    animation: screenTransition 0.5s ease-in-out;
}

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