@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: linear-gradient(45deg, #8B4513, #A0522D, #CD853F);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #654321, #8B4513);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #D2691E;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    color: #FFA500;
    font-style: italic;
}

.player-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 40px;
}

.player-housing {
    background: linear-gradient(145deg, #654321, #8B4513);
    border: 4px solid #D2691E;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 30px rgba(0,0,0,0.5);
}

#discCanvas {
    border: 3px solid #333;
    border-radius: 50%;
    background: #111;
    display: block;
    margin: 0 auto 20px;
    cursor: pointer;
}

.stylus-arm {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 4px;
    height: 100px;
    background: linear-gradient(180deg, #c0c0c0, #888);
    transform-origin: top center;
    pointer-events: none;
    border-radius: 2px;
}

.tv-screen {
    background: #000;
    border: 6px solid #333;
    border-radius: 8px;
    width: 320px;
    height: 240px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,255,0,0.1) 2px,
        rgba(0,255,0,0.1) 4px
    );
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.tv-content {
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px #00ff00;
    line-height: 1.4;
}

.static-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.02) 1px,
        transparent 2px
    );
    animation: static 0.05s linear infinite;
}

@keyframes static {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

.control-panel {
    background: linear-gradient(145deg, #2F4F2F, #556B2F);
    border: 4px solid #6B8E23;
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

.led-display {
    background: #000;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

#timeDisplay {
    color: #ff6600;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 0 10px #ff6600;
    margin-right: 20px;
}

.status {
    color: #00ff00;
    font-size: 1.2em;
    text-shadow: 0 0 5px #00ff00;
}

.controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.control-btn {
    background: linear-gradient(145deg, #8B4513, #654321);
    border: 3px solid #D2691E;
    border-radius: 8px;
    color: #FFD700;
    font-size: 1.5em;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.control-btn:hover {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.control-btn:active, .control-btn.pressed {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.play {
    background: linear-gradient(145deg, #228B22, #006400);
    border-color: #32CD32;
}

.eject {
    background: linear-gradient(145deg, #DC143C, #8B0000);
    border-color: #FF6347;
}

.volume-control {
    text-align: center;
}

.volume-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700;
}

#volumeSlider {
    width: 100%;
    height: 8px;
    background: #333;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ff6600;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255,102,0,0.5);
}

.disc-library {
    background: linear-gradient(145deg, #2F2F2F, #1a1a1a);
    border: 3px solid #555;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.disc-library h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    text-align: center;
}

.disc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.disc-cover {
    cursor: pointer;
    transition: transform 0.3s;
}

.disc-cover:hover {
    transform: scale(1.05);
}

.disc-sleeve {
    background: linear-gradient(45deg, #444, #222);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.disc-sleeve h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.disc-sleeve p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.disc-sleeve small {
    color: #999;
    font-style: italic;
    font-size: 0.8em;
}

.educational-panel {
    background: linear-gradient(145deg, #4A4A4A, #2A2A2A);
    border: 3px solid #666;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.toggle-btn {
    background: linear-gradient(145deg, #4169E1, #0000CD);
    border: 2px solid #1E90FF;
    border-radius: 8px;
    color: #fff;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: linear-gradient(145deg, #6495ED, #4169E1);
}

.education-content {
    transition: all 0.5s;
}

.education-content.hidden {
    display: none;
}

.technical-diagram h4 {
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.technical-diagram p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ddd;
}

.fun-facts, .comparison-chart {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.fun-facts h5, .comparison-chart h5 {
    color: #FFA500;
    margin-bottom: 10px;
}

.fun-facts ul {
    list-style-type: none;
    padding-left: 0;
}

.fun-facts li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.fun-facts li:before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #FFD700;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

table th, table td {
    border: 1px solid #666;
    padding: 8px;
    text-align: left;
}

table th {
    background: rgba(255,215,0,0.2);
    color: #FFD700;
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid #666;
    margin-top: 20px;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    color: #FFA500;
}

.disclaimer {
    font-size: 0.9em;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .player-section {
        grid-template-columns: 1fr;
    }
    
    #discCanvas {
        width: 300px;
        height: 300px;
    }
    
    .tv-screen {
        width: 280px;
        height: 210px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .disc-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}