/* =============================================================
   Recently Played Section
   ============================================================= */

#recently-played-container {
    margin-bottom: 8px;
}

.rp-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* ── Header ── */

.rp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.rp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    letter-spacing: 0.02em;
}

.rp-clear-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #64748b;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.6;
}

.rp-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}


/* ── Grid row – 9 cards fill the full width ── */

.rp-row-wrap {
    position: relative;
}

.rp-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 130px));
    gap: 12px;
}


/* ── Card ── */

.rp-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #1e293b;
    padding: 8px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.12);
}

.rp-img-wrap {
    width: 100%;
    height: 82px;
    overflow: hidden;
    border-radius: 7px;
    background: #0f172a;
}

.rp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.rp-card:hover .rp-img-wrap img {
    transform: scale(1.06);
}

.rp-name {
    font-size: 0.73rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s;
}

.rp-card:hover .rp-name {
    color: #e2e8f0;
}


/* ── Mobile ── */

@media (max-width: 768px) {
    .rp-row {
        grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
        gap: 8px;
    }
    .rp-img-wrap {
        height: 64px;
    }
    .rp-name {
        font-size: 0.68rem;
    }
}