/* style.css */

/* =========================
   Kolory – do łatwej podmiany
   ========================= */
:root {
    --lp-color-deep: #3B0270;
    --lp-color-primary: #6F00FF;
    --lp-color-accent: #E9B3FB;
    --lp-color-soft: #FFF1F1;

    --lp-color-bg: #f7f4fb;
    --lp-color-dark: #1f102c;
    --lp-color-muted: #7a6c8a;
    --lp-color-border: #e3d7f3;
}

.color-deep {
	color: var(--lp-color-deep);
}

.color-primary {
	color: var(--lp-color-primary);
}

.color-white {
	color: #fff;
}

.smaller {
	font-size: smaller;
}

body.lp-body {
    background: var(--lp-color-bg);
    color: var(--lp-color-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Navbar
   ========================= */
.lp-navbar {
    background: linear-gradient(90deg, var(--lp-color-deep), var(--lp-color-dark));
    color: #fff;
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    vertical-align: middle;
    display: inline-block;
}

.lp-logo-dot {
    color: var(--lp-color-accent);
}

.lp-navbar .nav-link {
    font-size: 0.95rem;
    opacity: 0.9;
}

.lp-navbar .nav-link.active,
.lp-navbar .nav-link:hover {
    opacity: 1;
}

/* =========================
   Hero
   ========================= */
.lp-main {
    padding-top: 0;
}

/* ORYGINAŁ – HOMEPAGE */
.lp-hero {
    background: radial-gradient(circle at top left, rgba(233, 179, 251, 0.35), transparent 60%),
                radial-gradient(circle at bottom right, rgba(111, 0, 255, 0.2), transparent 55%),
                var(--lp-color-deep);
    color: #fff;
}

/* NOTOWANIE – zielony premium + turkus */
.lp-hero-notowanie {
    background: radial-gradient(circle at top left, rgba(0, 201, 167, 0.35), transparent 60%),
                radial-gradient(circle at bottom right, rgba(0, 129, 112, 0.25), transparent 55%),
                #014034; /* ciemna zieleń premium */
    color: #fff;
}

/* ARTYSTA – rubin + malinowy fuksja */
.lp-hero-artysta {
    background: radial-gradient(circle at top left, rgba(255, 72, 127, 0.40), transparent 60%),
                radial-gradient(circle at bottom right, rgba(200, 0, 85, 0.25), transparent 55%),
                #4A001D; /* głęboki rubin */
    color: #fff;
}

/* PIOSENKA – pomarańcz + złoto, żywy vibe */
.lp-hero-piosenka {
    background: radial-gradient(circle at top left, rgba(255, 150, 0, 0.38), transparent 60%),
                radial-gradient(circle at bottom right, rgba(255, 94, 0, 0.25), transparent 55%),
                #4A2300; /* gorzka ciemna pomarańcz / brąz premium */
    color: #fff;
}

/* REKORDY – szafirowy + elektryczny błękit */
.lp-hero-rekordy {
    background: radial-gradient(circle at top left, rgba(56, 132, 255, 0.40), transparent 60%),
                radial-gradient(circle at bottom right, rgba(0, 78, 179, 0.25), transparent 55%),
                #001C3A; /* ciemny szafir */
    color: #fff;
}

/* ABOUT – eleganckie, stonowane odcienie szarości */
.lp-hero-about {
    background: radial-gradient(circle at top left, rgba(200, 200, 200, 0.35), transparent 60%),
                radial-gradient(circle at bottom right, rgba(120, 120, 120, 0.25), transparent 55%),
                #1A1A1A; /* głęboki grafit premium */
    color: #fff;
}

/* KONTAKT – jasny, przyjazny, neutralny */
.lp-hero-kontakt {
    background: radial-gradient(circle at top left, rgba(155, 155, 155, 0.85), transparent 65%),
                radial-gradient(circle at bottom right, rgba(230, 230, 230, 0.65), transparent 60%),
                #f5f5f5; /* bardzo jasny ciepły szary */
    color: #1a1a1a!important; /* ciemna szarość dla lepszej czytelności */
}


.lp-hero-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
}

.lp-hero-subtitle {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
}

.lp-hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.lp-hero-image {
    border-radius: 1.25rem;
	aspect-ratio: 16/9;
}

.lp-lyrics-card {
    background: #ffffff;
    border: 1px solid var(--lp-color-border);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.lp-lyrics-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lp-color-dark);
}

/* IMAGE placeholder */
.image-placeholder {
    background: rgba(233, 179, 251, 0.3);
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.6);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.image-placeholder-sm {
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    font-size: 0.65rem;
    border-radius: 0.75rem;
}

.image-placeholder-artist {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* lub 4/3, jeśli wolisz bardziej kwadratowe */
    overflow: hidden;
    border-radius: 1rem 1rem 0rem 0rem;
}

.image-placeholder-artist img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Najważniejsze — przycinanie do kontenera */
    object-position: center;
    display: block;
}

.image-placeholder-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* lub 4/3, jeśli wolisz bardziej kwadratowe */
    overflow: hidden;
    border-radius: 1rem;
}

.image-placeholder-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Najważniejsze — przycinanie do kontenera */
    object-position: center;
    display: block;
}

/* Obrazek artysty ma być ładnie przycięty */
.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.default-link {
	cursor: pointer;
	text-decoration: none;
}

.default-link:hover {
	text-decoration: underline;
}

/* Overlay w prawym dolnym rogu */
.artist-photo-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.65rem;
    line-height: 1.1;
    max-width: 70%;
    text-align: right;
}

/* Jedna linia overlay */
.overlay-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* link licencji */
.overlay-link {
    color: #fff;
    text-decoration: underline;
    opacity: 0.9;
}

.overlay-link:hover {
    opacity: 1;
}

/* =========================
   Sparkline
   ========================= */
.sparkline-wrapper {
	width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px; /* żeby scroll nie nachodził na słupki */
	display: block;
}

.sparkline-wrapper::-webkit-scrollbar {
    height: 8px;
}

.sparkline-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sparkline-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
}
   
.lp-sparkline {
    display: inline-flex;
    align-items: flex-end;
    gap: 0px;
    height: 65px;
    margin-top: 1rem;
	white-space: nowrap;
	overflow: visible;
	perspective: 1000px;
}

.lp-spark-bar {
    width: 15px; /* możesz zmienić na 2px */
    background: var(--lp-color-bg);
    border-radius: 0;
	position: relative;
	/* animacja wyrastania */
    height: 0;
    animation: growBarBouncy 0.7s cubic-bezier(.34,1.56,.64,1) forwards;
	animation-delay: calc(var(--i) * 20ms);
}

.lp-spark-label{
	position: absolute;
	top: -12px; /* odsunięcie pod słupek */
	left: 50%;
	transform: translateX(-50%);
  
	font-size: 10px;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
}

@keyframes growBarBouncy {
    0%   { height: 0; }
    80%  { height: calc(var(--final-height) + 6px); } /* overshoot */
    100% { height: var(--final-height); }
}

.winner {
    background: #f0d6ff;
}

.winner-text {
    color: #f0d6ff;
}

.top3 {
    background: #f5e7ff;
}

.top3-text {
    color: #f5e7ff;
}

.top10 {
    background: #f7f0ff;
}

.top10-text {
    color: #f7f0ff;
}

.lp-spark-bar:hover {
    background: var(--lp-color-accent);
    transform: scaleY(1.1);
    transition: transform 0.1s ease, background 0.1s ease;
}

.lp-spark-place {
	font-size: 10px;
}

.lp-spark-bar::after {
    content: attr(data-title);
    position: absolute;
    top: -35px;
    left: 0;
    font-size: 12px;
    color: var(--lp-color-accent);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
	white-space: nowrap;
}

.lp-spark-bar:hover::after {
    opacity: 1;
}

/* =========================
   Przyciski
   ========================= */
.lp-btn-primary {
    background: var(--lp-color-primary);
    border-color: var(--lp-color-primary);
    color: #fff;
    font-weight: 500;
    border-radius: 999px;
    padding-inline: 1.4rem;
}

.lp-btn-primary:hover {
    background: #5b00d9;
    border-color: #5b00d9;
}

.lp-btn-outline {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

.lp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* =========================
   Karty statystyk w hero
   ========================= */
.lp-stat-card {
    background: rgba(15, 5, 35, 0.55);
    border-radius: 0.9rem;
    padding: 0.8rem 0.7rem;
    color: #fff;
}

.lp-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.8;
}

.lp-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.lp-stat-extra {
    opacity: 0.9;
}

.lp-stat-card-link {
	color: inherit;
}

/* =========================
   Sekcje ogólne
   ========================= */
.lp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-color-deep);
}

.lp-section-border {
    border-bottom: 1px solid var(--lp-color-border);
}

.lp-section-border-top {
    border-top: 1px solid var(--lp-color-border);
}

/* =========================
   Top 5 tabela
   ========================= */
.lp-table thead {
    background: var(--lp-color-soft);
}

.lp-table th {
    border-bottom-width: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-color-muted);
}

.lp-table td {
    vertical-align: middle;
}

.lp-badge-position {
    background: var(--lp-color-accent);
    color: var(--lp-color-deep);
    border-radius: 999px;
    min-width: 3rem;
	max-width: 3rem;
    text-align: center;
}

.lp-badge-position-circle {
	background: var(--lp-color-accent);
    color: var(--lp-color-deep);
    border-radius: 999px;
    min-width: 1rem;
    text-align: center;
}

.lp-flaga{
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-flaga .fi {
    transform: scale(1.6); /* powiększenie flagi */
    transform-origin: center;
}

.lp-flaga-medium{
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-flaga-medium .fi {
    transform: scale(1.6); /* powiększenie flagi */
    transform-origin: center;
}

.lp-ikona {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #fff; /* zmienia kolor ikony */
}

.lp-ikona svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lp-k {
  color: #ff4fa7; /* piękny, nasycony róż */
}

.lp-m {
  color: #3ba8ff; /* elegancki, nowoczesny niebieski */
}

/* Zmiany pozycji */
.lp-change-badge {
    display: inline-flex;
	min-width: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lp-change-badge.up {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.lp-change-badge.down {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.lp-change-badge.same {
    background: rgba(127, 140, 141, 0.15);
    color: #7f8c8d;
}

.lp-change-badge.new {
    background: rgba(111, 0, 255, 0.15);
    color: var(--lp-color-primary);
}

.lp-change-badge.all {
	background: rgba(255, 255, 255, 0.85);
    color: #7f8c8d;
}

.lp-filter-bar .lp-filter {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    text-align: center;
    flex: 1; /* każdy badge ma dostać 20% szerokości */
    padding: 6px 0;
}

.lp-filter.active {
    outline: 1px solid var(--lp-color-muted); /* albo inny kolor wskazujący aktywny filtr */
}

.lp-mobile-card {
    background: #fff;
    border: 1px solid var(--lp-color-border);
    border-radius: 10px;
    padding: 14px 16px;
}

.lp-mobile-title {
    font-size: 16px;
    line-height: 1.3;
    color: var(--lp-color-dark);
}

.lp-mobile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.lp-mobile-stat .label {
    font-size: 11px;
    color: var(--lp-color-muted);
}

.lp-mobile-stat .value {
    font-size: 14px;
    color: var(--lp-color-dark);
    font-weight: 600;
}


/* Ikony linków (SP/YT/TX) */
.lp-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--lp-color-primary);   /* Twój główny kolor */
}

.lp-icon.disabled {
    opacity: 0.25;
    filter: grayscale(100%);
}

.lp-icon-hero {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--lp-color-bg);   /* Twój główny kolor */
}

.lp-icon-hero.disabled {
    opacity: 0.25;
    filter: grayscale(100%);
}

.lp-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--lp-color-border);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-color-deep);
    background: #fff;
}

/* =========================
   Linki tekstowe
   ========================= */
.lp-link-small {
    font-size: 0.85rem;
    color: var(--lp-color-primary);
    text-decoration: none;
}

.lp-link-small:hover {
    text-decoration: underline;
}

/* =========================
   Wyszukiwarka globalna
   ========================= */
.lp-search-section {
    background: var(--lp-color-soft);
}

.lp-search-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(59, 2, 112, 0.08);
}

.form-control::placeholder {
	font-size: 0.8rem;
}

.lp-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--lp-color-border);
    border-radius: 8px;
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px 0;
	color: black!important;
}

.lp-suggest-group-title {
    font-size: 12px;
    padding: 6px 12px;
    color: var(--lp-color-muted);
    text-transform: uppercase;
}

.lp-suggest-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
}

.lp-suggest-item:hover {
    background: var(--lp-color-bg);
}

#search-suggestions {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none; 
}

#search-suggestions.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================
   Karty
   ========================= */
.lp-card {
    border-radius: 1.1rem;
    border: 1px solid var(--lp-color-border);
    box-shadow: 0 6px 18px rgba(59, 2, 112, 0.05);
}

/* =========================
   Lista – nowo dodane piosenki
   ========================= */
.lp-list-group .list-group-item {
    border-color: var(--lp-color-border);
}

.lp-badge-new {
    background: var(--lp-color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* =========================
   Bloki statystyk
   ========================= */
.lp-stat-block {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--lp-color-border);
    box-shadow: 0 6px 18px rgba(59, 2, 112, 0.04);
}

/* Pigułki (PL vs zagraniczne) */
.lp-pill {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.lp-pill-pl {
    background: rgba(111, 0, 255, 0.09);
    color: var(--lp-color-primary);
}

.lp-pill-foreign {
    background: rgba(233, 179, 251, 0.25);
    color: var(--lp-color-deep);
}

/* =========================
   Stopka
   ========================= */
.lp-footer {
    background: #fff;
    border-top: 1px solid var(--lp-color-border);
    font-size: 0.9rem;
}

.lp-footer-link {
    color: var(--lp-color-deep);
    text-decoration: none;
}

.lp-footer-link:hover {
    text-decoration: underline;
}

/* =========================
   Responsywne poprawki
   ========================= */
@media (max-width: 767px) {
    .lp-table-mobile {
        display: none !important;
    }
	
	.lp-hero-image {
		/* display: none; */
	}
	
    .lp-hero-title {
        font-size: 1.6rem;
    }

    .image-placeholder {
        min-height: 140px;
    }
	/* Ukrywamy całą tabelę */
    .lp-table-desktop {
        display: none !important;
    }

    .lp-table-mobile {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 0.75rem;
        background: rgba(255,255,255,0.4);
        backdrop-filter: blur(4px);
    }
	
	.lp-table thead tr {
		display: none;
	}

    .lp-mobile-pos {
        font-weight: 700;
        font-size: 1.2rem;
        background: var(--lp-color-accent);
        padding: 0.25rem 0.75rem;
        border-radius: 999px;
        color: #fff;
        display: inline-block;
    }

    .lp-mobile-title {
        font-weight: 600;
        font-size: 1.05rem;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .lp-mobile-artist {
        font-size: 0.85rem;
        opacity: 0.8;
        margin-bottom: 0.75rem;
    }

    .lp-mobile-change {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .lp-mobile-links {
        display: flex;
        gap: 0.6rem;
        margin-top: 0.25rem;
        flex-wrap: wrap;
    }

    .lp-mobile-links .lp-icon {
        width: 1.8rem;
        height: 1.8rem;
    }
	.lp-stat-mobile {
        text-align: left !important;
        padding: 0.75rem 1rem;
    }

    /* Wiersz 1 – label + liczba */
    .lp-stat-mobile .lp-stat-row1 {
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.35rem;
    }

    .lp-stat-mobile .lp-stat-label {
        margin-right: 0.5rem;
		align-content: center;
    }

    /* Wiersz 2 – tytuł + artysta */
    .lp-stat-mobile .lp-stat-row2 {
        font-size: 0.9rem;
        opacity: 0.9;
        flex-direction: column;
        line-height: 1.25;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
    }
}


/* Kolumna flag */
.table-col-flag {
    width: 50px;
    text-align: center;
}

/* Kolumny liczbowe */
.table-col-num {
    width: 90px;
    text-align: right;
}

/* Ujednolicony styl tabeli */
.table-custom tbody tr:nth-child(even) {
    background-color: #f6f8fa;
}

.table-custom tbody tr:hover {
    background-color: #e8edf3;
}

/* Nagłówki klikane */
.table-custom th.sortable {
    cursor: pointer;
    white-space: nowrap;
}

/* Zmiana koloru headera */
.table-custom thead {
    background-color: #ffffff;
    border-bottom: 2px solid #ddd;
}


/* PLAYER */
#echoplayer.ep-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex; align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: #05050a;
    color: #f5f5f5;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    box-shadow: 0 -4px 18px rgba(0,0,0,.55);
}

.ep-left { flex: 0 0 auto; }
.ep-yt-wrapper {
    position: relative;
    width: 220px;
    aspect-ratio: 16 / 9; /* <-- nowoczesny, prosty i bezbłędny */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #000;
}

#ep-yt-player {
    width: 100% !important;
    height: 100% !important;
}


#ep-yt-player iframe,
.ep-iframe-container iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    inset: 0;
    object-fit: cover;
    border: 0;
}

.ep-right {
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    min-width: 0;
}

.ep-main-row {
    display: flex; align-items: center;
	justify-content: center;
    gap: 8px;
	width: 100%;
}

/* Buttons */
.ep-btn {
    border: none; border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    min-width: 32px;
    cursor: pointer; transition: .15s;
}
.ep-btn:hover:not(:disabled){
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
}
.ep-btn:disabled { opacity: .4; }

/* Select-button */
.ep-select-button {
	color: #fff;
    flex: 1;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
}
.ep-select-button:hover { background: rgba(255,255,255,.16); }

/* Modal */
.ep-playlist-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 99999;
}
.ep-playlist-backdrop.ep-show { display: flex; }

.ep-playlist-modal {
    width: 100%; max-width: 480px;
    height: 70vh;
    margin: 0 12px 14px;
    background: #111;
    border-radius: 18px 18px 12px 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.12);
    color: #f5f5f5;
    overflow: hidden;
    animation: ep-slide-up .22s ease-out;
}

.ep-playlist-header {
    padding: 10px 14px;
    display: flex; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .9rem;
    text-transform: uppercase;
}

.ep-close {
    background: none; border: none;
    color: #aaa; font-size: 1.4rem;
    cursor: pointer;
}
.ep-close:hover { color: #fff; }

.ep-playlist-list {
    margin: 0; padding: 0;
    list-style: none;
    overflow-y: auto;
    height: calc(70vh - 48px);
}

.ep-playlist-item {
    width: 100%;
    padding: 10px 16px;
    background: none;
    color: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
}
.ep-playlist-item:hover {
    background: rgba(255,255,255,.10);
}

@keyframes ep-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .ep-yt-wrapper {
        width: 160px;
        aspect-ratio: 16 / 9;
    }
}