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

body {
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    color: #f4f1e8;
    font-family: 'Courier Prime', monospace;
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

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

.cassette-player {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 3px solid #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.1);
    margin-bottom: 30px;
    position: relative;
}

.player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.speaker-left,
.speaker-right {
    width: 80px;
    height: 60px;
    background: linear-gradient(45deg, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    position: relative;
    border: 2px solid #333;
}

.speaker-left::before,
.speaker-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: repeating-linear-gradient(
        45deg,
        #333 0px,
        #333 2px,
        #222 2px,
        #222 4px
    );
    border-radius: 4px;
}

.display-section {
    flex: 1;
    max-width: 400px;
}

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

.track-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-number {
    color: #00ff41;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.track-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cassette-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.cassette {
    width: 300px;
    height: 180px;
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border: 2px solid #ccc;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.cassette-body {
    width: 100%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cassette-label {
    text-align: center;
    color: #333;
}

.cassette-label h1 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Orbitron', monospace;
}

.cassette-label p {
    font-size: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.side-info {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cassette-reels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.reel {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #666, #333);
    border-radius: 50%;
    border: 2px solid #222;
    position: relative;
    animation: rotate 3s linear infinite paused;
}

.reel.playing {
    animation-play-state: running;
}

.reel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 1px solid #555;
    border-radius: 50%;
}

.tape-section {
    flex: 1;
    height: 20px;
    margin: 0 10px;
    position: relative;
}

.tape-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    color: #f4f1e8;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

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

.play-pause {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border-color: #cc4a4a;
}

.play-pause:hover {
    background: linear-gradient(145deg, #ff7b7b, #ff5a52);
}

.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.volume-section label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ccc;
}

#volume {
    width: 150px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.dedication {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.couple-photo {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.vintage-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    filter: sepia(20%) contrast(1.2) brightness(0.9) saturate(0.8);
    box-shadow: 
        0 0 0 8px #2a2a2a,
        0 0 0 12px #1a1a1a,
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.vintage-photo:hover {
    filter: sepia(30%) contrast(1.3) brightness(1.0) saturate(0.9);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 8px #2a2a2a,
        0 0 0 12px #1a1a1a,
        0 12px 25px rgba(0, 0, 0, 0.7),
        inset 0 0 50px rgba(0, 0, 0, 0.2);
}

.photo-frame {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid #3a3a3a;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    z-index: -1;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, #444, #222);
    border-radius: 15px;
    z-index: -1;
}

.dedication h2 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.dedication p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.heart {
    font-size: 30px;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.playlist {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.playlist h3 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #00ff41;
    letter-spacing: 2px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-item {
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.track-item.playing {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.track-name {
    font-weight: 700;
    color: #f4f1e8;
}

.track-artist {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

.track-duration {
    font-size: 12px;
    opacity: 0.6;
    font-family: 'Orbitron', monospace;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .cassette-player {
        padding: 15px;
    }
    
    .player-top {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .speaker-left,
    .speaker-right {
        width: 60px;
        height: 45px;
    }
    
    .display-section {
        flex: 1;
        min-width: 0;
    }
    
    .display {
        padding: 10px;
    }
    
    .track-number {
        font-size: 10px;
    }
    
    .track-title {
        font-size: 12px;
    }
    
    .cassette {
        width: 280px;
        height: 170px;
    }
    
    .cassette-body {
        padding: 12px;
    }
    
    .cassette-label h1 {
        font-size: 14px;
    }
    
    .cassette-label p {
        font-size: 9px;
    }
    
    .reel {
        width: 35px;
        height: 35px;
    }
    
    .reel::after {
        width: 25px;
        height: 25px;
    }
    
    .controls {
        gap: 15px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .volume-section {
        margin-top: 15px;
    }
    
    #volume {
        width: 120px;
    }
    
    .vintage-photo {
        width: 150px;
        height: 190px;
    }
    
    .dedication {
        margin: 30px 0;
        padding: 20px;
    }
    
    .dedication h2 {
        font-size: 20px;
    }
    
    .dedication p {
        font-size: 14px;
    }
    
    .track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .cassette-player {
        padding: 12px;
    }
    
    .speaker-left,
    .speaker-right {
        width: 50px;
        height: 40px;
    }
    
    .display {
        padding: 8px;
    }
    
    .track-number {
        font-size: 9px;
    }
    
    .track-title {
        font-size: 11px;
    }
    
    .cassette {
        width: 260px;
        height: 155px;
    }
    
    .cassette-body {
        padding: 10px;
    }
    
    .cassette-label h1 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .cassette-label p {
        font-size: 8px;
        margin-bottom: 8px;
    }
    
    .side-info {
        font-size: 7px;
    }
    
    .reel {
        width: 32px;
        height: 32px;
    }
    
    .reel::after {
        width: 22px;
        height: 22px;
    }
    
    .reel-center {
        width: 6px;
        height: 6px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .controls {
        gap: 12px;
    }
    
    #volume {
        width: 100px;
    }
    
    .vintage-photo {
        width: 120px;
        height: 150px;
    }
    
    .dedication {
        padding: 15px;
    }
    
    .dedication h2 {
        font-size: 18px;
    }
    
    .dedication p {
        font-size: 13px;
    }
    
    .playlist {
        padding: 15px;
    }
    
    .playlist h3 {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .cassette-player {
        padding: 10px;
    }
    
    .speaker-left,
    .speaker-right {
        width: 45px;
        height: 35px;
    }
    
    .cassette {
        width: 240px;
        height: 145px;
    }
    
    .cassette-body {
        padding: 8px;
    }
    
    .cassette-label h1 {
        font-size: 12px;
    }
    
    .cassette-label p {
        font-size: 7px;
    }
    
    .reel {
        width: 28px;
        height: 28px;
    }
    
    .reel::after {
        width: 18px;
        height: 18px;
    }
    
    .vintage-photo {
        width: 100px;
        height: 125px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .controls {
        gap: 10px;
    }
}