* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.grayscale {
    filter: grayscale(0.75);
    transition: filter .6s ease;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0px;
    background: #181818;
    border-bottom: 1px solid #2a2a2a;
}

.hero-content {
    text-align: center;
    flex: 1;
}

.hero-side {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
    width: 110px;
    user-select: none;
    pointer-events: none;
}

.hero-left {
    transform: scaleX(-1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    color: #b3b3b3;
}

#stats {
    margin-top: 20px;
    color: #1DB954;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 25px;
}

.controls input:not([type="checkbox"]),
.controls select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:#222;
    color: #ffffff;
    transition: all 0.3s ease;
}

.controls input:not([type="checkbox"]){
    width: 350px;
}

.checkboxes {
    display: flex;
    align-items: center;
    gap: 20px;
    padding:12px 18px;
    background:#222;
    color:white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius:8px;
}

.checkboxes div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkboxes label {
    cursor: pointer;
}

#viewToggle{
    padding:12px 18px;
    background:#222;
    color:white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius:8px;
    cursor:pointer;
    transition: all 0.3s ease;
}

#viewToggle:hover{
    background:#333;
}

#albumsContainer {
    transition: .3s;
}

#albumsContainer.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px;
}

#albumsContainer.shelf-view {
    display: flex;
    align-items: flex-end;
    overflow-x: hidden;
    gap: 0;
    padding: 50px;
}

.album-card {
    opacity: 0;
    translate: -120px 0;
    animation: shelfIn .45s ease forwards;
    background: var(--album-color);
    border-radius: 12px;
    overflow: hidden;
    transition: .25s;
    cursor: pointer;
}

@keyframes shelfIn {
    0% {
        opacity: 0;
        translate: -120px 0;
    }

    70% {
        opacity: 1;
        translate: 8px 0;
    }

    100% {
        opacity: 1;
        translate: 0 0;
    }
}

.grid-view .album-card {
    width: auto;
}

.grid-view .album-card:hover {
    transform: scale(1.03);
}

.shelf-view .album-card {

    width: 260px;

    flex-shrink: 1;

    margin-left: -170px;

    position: relative;

}

.shelf-view .album-card:first-child {

    margin-left: 0;

}

.shelf-view .album-card:hover,
.shelf-view .album-card.active {
    transform: translateX(-40px) rotate(-5deg);
}

.album-cover {
    width: 100%;
    /*height: 320px;*/

    object-fit: contain;
    object-position: center;

    display: block;
}

.album-info {
    padding: 15px;
}

.shelf-view .album-info {
    display: none;
}

.grid-view .album-info {
    display: block;
}

.album-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.album-artist {
    color: #b3b3b3;
    margin-top: 5px;
}

.album-meta {
    margin-top: 6px;
    color: #9a9a9a;
    font-size: 1rem;
    font-weight: 500;
}

.album-rating{
    display:inline-block;
    margin-top:12px;
    background:gold;
    color:black;
    padding:5px 10px;
    border-radius:20px;
    font-weight:bold;
}

.album-expanded {
    grid-column: 1 / -1;
    background: var(--album-color);
    border-radius: 12px;
    padding: 25px;
}
  
.album-header {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.album-header img {
    width: 250px;
    border-radius: 12px;
}

.album-details {
    max-width: 700px;
}

.album-review {
    margin-top: 15px;
    line-height: 1.6;
}

.album-extra {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.track-list {
    margin-top: 25px;
}

.track {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.track:hover {
    background: rgba(255, 255, 255, 0.06);
}

.track-left {
    display: flex;
    gap: 12px;
}

.track-rating {
    color: gold;
}

.track-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: #181818;
    transition: .3s;
    overflow-y: auto;
    padding: 25px;
    z-index: 100;
    border-left: 1px solid #333;
}

.track-panel.open {
    right: 0;
}

#closePanel {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    float: left;
}

#panelContent {
    margin-top: 35px;
}

#panelContent img {
    width: 75%;
    margin-bottom: 15px;
}

#panelContent h2 {
    margin-bottom: 15px;
}

.panel-section {
    margin-top: 20px;
}

.panel-section h3 {
    margin-bottom: 8px;
    color: #1DB954;
}

.tag {
    display: inline-block;
    background: #333;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 999px;
}

.no-results {
    color: #888;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.favorite-track {
    background: rgba(255, 215, 0, 0.08);
}

.favorite-track:hover {
    background: rgba(255, 215, 0, 0.15);
}

#dragDisc{
    
    position:fixed;

    width:180px;
    height:180px;

    border-radius:50%;

    overflow:hidden;

    pointer-events:none;

    display:none;

    z-index:999999;

    transform:translate(-50%,-50%);
}

#dragDisc img{

  width:100%;
  height:100%;

  object-fit:cover;

  border-radius:50%;
}

#dragDisc::after{

  content:"";

  position:absolute;

  left:50%;
  top:50%;

  width:22px;
  height:22px;

  transform:translate(-50%,-50%);

  border-radius:50%;

  background:#111;

  border:3px solid #666;
}

.music-player{

    width:min(900px,95%);
    margin:50px auto;

    display:flex;
    align-items:center;

    gap:30px;

    padding:35px;

    border-radius:28px;

    background:
        linear-gradient(
            145deg,
            #4a4a4a,
            #1b1b1b
        );

    border:4px solid #666;

    box-shadow:
        inset 0 0 25px #000,
        0 20px 50px rgba(0,0,0,.6);

    position:relative;

}

.player-disc-area{

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;

}


#ejectCD{

    width:80px;
    height:24px;

    background:
        linear-gradient(
            to bottom,
            #777,
            #333
        );

    border:2px solid #888;

    border-radius:4px;

    color:#ddd;

    font-size:.7rem;

    letter-spacing:2px;

    font-weight:bold;

    cursor:pointer;


    box-shadow:

        inset 0 2px 3px rgba(255,255,255,.25),
        inset 0 -3px 5px #111,
        0 3px 5px black;

}


#ejectCD:hover{

    background:
        linear-gradient(
            to bottom,
            #888,
            #444
        );

}


#ejectCD:active{

    transform:translateY(2px);

}

#discSlot{

    width:240px;
    height:240px;

    border-radius:50%;

    border:8px solid #777;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    position:relative;

    background:
        radial-gradient(
            circle,
            #222,
            #080808
        );

    box-shadow:
        inset 0 0 20px black,
        0 5px 10px rgba(0,0,0,.6);

}

#playerDisc{

    width:100%;
    height:100%;

    object-fit:contain;

    display:none;

}

#discPlaceholder{

    position:absolute;

    text-align:center;

    width:80%;

    color:#888;

    font-size:.95rem;

}

.player-right{

    flex:1;

    display:flex;
    flex-direction:column;

    gap:25px;

}

.player-info h2{

    font-family: monospace;

    font-size:1.5rem;

    background:#111;

    padding:12px 18px;

    border-radius:5px;

    border:2px solid #555;

    color:#9cff9c;

}

.player-info p{

    margin-top:8px;

    color:#aaa;

}

.player-controls{

    display:flex;

    justify-content:center;

    gap:30px;

}

.player-controls button{

    width:55px;
    height:45px;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #555,
            #222
        );

    border:2px solid #777;

    color:#ddd;

    font-size:1.2rem;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    box-shadow:
        inset 0 3px 5px rgba(255,255,255,.15),
        inset 0 -5px 8px #111,
        0 3px 5px black;

    transition:.15s;

}

.player-controls button:hover{

    transform:scale(1.08);

}

.player-controls button:active{

    transform:scale(.95);

    box-shadow:
        inset 0 5px 8px #111;

}

.player-progress{

    display:flex;

    align-items:center;

    gap:15px;

    width:100%;

    background:#101010;

    padding:12px 18px;

    border-radius:8px;

    border:2px solid #555;

    box-shadow:
        inset 0 0 8px black;

}


#progressBar{

    flex:1;

    height:8px;

    appearance:none;

    background:#555;

    border-radius:20px;

}


#progressBar::-webkit-slider-thumb {

    appearance:none;

    width:20px;
    height:20px;

    border-radius:50%;

    background:white;

    cursor:pointer;

}

#playerDisc.spinning{

    animation:spin 6s linear infinite;

}

#playerDisc.paused{

    animation-play-state: paused;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

#snow{
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.snowflake{
    position: absolute;
    top: -20px;

    width: 6px;
    height: 6px;

    background: white;
    border-radius: 50%;

    opacity: .8;

    animation: snowfall linear forwards;
}

@keyframes snowfall{

    from{
        transform: translateY(-20px);
    }

    to{
        transform: translateY(110vh);
    }

}