/* ═══════════════════════════════════════════════════════════════════════════
   ORLICE - Audiobook Landing Page
   Dieselpunk Military Aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Colors - Dark Military Palette */
    --primary-dark: #0a0e14;
    --secondary-dark: #12171f;
    --tertiary-dark: #1a1f2e;
    --border-dark: #2a3142;

    /* Accent Colors - Rust & Copper */
    --accent-rust: #d4745f;
    --accent-rust-light: #e8927d;
    --accent-rust-dark: #b85a47;
    --accent-copper: #b87458;
    --accent-gold: #c9a227;
    --accent-brass: #b5a642;

    /* Text Colors */
    --text-light: #e8e6e3;
    --text-muted: #9a9a9a;
    --text-dim: #5a5a5a;

    /* Effects */
    --glow-rust: 0 0 20px rgba(212, 116, 95, 0.3);
    --glow-rust-strong: 0 0 40px rgba(212, 116, 95, 0.5);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto Condensed', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-typewriter: 'Special Elite', cursive;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1400px;
    --container-padding: clamp(1rem, 5vw, 3rem);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

::selection {
    background: var(--accent-rust);
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GRAIN & SCANLINE OVERLAYS
   ───────────────────────────────────────────────────────────────────────────── */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-rust);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-rust), transparent);
}

.text-accent {
    color: var(--accent-rust);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--accent-rust);
    color: var(--primary-dark);
    border-color: var(--accent-rust);
}

.btn--primary:hover {
    background: var(--accent-rust-light);
    border-color: var(--accent-rust-light);
    box-shadow: var(--glow-rust);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-dark);
}

.btn--secondary:hover {
    border-color: var(--accent-rust);
    color: var(--accent-rust);
}

.btn--tertiary {
    background: var(--tertiary-dark);
    color: var(--text-light);
    border-color: var(--border-dark);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn--tertiary:hover {
    border-color: var(--accent-rust);
    background: var(--secondary-dark);
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Glitch Effect for Buttons */
.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background:
        linear-gradient(180deg,
            rgba(10, 14, 20, 0.3) 0%,
            rgba(10, 14, 20, 0.6) 50%,
            rgba(10, 14, 20, 0.95) 100%
        ),
        url('../../hero-bg.webp');
    background-size: cover;
    background-position: center top;
    background-color: var(--secondary-dark);
}

@media (max-width: 768px) {
    .hero__bg {
        background-image:
            linear-gradient(180deg,
                rgba(10, 14, 20, 0.4) 0%,
                rgba(10, 14, 20, 0.7) 50%,
                rgba(10, 14, 20, 0.95) 100%
            ),
            url('../../hero-bg-mobile.webp');
    }
}

.hero__vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--primary-dark) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--container-padding);
    max-width: 900px;
}

/* Typewriter Effect */
.hero__badge {
    margin-bottom: 2rem;
}

.typewriter {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    color: var(--accent-rust);
    letter-spacing: 0.3em;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-rust);
    animation: typewriter 3s steps(40) 0.5s forwards, blink 0.75s step-end infinite;
    width: 0;
}

@keyframes typewriter {
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Glitch Title */
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.2em;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow:
        0 0 10px rgba(212, 116, 95, 0.5),
        0 0 20px rgba(212, 116, 95, 0.3),
        0 0 40px rgba(212, 116, 95, 0.1);
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear infinite;
    color: var(--accent-rust);
    z-index: -1;
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear infinite;
    color: #5fe8d4;
    z-index: -2;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

.hero__subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.hero__chapter,
.hero__name {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.hero__divider {
    color: var(--accent-rust);
    font-size: 1.5rem;
}

.hero__tagline {
    font-family: var(--font-typewriter);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    animation: float 2s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-rust), transparent);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Corner Decorations */
.hero__corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-dark);
    pointer-events: none;
}

.hero__corner--tl {
    top: 2rem;
    left: 2rem;
    border-right: none;
    border-bottom: none;
}

.hero__corner--tr {
    top: 2rem;
    right: 2rem;
    border-left: none;
    border-bottom: none;
}

.hero__corner--bl {
    bottom: 2rem;
    left: 2rem;
    border-right: none;
    border-top: none;
}

.hero__corner--br {
    bottom: 2rem;
    right: 2rem;
    border-left: none;
    border-top: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CHARACTERS SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.characters {
    padding: var(--section-padding) var(--container-padding);
    background: var(--secondary-dark);
    position: relative;
    overflow: visible;
}

.characters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.characters__header {
    text-align: center;
    margin-bottom: 4rem;
}

.characters__grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .characters__grid {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }
}

/* Character Card */
.character {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 0 1 400px;
    max-width: 400px;
}

.character--right {
    text-align: right;
}

.character--right .character__info {
    align-items: flex-end;
}

@media (max-width: 900px) {
    .character {
        max-width: 350px;
    }
    .character--right {
        text-align: left;
    }
    .character--right .character__info {
        align-items: flex-start;
    }
}

.character__image-container {
    position: relative;
    aspect-ratio: 3/4;
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    border: 2px solid var(--border-dark);
}

.character--right .character__image-container {
    margin-left: auto;
}

@media (max-width: 900px) {
    .character__image-container {
        margin: 0 auto;
    }
    .character--right .character__image-container {
        margin: 0 auto;
    }
}

.character__image {
    width: 100%;
    height: 100%;
    background: var(--tertiary-dark);
    background-size: cover;
    background-position: center top;
    filter: grayscale(30%) contrast(1.1);
    transition: all var(--transition-slow);
}

.character__image--sandra {
    background-image: url('../../character-1.webp');
    background-size: cover;
    background-position: center top;
}

.character__image--beata {
    background-image: url('../../character-2.webp');
    background-size: cover;
    background-position: center top;
}

.character__image-container:hover .character__image {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.05);
}

.character__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(0deg, var(--secondary-dark), transparent);
    pointer-events: none;
}

.character__rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-rust);
    background: rgba(10, 14, 20, 0.9);
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-dark);
}

.character__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.character__unit {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-rust);
    letter-spacing: 0.2em;
}

.character__rank-label {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.45em;
    color: var(--accent-rust);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.character__name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.1em;
    line-height: 1;
    color: var(--text-light);
}

.character__role {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.character__quote {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    color: var(--accent-rust);
    font-style: normal;
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-rust);
}

.character--right .character__quote {
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 2px solid var(--accent-rust);
}

@media (max-width: 900px) {
    .character--right .character__quote {
        padding-left: 1rem;
        padding-right: 0;
        border-left: 2px solid var(--accent-rust);
        border-right: none;
    }
}

.character__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 350px;
    line-height: 1.7;
}

/* Divider */
.characters__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    flex: 0 0 auto;
    align-self: stretch;
}

.characters__divider-line {
    width: 1px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(180deg, transparent, var(--border-dark), transparent);
}

.characters__divider-icon {
    color: var(--accent-rust);
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .characters__divider {
        flex-direction: row;
        padding: 0;
        width: 100%;
        max-width: 350px;
    }

    .characters__divider-line {
        width: auto;
        flex: 1;
        height: 1px;
        min-height: auto;
        background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.about {
    position: relative;
    padding: var(--section-padding) var(--container-padding);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.about__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(10, 14, 20, 0.92) 0%,
            rgba(10, 14, 20, 0.85) 50%,
            rgba(10, 14, 20, 0.92) 100%
        ),
        url('../../port-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .about__bg {
        background-attachment: scroll;
    }
}

.about__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 116, 95, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(184, 116, 88, 0.03) 0%, transparent 40%);
}

.about__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.about__header {
    margin-bottom: 3rem;
}

.about__text-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__lead {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.1em;
    line-height: 1.3;
    color: var(--text-light);
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about__body strong {
    color: var(--text-light);
    font-weight: 700;
}

.about__highlight {
    font-family: var(--font-typewriter);
    font-size: 1.25rem !important;
    color: var(--accent-rust) !important;
    padding: 1.5rem;
    background: rgba(212, 116, 95, 0.05);
    border-left: 3px solid var(--accent-rust);
}

.about__cliffhanger {
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
    font-style: italic;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dark);
    background: var(--secondary-dark);
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent-rust);
    color: var(--accent-rust);
}

/* ─────────────────────────────────────────────────────────────────────────────
   AUDIO PLAYER SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.player-section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--primary-dark);
    position: relative;
}

.player-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.player-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.audio-player {
    max-width: 700px;
    margin: 0 auto;
    background: var(--secondary-dark);
    border: 2px solid var(--border-dark);
    padding: 2rem;
    position: relative;
}

.audio-player::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent-rust);
}

/* Player Display */
.audio-player__display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.audio-player__info {
    flex: 1;
}

.audio-player__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-rust);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
}

.audio-player__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.audio-player__author {
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Visualizer */
.audio-player__visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.visualizer__bar {
    width: 4px;
    background: var(--accent-rust);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.audio-player.playing .visualizer__bar {
    animation: visualizer 0.5s ease-in-out infinite alternate;
}

.visualizer__bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.visualizer__bar:nth-child(2) { height: 40%; animation-delay: 0.1s; }
.visualizer__bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.visualizer__bar:nth-child(4) { height: 80%; animation-delay: 0.05s; }
.visualizer__bar:nth-child(5) { height: 100%; animation-delay: 0.15s; }
.visualizer__bar:nth-child(6) { height: 70%; animation-delay: 0.25s; }
.visualizer__bar:nth-child(7) { height: 90%; animation-delay: 0.08s; }
.visualizer__bar:nth-child(8) { height: 50%; animation-delay: 0.18s; }
.visualizer__bar:nth-child(9) { height: 75%; animation-delay: 0.12s; }
.visualizer__bar:nth-child(10) { height: 40%; animation-delay: 0.22s; }
.visualizer__bar:nth-child(11) { height: 60%; animation-delay: 0.03s; }
.visualizer__bar:nth-child(12) { height: 30%; animation-delay: 0.13s; }

@keyframes visualizer {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Controls */
.audio-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.audio-player__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.audio-player__btn svg {
    width: 24px;
    height: 24px;
}

.audio-player__btn--play {
    width: 64px;
    height: 64px;
    background: var(--accent-rust);
    border-radius: 50%;
    color: var(--primary-dark);
}

.audio-player__btn--play:hover {
    background: var(--accent-rust-light);
    transform: scale(1.05);
    box-shadow: var(--glow-rust);
}

.audio-player__btn--play svg {
    width: 28px;
    height: 28px;
}

.audio-player__btn--play .icon-pause {
    display: none;
}

.audio-player.playing .audio-player__btn--play .icon-play {
    display: none;
}

.audio-player.playing .audio-player__btn--play .icon-pause {
    display: block;
}

.audio-player__btn--skip {
    width: 40px;
    height: 40px;
    background: var(--tertiary-dark);
    border-radius: 50%;
    color: var(--text-muted);
}

.audio-player__btn--skip:hover {
    background: var(--border-dark);
    color: var(--text-light);
}

/* Progress Bar */
.audio-player__progress {
    margin-bottom: 1.5rem;
}

.audio-player__progress-bar {
    position: relative;
    height: 6px;
    background: var(--tertiary-dark);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.audio-player__progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-rust), var(--accent-copper));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player__progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--accent-rust);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow: var(--glow-rust);
}

.audio-player__progress-bar:hover .audio-player__progress-handle {
    opacity: 1;
}

.audio-player__time {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.audio-player__time-separator {
    color: var(--text-dim);
}

/* Volume */
.audio-player__volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.audio-player__btn--volume {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.audio-player__btn--volume:hover {
    color: var(--text-light);
}

.audio-player__btn--volume .icon-volume-mute {
    display: none;
}

.audio-player.muted .audio-player__btn--volume .icon-volume-high {
    display: none;
}

.audio-player.muted .audio-player__btn--volume .icon-volume-mute {
    display: block;
}

.audio-player__volume-slider {
    flex: 1;
    max-width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--tertiary-dark);
    border-radius: 2px;
    cursor: pointer;
}

.audio-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-rust);
    border-radius: 50%;
    cursor: pointer;
}

.audio-player__volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-rust);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Download */
.audio-player__download {
    display: flex;
    justify-content: center;
}

/* Player Info */
.player-section__info {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.player-section__info kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 0.7rem;
    margin: 0 0.2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DOWNLOAD SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.download {
    padding: var(--section-padding) var(--container-padding);
    background: var(--secondary-dark);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.download__content {
    max-width: 600px;
    margin: 0 auto;
}

.download__header {
    text-align: center;
    margin-bottom: 3rem;
}

.download__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--primary-dark);
    border: 2px solid var(--border-dark);
    position: relative;
}

.download__card::before {
    content: 'PDF';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-rust);
    background: var(--primary-dark);
    padding: 0 0.5rem;
    letter-spacing: 0.1em;
}

.download__card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-dark);
}

.download__card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-rust);
}

.download__card-info {
    flex: 1;
    min-width: 200px;
}

.download__card-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.download__card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.download__specs {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.download__specs li::before {
    content: '›';
    color: var(--accent-rust);
    margin-right: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    padding: 3rem var(--container-padding) 2rem;
    background: var(--primary-dark);
    position: relative;
}

.footer__border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-rust) 20%,
        var(--accent-rust) 80%,
        transparent
    );
}

.footer__content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer__brand {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.footer__year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer__info {
    text-align: center;
}

.footer__author {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer__email {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-rust);
    transition: color var(--transition-fast);
}

.footer__email:hover {
    color: var(--accent-rust-light);
}

.footer__credits {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: right;
}

@media (max-width: 600px) {
    .footer__content {
        flex-direction: column;
        text-align: center;
    }

    .footer__credits {
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS & SCROLL EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .slide-in-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .slide-in-right {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING STATE
   ───────────────────────────────────────────────────────────────────────────── */
.audio-player.loading .audio-player__btn--play {
    pointer-events: none;
    opacity: 0.7;
}

.audio-player.loading .audio-player__btn--play::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__corner {
        display: none;
    }

    .audio-player {
        padding: 1.5rem;
    }

    .audio-player__display {
        flex-direction: column;
        gap: 1.5rem;
    }

    .audio-player__visualizer {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .audio-player__volume-slider {
        display: none;
    }
}
