body {
    font-family: Arial, sans-serif;
    background: url('snow2025.jpg') no-repeat center center fixed;
    /* Add background image */
    background-size: cover;
    /* Make sure the image covers the entire viewport */
    margin: 0;
    padding: 0;
    color: #fff;
    /* Keep text readable over the background */
}

.player-container {
    width: 300px;
    /* Shared width for both elements */
    margin: 50px auto;
    text-align: center;
}

.cassette-player {
    position: relative;
    background: linear-gradient(135deg, #6a6a6a 0%, #505050 50%, #3a3a3a 100%);
    border-radius: 3px;
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid #2a2a2a;
}

/* Corner screws for cassette player */
.cassette-player::before,
.cassette-player::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #666 0%, #444 40%, #333 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.5),
        0 1px 1px rgba(255, 255, 255, 0.3);
}

.cassette-player::before {
    top: 8px;
    left: 8px;
}

.cassette-player::after {
    top: 8px;
    right: 8px;
}

.cassette {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    /* 25% transparent to show background */
    border-radius: 3px;
    height: 100px;
    margin-bottom: 20px;
    overflow: visible;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

#track-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    color: #fff;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
    padding: 5px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.reels {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-around;
    /* Space reels proportionally */
    width: 80%;
    /* Adjust container width to bring reels closer together */
    background: rgba(0, 0, 0, 0.4);
    /* Dark window behind reels */
    padding: 10px;
    border-radius: 2px;
}

.reel {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #ddd, #999 40%, #666 70%, #444);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: spin 5s linear infinite paused;
    /* Reels spin when playing */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.spoke {
    position: absolute;
    width: 3px;
    /* Spoke thickness */
    height: 50%;
    /* Full spoke length */
    background: linear-gradient(to bottom, #222, #444, #222);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.spoke:nth-child(1) {
    transform: rotate(0deg);
}

.spoke:nth-child(2) {
    transform: rotate(60deg);
}

.spoke:nth-child(3) {
    transform: rotate(120deg);
}

.spoke:nth-child(4) {
    transform: rotate(180deg);
}

.spoke:nth-child(5) {
    transform: rotate(240deg);
}

.spoke:nth-child(6) {
    transform: rotate(300deg);
}

.reel::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, #777, #444);
    /* Matches the reel's color */
    border-radius: 50%;
    /* Ensures a perfect circle */
    z-index: 1;
    /* Keeps the circle above the spokes */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}


@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.controls {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

button {
    background: #666;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #555;
}

.track-list {
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    /* Inherits the width of .player-container */
}

.j-card {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: left;
    color: #555;
}

.j-card h4 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.j-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.j-card li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.j-card li span.track-order {
    font-weight: bold;
    margin-right: 8px;
}

.j-card li span.track-artist {
    color: #555;
    font-style: italic;
    margin-right: 5px;
}

.j-card li span.track-title {
    color: #000;
}

.footer {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    color: #999;
    background-color: #141414;
    text-align: center;
  }