/* ==========================================================================
   TVORBA - DISKOGRAFIE & SKLADBY
   Vzdušný, čistý design bez zbytečných vnořených boxů a rámečků
   ========================================================================== */

/* Úvodní text */
.tvorba-intro {
    max-width: 960px;
    margin: 0 auto 75px auto;
    text-align: center;
}

.tvorba-intro-lead {
    font-size: 28px;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--paragraph-font);
    margin: 0 0 14px 0;
    font-weight: 300;
}

.tvorba-intro-sub {
    font-size: 17px;
    color: #9a9a9a;
    font-family: var(--nav-font);
    letter-spacing: 0.05em;
    margin: 0;
}

/* Seznam alb - otevřené sekce */
.albums-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.album-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: flex-start;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(176, 136, 88, 0.15);
}

.album-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Vizuál alba */
.album-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.album-artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #182836 0%, #0d1620 60%, #060b10 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    box-sizing: border-box;
}

.album-artwork.has-image {
    padding: 0;
}

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

.album-artwork.has-image:hover .album-artwork-img {
    transform: scale(1.04);
}

.album-artwork-vinyl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #111 0px,
        #111 4px,
        #222 5px,
        #141414 6px
    );
    border: 3px solid rgba(176, 136, 88, 0.2);
    opacity: 0.35;
    pointer-events: none;
}

.album-artwork-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(176, 136, 88, 0.5);
}

.album-artwork-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--nav-font);
    color: var(--primary-color);
    font-weight: 700;
}

.album-artwork-icon {
    color: rgba(255, 255, 255, 0.35);
    font-size: 20px;
}

.album-artwork-bottom {
    position: relative;
    z-index: 2;
}

.album-artwork-bottom h4 {
    font-size: 28px;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-family: var(--heading-font);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.album-artwork-bottom span {
    font-size: 13px;
    color: #b08958;
    font-family: var(--nav-font);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.album-tags {
    font-size: 14px;
    color: #888;
    font-family: var(--nav-font);
    text-align: center;
    letter-spacing: 0.03em;
}

/* Informace o albu a skladby */
.album-content {
    display: flex;
    flex-direction: column;
}

.album-header h2 {
    font-size: 46px;
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-family: var(--heading-font);
    letter-spacing: 0.03em;
}

.album-description {
    font-size: 17px;
    line-height: 1.8;
    color: #c5c5c5;
    font-family: var(--paragraph-font);
    margin: 0 0 30px 0;
    text-align: justify;
}

/* Čistý seznam skladeb */
.track-list {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease;
}

.track-item:last-child {
    border-bottom: none;
}

.track-item.is-playing {
    background-color: rgba(176, 136, 88, 0.06);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.track-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-grow: 1;
    min-width: 0;
}

.track-index {
    font-family: var(--heading-font);
    font-size: 22px;
    color: rgba(176, 136, 88, 0.45);
    width: 26px;
    flex-shrink: 0;
}

.track-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

.track-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 12px rgba(176, 136, 88, 0.35);
    transform: scale(1.05);
}

.track-btn.is-playing {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 15px rgba(176, 136, 88, 0.5);
}

.track-btn-pending {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    cursor: default;
}

.track-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
    padding-right: 20px;
}

.track-name {
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-author {
    font-family: var(--paragraph-font);
    font-size: 13px;
    color: #858585;
    margin: 3px 0 0 0;
}

/* Prvky pro přehrávání na řádku */
.track-player-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
    max-width: 280px;
    margin-left: auto;
    margin-right: 15px;
}

.track-progress-track {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.track-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.05s linear;
}

.track-time {
    font-family: var(--nav-font);
    font-size: 12px;
    color: #8e8e8e;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.track-status-pending {
    font-family: var(--nav-font);
    font-size: 13px;
    color: #727272;
    letter-spacing: 0.04em;
    font-style: italic;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 10px;
}

/* Citace na konci */
.quote-section {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(176, 136, 88, 0.18);
}

.quote-icon {
    font-size: 32px;
    color: rgba(176, 136, 88, 0.35);
    margin-bottom: 16px;
}

.quote-text {
    font-family: var(--paragraph-font);
    font-size: 24px;
    font-style: italic;
    color: #e0e0e0;
    max-width: 850px;
    margin: 0 auto 12px auto;
    line-height: 1.6;
}

.quote-author {
    font-family: var(--nav-font);
    font-size: 15px;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Responzivita */
@media (max-width: 1024px) {
    .album-section {
        grid-template-columns: 260px 1fr;
        gap: 40px;
    }
    
    .track-player-bar {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .tvorba-intro-lead {
        font-size: 22px;
    }

    .album-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 50px;
    }

    .album-visual {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }

    .album-header h2 {
        font-size: 36px;
        text-align: center;
    }

    .album-description {
        font-size: 15px;
        text-align: left;
    }

    .track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0;
    }

    .track-left {
        width: 100%;
    }

    .track-player-bar {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 44px;
        box-sizing: border-box;
    }

    .track-status-pending {
        padding-left: 44px;
        margin: 0;
    }
}
