﻿:root {
    --apl-bg: #080b12;
    --apl-bg-secondary: #0d111b;
    --apl-surface: #111722;
    --apl-surface-hover: #171f2d;
    --apl-border: rgba(255, 255, 255, 0.08);
    --apl-text: #f4f7fb;
    --apl-text-secondary: #9ba7b8;
    --apl-text-muted: #687486;
    --apl-accent: #7c5cff;
    --apl-accent-light: #9d86ff;
    --apl-accent-dark: #5c3ee6;
    --apl-cyan: #38d9ff;
    --apl-radius-sm: 8px;
    --apl-radius-md: 12px;
    --apl-radius-lg: 18px;
    --apl-container: 1440px;
    --apl-header-height: 76px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--apl-bg);
    color: var(--apl-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

/* ==============================
   Layout
   ============================== */

.apl-app {
    min-height: 100vh;
    background: radial-gradient( circle at 75% -10%, rgba(124, 92, 255, 0.14), transparent 35% ), radial-gradient( circle at 15% 20%, rgba(56, 217, 255, 0.05), transparent 30% ), var(--apl-bg);
}

.apl-container {
    width: min( calc(100% - 48px), var(--apl-container) );
    margin: 0 auto;
}

/* ==============================
   Header
   ============================== */

.apl-header {
    height: var(--apl-header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--apl-border);
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(18px);
}

.apl-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.apl-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.apl-logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--apl-accent), var(--apl-cyan) );
    color: white;
    font-weight: 800;
}

.apl-logo-text span {
    color: var(--apl-accent-light);
}

.apl-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .apl-nav a {
        padding: 9px 14px;
        color: var(--apl-text-secondary);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .apl-nav a:hover,
        .apl-nav a.active {
            background: rgba(255, 255, 255, 0.06);
            color: white;
        }

.apl-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==============================
   Buttons
   ============================== */

.apl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .apl-btn:hover {
        transform: translateY(-1px);
    }

.apl-btn-primary {
    background: linear-gradient( 135deg, var(--apl-accent), var(--apl-accent-dark) );
    color: white;
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.22);
}

.apl-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--apl-border);
    color: var(--apl-text);
}

    .apl-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.08);
    }

/* ==============================
   Hero
   ============================== */

.apl-hero {
    position: relative;
    padding: 110px 0 100px;
    overflow: hidden;
}

.apl-hero-content {
    max-width: 760px;
}

.apl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--apl-accent-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

    .apl-eyebrow::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--apl-cyan);
        box-shadow: 0 0 15px var(--apl-cyan);
    }

.apl-hero h1 {
    margin: 0;
    font-size: clamp( 48px, 6vw, 82px );
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.apl-gradient-text {
    background: linear-gradient( 100deg, #ffffff 10%, #a58fff 55%, #55ddff 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apl-hero p {
    max-width: 650px;
    margin: 28px 0 34px;
    color: var(--apl-text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.apl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==============================
   Sections
   ============================== */

.apl-section {
    padding: 72px 0;
}

.apl-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

    .apl-section-header h2 {
        margin: 0;
        font-size: 28px;
        letter-spacing: -0.03em;
    }

    .apl-section-header p {
        margin: 7px 0 0;
        color: var(--apl-text-muted);
        font-size: 14px;
    }

/* ==============================
   Cards
   ============================== */

.apl-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
    gap: 18px;
}

.apl-card {
    position: relative;
    overflow: hidden;
    background: var(--apl-surface);
    border: 1px solid var(--apl-border);
    border-radius: var(--apl-radius-md);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

    .apl-card:hover {
        transform: translateY(-4px);
        background: var(--apl-surface-hover);
        border-color: rgba(124, 92, 255, 0.35);
    }

.apl-card-image {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at 30% 20%, rgba(124, 92, 255, 0.35), transparent 45% ), linear-gradient( 135deg, #111827, #080b12 );
}

.apl-card-body {
    padding: 18px;
}

.apl-card-category {
    margin-bottom: 8px;
    color: var(--apl-accent-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.apl-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
}

.apl-card-description {
    margin: 9px 0 0;
    color: var(--apl-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==============================
   Audio Player
   ============================== */

.apl-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.035);
    border-top: 1px solid var(--apl-border);
}

.apl-play {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--apl-accent);
    color: white;
    cursor: pointer;
}

.apl-waveform {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .apl-waveform span {
        flex: 1;
        min-width: 2px;
        border-radius: 3px;
        background: linear-gradient( to top, var(--apl-accent), var(--apl-cyan) );
    }

/* ==============================
   Categories
   ============================== */

.apl-category-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
    gap: 14px;
}

.apl-category {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    border: 1px solid var(--apl-border);
    border-radius: var(--apl-radius-md);
    background: linear-gradient( 135deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.02) );
    transition: 0.25s ease;
}

    .apl-category:hover {
        transform: translateY(-3px);
        border-color: rgba(124, 92, 255, 0.4);
    }

    .apl-category h3 {
        margin: 0;
        font-size: 17px;
    }

    .apl-category span {
        margin-top: 5px;
        color: var(--apl-text-muted);
        font-size: 12px;
    }

/* ==============================
   Footer
   ============================== */

.apl-footer {
    margin-top: 80px;
    border-top: 1px solid var(--apl-border);
    background: #06080d;
}

.apl-footer-inner {
    padding: 48px 0;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.apl-footer p {
    color: var(--apl-text-muted);
    font-size: 13px;
}

.apl-footer-links {
    display: flex;
    gap: 30px;
}

    .apl-footer-links a {
        color: var(--apl-text-muted);
        font-size: 13px;
    }

        .apl-footer-links a:hover {
            color: white;
        }

/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {

    .apl-nav {
        display: none;
    }

    .apl-hero {
        padding: 80px 0;
    }

    .apl-footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .apl-container {
        width: min( calc(100% - 28px), var(--apl-container) );
    }

    .apl-header-actions .apl-btn-secondary {
        display: none;
    }

    .apl-hero h1 {
        font-size: 48px;
    }

    .apl-hero p {
        font-size: 16px;
    }

    .apl-section {
        padding: 52px 0;
    }
}
/* ==============================
   Audio / Video Cards
   ============================== */

.apl-audio-icon {
    font-size: 48px;
    color: var(--apl-accent-light);
    text-shadow: 0 0 30px rgba(124, 92, 255, 0.45);
}

.apl-video-play {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.9);
    color: white;
    font-size: 20px;
    padding-left: 3px;
    box-shadow: 0 10px 35px rgba(124, 92, 255, 0.3);
}

.apl-video-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.apl-card-image {
    position: relative;
}

.apl-audio-duration {
    color: var(--apl-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.apl-player-content {
    flex: 1;
    min-width: 0;
}

.apl-progress {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.apl-progress-fill {
    position: relative;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient( 90deg, var(--apl-accent-dark), var(--apl-accent), var(--apl-cyan) );
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.35), 0 0 18px rgba(56, 217, 255, 0.15);
    transition: width 0.12s linear;
}

    .apl-progress-fill::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.35), 0 0 12px rgba(56, 217, 255, 0.65);
        transform: translate(50%, -50%);
    }

.apl-progress:hover {
    height: 9px;
}

.apl-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 7px;
    color: var(--apl-text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
/* ==============================
   Audio Library Filters
   ============================== */

.apl-audio-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 200px auto;
    gap: 12px;
    margin-bottom: 32px;
}

.apl-search-input,
.apl-category-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--apl-border);
    border-radius: 10px;
    background: var(--apl-surface);
    color: var(--apl-text);
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .apl-search-input::placeholder {
        color: var(--apl-text-muted);
    }

    .apl-search-input:focus,
    .apl-category-select:focus {
        border-color: rgba(124, 92, 255, 0.65);
        background: var(--apl-surface-hover);
        box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
    }

.apl-category-select {
    cursor: pointer;
}

.apl-audio-filters .apl-btn {
    height: 48px;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .apl-audio-filters {
        grid-template-columns: 1fr;
    }

        .apl-audio-filters .apl-btn {
            width: 100%;
        }
}
/* ==============================
   Individual Audio Asset
   ============================== */

.apl-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .apl-card-link:hover {
        color: inherit;
    }

.apl-asset-page {
    max-width: 1200px;
    margin: 0 auto;
}

.apl-asset-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    color: var(--apl-text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

    .apl-asset-back:hover {
        color: white;
    }

.apl-asset-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.apl-asset-main {
    overflow: hidden;
    border: 1px solid var(--apl-border);
    border-radius: var(--apl-radius-lg);
    background: var(--apl-surface);
}

.apl-asset-art {
    min-height: 300px;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at 30% 20%, rgba(124, 92, 255, 0.4), transparent 45% ), radial-gradient( circle at 80% 80%, rgba(56, 217, 255, 0.15), transparent 40% ), linear-gradient( 135deg, #111827, #080b12 );
}

    .apl-asset-art .apl-audio-icon {
        font-size: 90px;
    }

.apl-asset-content {
    padding: 32px;
}

.apl-asset-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.apl-asset-description {
    max-width: 760px;
    margin: 20px 0 28px;
    color: var(--apl-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.apl-asset-player {
    margin-top: 28px;
}

    .apl-asset-player .apl-card {
        margin: 0;
    }

.apl-asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.apl-asset-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apl-asset-panel {
    padding: 22px;
    border: 1px solid var(--apl-border);
    border-radius: var(--apl-radius-md);
    background: var(--apl-surface);
}

.apl-asset-panel-title {
    margin-bottom: 18px;
    color: var(--apl-text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.apl-asset-detail {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--apl-border);
    font-size: 13px;
}

    .apl-asset-detail:first-of-type {
        padding-top: 0;
    }

    .apl-asset-detail:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .apl-asset-detail span {
        color: var(--apl-text-muted);
    }

    .apl-asset-detail strong {
        color: var(--apl-text-secondary);
        text-align: right;
    }

.apl-asset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apl-asset-tag {
    padding: 6px 10px;
    border: 1px solid var(--apl-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--apl-text-secondary);
    font-size: 11px;
}

.apl-empty-state {
    padding: 100px 20px;
    text-align: center;
}

    .apl-empty-state h1 {
        margin: 0;
        font-size: 42px;
        letter-spacing: -0.04em;
    }

    .apl-empty-state p {
        margin: 16px auto 28px;
        max-width: 500px;
        color: var(--apl-text-muted);
    }

@media (max-width: 900px) {

    .apl-asset-layout {
        grid-template-columns: 1fr;
    }

    .apl-asset-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .apl-asset-art {
        min-height: 220px;
    }

    .apl-asset-content {
        padding: 22px;
    }

    .apl-asset-title {
        font-size: 34px;
    }

    .apl-asset-sidebar {
        display: flex;
    }
}