/* ============================================================
   COMPOSER AVERY 5.0.1 — homepage.css
   ============================================================ */

/* No scroll on homepage */
body { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,var(--overlay-top))    0%,
        rgba(0,0,0,var(--overlay-bottom)) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center; /* centers player card horizontally */
}

/* ---- Hero text ---- */
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 24px 0;
    width: 100%;
}

.hero-name {
    font-family: var(--font-primary);
    font-size: var(--size-hero-name);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: var(--size-hero-title);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(205,205,205,1.0);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.40px;
    color: rgba(178,178,178, 1.0);
}

/* ============================================================
   PLAYER CARD
   Centered, fixed width, anchored to bottom via flex layout
   ============================================================ */

.player-card {
    width: 100%;
    min-width: 390px;
    max-width: 420px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 25px 15px;
}

/* ---- ROW 1: Cover art + project info ---- */
.player-row1 {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    cursor: pointer;
    gap: 0;
    background: rgba(22,20,18,0.75);
    border-radius: 6px;
    padding: 15px;
}

.player-cover {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /*border: 5px solid rgba(180, 180, 180, 0.12);*/
    border-radius: 12px;
}

.player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2px 0 0 25px;
}

.player-info-status {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1.0);
    line-height: 1;
    margin-bottom: 4px;
}

.player-info-format {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(180, 180, 180, 1.0);
    line-height: 1;
    margin-bottom: 15px;
}

.player-info-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.player-info-subtitle {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: rgba(190, 190, 190, 1.0);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---- ROW 2: Controls ---- */
.player-row2 {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 0;
    background: rgba(22,20,18,0.75);
    border-radius: 6px;
    padding: 15px;
}

/* Left column: track name + meters on row A,
   elapsed + progress + duration on row B */
.player-controls-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Row A: "PREVIEW TRACK: [name]" + meters */
.player-controls-rowa {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.player-track-label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(105,69,46,1);
    white-space: nowrap;
    flex-shrink: 0;
}

.player-track-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(180, 180, 180, 1.0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Equalizer meters */
.player-meters {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    flex-shrink: 0;
}

.meter-bar {
    width: 5px;
    border-radius: 1.5px;
    background: rgba(255,255,255,0.65);
    height: 2px;
}

.player-meters.is-playing .meter-bar:nth-child(1) { animation: meter1 0.9s  ease-in-out infinite alternate; }
.player-meters.is-playing .meter-bar:nth-child(2) { animation: meter2 0.65s ease-in-out infinite alternate 0.1s; }
.player-meters.is-playing .meter-bar:nth-child(3) { animation: meter3 1.1s  ease-in-out infinite alternate 0.2s; }
.player-meters.is-playing .meter-bar:nth-child(4) { animation: meter4 0.8s  ease-in-out infinite alternate 0.05s; }

@keyframes meter1 { 0% { height: 3px; }  50% { height: 11px; } 100% { height: 6px; } }
@keyframes meter2 { 0% { height: 7px; }  50% { height: 3px; }  100% { height: 13px; } }
@keyframes meter3 { 0% { height: 4px; }  50% { height: 14px; } 100% { height: 5px; } }
@keyframes meter4 { 0% { height: 11px; } 50% { height: 3px; }  100% { height: 9px; } }

/* Row B: elapsed | progress bar | duration */
.player-controls-rowb {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-elapsed {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,1.0);
    white-space: nowrap;
    flex-shrink: 0;
}

.player-duration {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    flex-shrink: 0;
}

.player-progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(38,38,38,1.0);
    overflow: hidden;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: rgba(105,69,46,1);
    transition: width 0.25s linear;
}

/* Right column: play/pause + volume buttons */
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.player-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.player-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.player-btn--playpause {
    background: rgba(180,140,90,0.75);
}
.player-btn--playpause:hover {
    background: rgba(180,140,90,1.0);
}

.player-btn--volume {
    background: rgba(180,140,90,0.35);
}
.player-btn--volume:hover {
    background: rgba(180,140,90,0.50);
}

/* ---- ROW 3: Streaming ---- */
.player-streaming {
    padding: 20px 0;
    text-align: center;
}

.streaming-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(128,128,128,1.0);
    margin-bottom: 10px;
}

.streaming-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.streaming-icons img {
    width: 50px;
    height: 50px;
    opacity: 1.0;
    transition: opacity 0.15s ease;
}

.streaming-icons a:hover img {
    opacity: 0.8;
}


/* ============================================================
   DESKTOP
   ============================================================ */
@media screen and (min-width: 769px) {

}
