/* Mediolańskie Listy - Styling */
:root {
    --bg-main: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #1c2742;
    --border-color: #23304c;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-yt: #ff0033;
    --accent-spotify: #1db954;
    --accent-other: #3b82f6;
    --accent-gold: #f59e0b;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #23304c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* The Wall Grid */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1400px) {
    .wall-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Card Styling */
.media-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 16px -2px rgba(59, 130, 246, 0.25);
}

.cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #050811;
    overflow: hidden;
}

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

.media-card:hover .cover-img {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 27, 46, 0.95) 0%, rgba(19, 27, 46, 0.2) 60%, rgba(0,0,0,0.5) 100%);
}

.play-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    cursor: pointer;
}

.media-card:hover .play-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.play-hover-btn:hover {
    background: #2563eb;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.badge-youtube {
    background: rgba(255, 0, 51, 0.9);
    color: #fff;
}
.badge-spotify {
    background: rgba(29, 185, 84, 0.9);
    color: #fff;
}
.badge-dailymotion {
    background: rgba(0, 102, 221, 0.9);
    color: #fff;
}
.badge-polskieradio {
    background: rgba(234, 88, 12, 0.9);
    color: #fff;
}
.badge-other {
    background: rgba(100, 116, 139, 0.9);
    color: #fff;
}

/* Bottom Player Dock */
.player-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-dock.hidden-dock {
    transform: translateY(105%);
}

.player-iframe-container {
    width: 100%;
    height: 180px;
    background: #000;
}

@media (min-width: 768px) {
    .player-iframe-container {
        height: 220px;
    }
}

/* Pulse animation */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-loading {
    animation: pulse-subtle 1.5s infinite ease-in-out;
}
