/* ==========================================================================
   album.css — Album page styles
   Extracted from album.html mockup
   ========================================================================== */

/* ==================== LINK COLORS ==================== */
.album-banner a,
.tracklist a,
.about-section a,
.credits-section a { color: var(--vermillion); }
.album-banner a:hover,
.tracklist a:hover { color: var(--vermillion-dark); }

/* ==================== ALBUM BANNER ==================== */
.album-banner {
    background: linear-gradient(135deg, #0d4f4f 0%, #0a2647 50%, #0f0e17 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.album-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(13, 79, 79, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.album-art {
    width: 250px;
    height: 250px;
    min-width: 250px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946 0%, #d62839 25%, #9b1d2a 50%, #4a0e14 100%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.album-art::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.album-art-label {
    color: rgba(255,255,255,0.35);
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Album meta info */
.album-meta {
    flex: 1;
    color: #fff;
}
.album-meta .album-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}
.album-meta h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.album-meta .artist-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    display: inline-block;
}
.album-meta .artist-link:hover { color: #fff; }

.album-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.album-info-row .info-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.album-info-row svg { width: 16px; height: 16px; opacity: 0.6; }

/* Play button */
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--vermillion);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.play-btn:hover {
    background: var(--vermillion-dark);
    transform: translateY(-1px);
    color: #fff;
}
.play-btn svg { width: 18px; height: 18px; }

/* ==================== TWO-COLUMN PAGE BODY ==================== */
.page-body {
    padding: 2.5rem 0 3rem;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1rem 1rem;
}
.two-col .main-content { min-width: 0; overflow-x: auto; }

/* ==================== TRACKLIST TABLE ==================== */
.tracklist-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.sort-toggle {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-body);
}
.sort-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tracklist {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}
.tracklist-wrap { overflow-x: auto; }
.tracklist thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.tracklist thead th:last-child,
.tracklist thead th.th-duration,
.tracklist thead th.th-views { text-align: right; }
.tracklist thead th.th-num { width: 40px; text-align: center; }

.tracklist tbody tr {
    transition: background 0.15s var(--ease);
    cursor: pointer;
}
.tracklist tbody tr:hover { background: var(--hover-bg); }

.tracklist tbody td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    vertical-align: middle;
}
.tracklist .td-num {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    width: 40px;
}
.tracklist .td-title {
    font-weight: 600;
    color: var(--text-primary);
}
.tracklist .td-title a { color: var(--text-primary); }
.tracklist .td-title a:hover { color: var(--vermillion); }
.tracklist .td-artist { color: var(--text-secondary); }
.tracklist .td-duration,
.tracklist .td-views {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.popular-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--vermillion);
    color: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.fire-icon {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--vermillion);
    vertical-align: middle;
}
.fire-icon svg { width: 14px; height: 14px; }

/* ==================== ABOUT SECTION ==================== */
.about-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.about-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* ==================== CREDITS ==================== */
.credits-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.credit-item {
    font-size: 0.9rem;
}
.credit-item .credit-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.credit-item .credit-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== TRANSLATIONS ==================== */
.translations-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.translation-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.translation-links a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
}
.translation-links a:hover {
    background: var(--hover-bg);
    border-color: var(--vermillion);
    color: var(--vermillion);
}

/* ==================== FAQ / ACCORDION ==================== */
.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ==================== MORE ALBUMS (h-scroll) ==================== */
.albums-scroll-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.albums-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}
.albums-scroll::-webkit-scrollbar { height: 6px; }
.albums-scroll::-webkit-scrollbar-track { background: transparent; }
.albums-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.album-card {
    min-width: 160px;
    flex-shrink: 0;
    text-decoration: none;
}
.album-card-art {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    position: relative;
    overflow: hidden;
}
.album-card-art-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.album-card-art-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.album-card-art-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.album-card-art-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.album-card-art-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.album-card-art-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.album-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-card-artist {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==================== SHARE BUTTONS ==================== */
.share-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.share-btn:hover {
    transform: translateY(-1px);
    border-color: var(--vermillion);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.twitter:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

.copy-toast {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}
.copy-toast.show { display: block; }

/* ==================== SIDEBAR ==================== */
.sidebar { position: relative; }

.info-list {
    list-style: none;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--text-muted); }
.info-list .value { font-weight: 600; color: var(--text-primary); }

.popular-tracks-list {
    list-style: none;
}
.popular-tracks-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
}
.popular-tracks-list li:last-child { border-bottom: none; }
.popular-tracks-list a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}
.popular-tracks-list a:hover { color: var(--vermillion); }
.popular-tracks-list .track-views {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; padding-left: 2rem; padding-right: 2rem; }
    .sidebar { display: none; }
}
@media (max-width: 480px) {
    .two-col { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 768px) {
    .album-meta h1 { font-size: 1.75rem; }
    .banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .album-art {
        width: 200px;
        height: 200px;
        min-width: 200px;
    }
    .album-info-row { justify-content: center; }
    .genre-pills { justify-content: center; }
    .tracklist thead .th-duration,
    .tracklist tbody .td-duration { display: none; }
    .albums-scroll { gap: 1rem; }
    .album-card { min-width: 140px; }
    .album-card-art { width: 140px; height: 140px; }
    .credits-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
    .tracklist thead .th-views,
    .tracklist tbody .td-views { display: none; }
    .album-art { width: 160px; height: 160px; min-width: 160px; }
    .album-meta h1 { font-size: 1.4rem; }
    .tracklist tbody td { padding: 0.65rem 0.5rem; font-size: 0.85rem; }
    .page-body { padding: 1.5rem 0 2rem; }
    .about-section, .credits-section, .translations-section,
    .faq-section, .albums-scroll-section, .share-section { margin-top: 1.75rem; padding-top: 1.5rem; }
}

@media (min-width: 1440px) {
    .album-meta h1 { font-size: 3rem; }
    .two-col { gap: 3rem; }
}

/* ==================== CHART PERFORMANCE & QUICK FACTS ==================== */
.chart-section,
.quick-facts {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.chart-section .section-heading,
.quick-facts .section-heading {
    margin-bottom: 1rem;
}
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}
.chart-peak {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--vermillion);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.chart-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.chart-weeks {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
}
.cert-units { font-weight: 400; font-size: 0.72rem; }

/* ==================== QUICK FACTS ==================== */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.fact-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}
.fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.fact-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
}
.fact-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.fact-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Sort Toggle Button */
.sort-toggle {
    background: transparent;
    color: var(--vermillion, #e63946);
    border: 1px solid var(--vermillion, #e63946);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-body);
}
.sort-toggle:hover {
    background: var(--vermillion, #e63946);
    color: #fff;
}
