body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto', 'Open Sans', 'Arial', sans-serif;
    position: relative;
    overflow-y: auto;
    background: #000000;
    margin: 0;
    padding: 0;
}

.festive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(64, 64, 64, 0.3) 10%, transparent 80%),
        radial-gradient(circle, rgba(128, 128, 128, 0.2) 10%, transparent 80%);
    background-size: 200% 200%;
    animation: subtleLights 20s infinite alternate;
}

@keyframes subtleLights {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

header {
    height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: 100%;
    margin: 0;
    border: none;
}

.back-logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    text-decoration: none;
}

.back-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 40px;
    color: #a9a9a9;
    margin: 0;
    font-weight: normal;
    font-family: 'Gloria Hallelujah', cursive;
}

main {
    margin-top: 5px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    justify-content: center;
    width: 60%;
    gap: 15px;
    overflow-y: auto;
    padding: 10px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2f2f2f;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 15%;
    aspect-ratio: 1 / 1.3;
}

.card img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card h2 {
    font-size: 16px;
    margin: 0;
    padding: 0 5px;
    text-align: center;
    color: #d3d3d3;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25%;
    font-weight: normal;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(128, 128, 128, 0.2);
    background: linear-gradient(145deg, #333333, #4a4a4a);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    border-radius: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

.player {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
}

.current-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.current-track img {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #4a4a4a;
    margin-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.current-track h2 {
    font-size: 28px;
    margin: 0;
    text-align: center;
    color: #d3d3d3;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: normal;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.controls button {
    background-color: #4a4a4a;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', 'Open Sans', 'Arial', sans-serif;
    font-weight: normal;
}

.controls button:hover {
    background-color: #666666;
}

#random.random-active {
    background-color: #666666;
    border: 2px solid #a9a9a9;
}

#random.random-active svg {
    stroke: #a9a9a9;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

#play-pause .play-icon {
    display: inline;
}

#play-pause .pause-icon {
    display: none;
}

#play-pause.playing .play-icon {
    display: none;
}

#play-pause.playing .pause-icon {
    display: inline;
}

.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    font-family: 'Roboto', 'Open Sans', 'Arial', sans-serif;
    font-weight: normal;
}

.slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #808080 0%, #4a4a4a 100%);
    border-radius: 5px;
    outline: none;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #a9a9a9;
    border: 2px solid #4a4a4a;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #4a4a4a;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.volume-icon svg {
    width: 18px;
    height: 18px;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #808080 0%, #4a4a4a 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #a9a9a9;
    border: 2px solid #4a4a4a;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #a9a9a9;
    border: 2px solid #4a4a4a;
    border-radius: 50%;
    cursor: pointer;
}

.current-track img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(128, 128, 128, 0.2);
    background: linear-gradient(145deg, #333333, #4a4a4a);
}

.current-track img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    border-radius: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}

.current-track img:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

@media (max-width: 1200px) {
    header {
        height: 110px;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .back-logo {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }

    .site-title {
        font-size: 36px;
    }

    .card-wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .card {
        width: 100%;
        aspect-ratio: 1 / 1.3;
    }

    .card h2 {
        font-size: 14px;
    }

    .player {
        width: 100%;
        padding: 10px;
    }

    .current-track img {
        width: 256px;
        height: 256px;
    }

    .current-track h2 {
        font-size: 24px;
    }

    .controls button {
        padding: 12px 25px;
    }

    .controls .control-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 900px) {
    header {
        height: 105px;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .back-logo {
        width: 65px;
        height: 65px;
        margin-right: 12px;
    }

    .site-title {
        font-size: 34px;
    }

    .card-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .card h2 {
        font-size: 13px;
    }

    .current-track h2 {
        font-size: 22px;
        height: 36px;
    }

    .controls button {
        padding: 10px 20px;
    }

    .controls .control-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    header {
        height: 90px;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .back-logo {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .site-title {
        font-size: 28px;
    }

    main {
        margin-top: 5px;
        flex-direction: column;
        padding: 5px;
    }

    .card-wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .card {
        width: 95%;
        aspect-ratio: 1 / 1.3;
    }

    .card h2 {
        font-size: 12px;
        padding: 3px;
    }

    .player {
        width: 100%;
        padding: 5px;
        margin-bottom: 5px;
    }

    .current-track img {
        width: 200px;
        height: 200px;
    }

    .current-track h2 {
        font-size: 20px;
        height: 32px;
    }

    .controls {
        gap: 8px;
    }

    .controls button {
        padding: 8px 15px;
    }

    .controls .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .slider {
        gap: 6px;
        max-width: 300px;
    }

    .volume-box {
        display: none;
    }
}

@media (max-width: 400px) {
    header {
        height: 85px;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .back-logo {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }

    .site-title {
        font-size: 26px;
    }

    .card-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .card {
        width: 95%;
        aspect-ratio: 1 / 1.3;
    }

    .card h2 {
        font-size: 11px;
    }

    .current-track img {
        width: 180px;
        height: 180px;
    }

    .current-track h2 {
        font-size: 18px;
        height: 30px;
    }

    .controls {
        gap: 6px;
    }

    .controls button {
        padding: 6px 10px;
    }

    .controls .control-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    header {
        height: 95px;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .back-logo {
        width: 55px;
        height: 55px;
        margin-right: 10px;
    }

    .site-title {
        font-size: 28px;
    }

    main {
        display: flex;
        flex-direction: column;
        padding: 5px;
        margin-top: 5px;
        overflow: visible;
    }

    .player {
        width: 100%;
        padding: 5px;
        margin-bottom: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        order: -1;
    }

    .card {
        width: 95%;
        aspect-ratio: 1 / 1.3;
    }

    .card img {
        width: 100%;
        height: 75%;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }

    .card h2 {
        font-size: 12px;
        padding: 3px;
        text-align: center;
    }

    .current-track img {
        width: 200px;
        height: 200px;
    }

    .current-track h2 {
        font-size: 20px;
        height: 32px;
    }

    .controls .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .card-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 5px;
    }
}