@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@400;500&display=swap');

:root {
    --accent: #c8a84b;
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --text: #e8e8e0;
    --text-muted: #a8a89e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5;
    background-image: 
        linear-gradient(rgba(20, 20, 20, 0.6), rgba(13, 13, 13, 0.85)),
        radial-gradient(circle at 50% 20%, rgba(200, 168, 75, 0.03), transparent 70%);
}

.main-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #222;
}

.header-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.25rem;
    margin: 0;
    letter-spacing: 3px;
    color: #e8e8e0;
}

.tagline {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.main-content {
    padding: 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.faction-card {
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faction-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 30px 8px var(--accent);
    border-color: var(--accent);
}

.image-container {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.faction-card:hover img {
    transform: scale(1.07);
}

.card-text {
    padding: 1.25rem;
    text-align: center;
}

.card-text h2 {
    font-family: 'Cinzel', serif;
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #e8e8e0;
}

.subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #222;
}

/* FACTION PAGE STYLES */
.faction-header {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid #222;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.faction-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin: 0 0 0.5rem;
    color: #e8e8e0;
}

.faction-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0;
}

.sigil-container {
    text-align: center;
    margin: 2.5rem 0 3rem;
}

.sigil {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 45px 15px var(--accent);
    transition: box-shadow 0.4s;
}

.track-list {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
}

.track-row:hover {
    background: #252525;
}

.play-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: var(--accent);
    color: #0d0d0d;
    border-radius: 50%;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.track-row:active .play-btn {
    transform: scale(0.92);
}

.track-meta {
    flex: 1;
    min-width: 0;
}

.track-num {
    display: inline-block;
    width: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.seek-slider {
    flex: 1;
    max-width: 320px;
    -webkit-appearance: none;
    height: 5px;
    background: #333;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    cursor: pointer;
}

.time-display {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    width: 92px;
    text-align: right;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .track-row {
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }
    .seek-slider {
        max-width: 180px;
    }
}