/* ============================
   AFTERPM PLAYLIST WIDGET CSS
   ============================ */

.afterpm-widget {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    overflow: visible;
    border: 1px solid rgba(255, 251, 254, 0.3);
    border-radius: 6px;
    color: #ffffff;
    box-sizing: border-box;
    font-family: sans-serif;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 80, 0, 0.25);
    backdrop-filter: blur(6px);
}

.afterpm-widget * {
    box-sizing: border-box;
    font-family: sans-serif;
}

/* HEADER */
.apm-header {
    background: rgba(189, 189, 189, 0.3);
    height: 76px;
    width: 100%;
    display: block;
    padding: 5px;
    line-height: 65px;
    overflow: hidden;
}

.apm-logo {
    float: left;
    height: 76px;
    margin-top: -5px;
    margin-left: -5px;
    box-shadow: black 0 0 3px -1px;
}

.apm-title {
    margin-left: 10px;
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    font-size: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
    max-width: calc(100% - 175px);
}

/* DAY SELECTOR — FLEX, NO WRAP */
.apm-day-selector {
    width: 100%;
    background-color: rgba(143, 150, 143, 0.7);
    height: 35px;
    padding: 0;
    margin: 0;
    user-select: none;
    cursor: pointer;
    border-top: 1px solid rgb(189, 189, 189);

    display: flex;
    flex-direction: row;
}

.apm-day-selector .dow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    color: rgb(254, 255, 248);
    overflow: hidden;
}

.apm-day-selector .dow + .dow {
    border-left: 1px solid rgb(189, 189, 189);
}

.apm-day-selector .dow:hover {
    background-color: rgb(252, 121, 5);
}

.apm-day-selector .dow.active {
    background-color: rgba(189, 189, 189, 0.2);
    color: #ff6600 !important;
    text-shadow: 0 0 6px #ff6600;
}

/* PLAYLIST */
.apm-playlist {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    height: 120px; /* ή όσο θες */
}

.apm-track {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(189, 189, 189, 0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}


/* Neon hover */
.apm-track:hover {
    background-color: rgba(255, 120, 0, 0.15);
    text-shadow: 0 0 6px #ff6600;
}

.apm-track-time {
    color: #f5f5f5;
    opacity: 0.8;
    margin-right: 10px;
    white-space: nowrap;
}

.apm-track-text {
    flex: 1;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Highlight current track */
.apm-track.current {
    background-color: rgba(255, 120, 0, 0.25);
    border-left: 3px solid #ff6600;
    text-shadow: 0 0 6px #ff6600;
}

/* Smooth fade animation όταν αλλάζει η λίστα */
.apm-track.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
