/* Seitenbezogene Styles für seenlive.html (vorher <style>-Block in der Seite). */

#heroCarousel .carousel-item {
    height: 60vh;
    min-height: 400px;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
}

.section-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-gradient-2 {
    background: linear-gradient(135deg, #a8b5ea 0%, #9b8bc2 100%);
    color: white;
}

.section-gradient-3 {
    background: linear-gradient(135deg, #d4dbf5 0%, #c4b8d8 100%);
}

.artist-text {
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}

.artist-text strong {
    font-weight: 700;
}

.album-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    cursor: pointer; /* ganze Karte startet die Hörprobe (assets/js/preview.js) */
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/vinyl.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    z-index: 0;
}

.album-card:hover::before {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
}

.album-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.35);
    z-index: 1;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 40px rgba(102, 126, 234, 0.5),
                 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Raleway', sans-serif;
    letter-spacing: -0.05em;
    /* Gleich hohe Ziffern (Raleway nutzt sonst Mediävalziffern: 3/4/5/7/9 hängen nach unten, 6/8 ragen nach oben) */
    font-variant-numeric: lining-nums tabular-nums;
    /* Button-Reset: Nummer ist antippbar (Hörprobe, assets/js/preview.js);
       padding-right gleicht den negativen Buchstabenabstand nach der letzten Ziffer aus → horizontal mittig */
    background: none;
    border: 0;
    padding: 0 0.05em 0 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Kleines Symbol unter der Nummer: ▶ beim Darüberfahren, ■ während der Hörprobe */
.album-number::after {
    content: "▶";
    position: absolute;
    left: 50%;
    bottom: -0.55em;
    transform: translateX(-50%);
    font-size: 0.22em;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.album-number:hover,
.album-number:focus-visible,
.album-number.is-playing {
    color: rgba(255, 255, 255, 0.85);
    transform: translate(-50%, -50%) scale(1.06);
    outline: none;
}

.album-number:hover::after,
.album-number:focus-visible::after,
.album-number.is-loading::after,
.album-number.is-playing::after {
    opacity: 1;
}

.album-number.is-playing::after {
    content: "■";
}

.album-number.is-loading {
    animation: album-number-pulse 0.8s ease-in-out infinite alternate;
}

.album-number.is-playing {
    animation: album-number-glow 1.2s ease-in-out infinite alternate;
}

@keyframes album-number-pulse {
    from { opacity: 1; }
    to { opacity: 0.45; }
}

@keyframes album-number-glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(102, 126, 234, 0.5), 2px 2px 8px rgba(0, 0, 0, 0.8); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.95), 0 0 60px rgba(236, 72, 153, 0.8), 2px 2px 8px rgba(0, 0, 0, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .album-number.is-loading,
    .album-number.is-playing { animation: none; }
}

/* Statuszeile der Hörprobe (unten mittig) */
.preview-status {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1040;
    max-width: calc(100% - 120px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.92);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
}

.preview-status[hidden] {
    display: none;
}

.preview-volume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.preview-volume[hidden] {
    display: none;
}

.preview-volume input[type="range"] {
    width: 110px;
    accent-color: #d64fcf;
    cursor: pointer;
}

.album-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    opacity: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7),
                0 0 0 4px rgba(220, 53, 69, 0.9),
                0 0 0 7px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.album-card:hover .album-cover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card .card-body {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: transparent;
    border: none;
    padding: 10px 20px;
    width: 80%;
    text-align: center;
    box-shadow: none;
}

.album-card .card-body h5 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #dc3545;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(220, 53, 69, 0.6),
                 0 0 25px rgba(255, 255, 255, 0.4);
    line-height: 1.2;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.album-card .card-body p {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 700;
    color: #ff6b7a;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9),
                 0 0 10px rgba(220, 53, 69, 0.5);
    font-family: 'Raleway', sans-serif;
}

#TopAlbums .col-md-6,
#TopAlbums .col-lg-4 {
    margin-bottom: 40px;
}

/* Hörprobe: ganze Karte antippbar, Zustand auch auf dem Cover sichtbar */
.album-card.is-loading .album-cover,
.album-card.is-playing .album-cover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.album-card .album-cover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65) center / 14px no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.album-card:hover .album-cover::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4 2l10 6-10 6z'/%3e%3c/svg%3e");
}

.album-card.is-loading .album-cover::after,
.album-card.is-playing .album-cover::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M3 3h10v10H3z'/%3e%3c/svg%3e");
}

.album-card.is-playing .album-cover::after {
    background-color: rgba(214, 79, 207, 0.9);
    animation: album-number-pulse 0.8s ease-in-out infinite alternate;
}

.album-card.is-loading .album-cover::after {
    animation: album-number-pulse 0.5s ease-in-out infinite alternate;
}
