/* =========================================================
   MP3SKULL - STYLE.CSS
   CLEAN BASELINE
   ========================================================= */

:root {
    --sea-green: #20b486;
    --sea-green-dark: #12815f;
    --sea-green-light: #e9f9f3;

    --purple: #8b5cf6;
    --purple-dark: #6d28d9;
    --purple-light: #a78bfa;
    --purple-soft: #f3eefe;

    --background: #fff;
    --surface: #fff;
    --surface-soft: #f8fafc;

    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;

    --radius: 14px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   HEADER
   ========================================================= */

header,
.site-header,
.main-header {
    position: relative;
    z-index: 200;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid var(--purple);
}

.header-inner,
.site-header-inner,
.nav-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo,
.site-logo-text,
.brand-logo {
    display: inline-flex;
    align-items: center;
    color: var(--purple);
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.logo a,
.site-logo-text a,
.brand-logo a {
    color: var(--purple);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

nav,
.site-nav,
.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

nav a,
.site-nav a,
.main-nav a {
    min-height: 36px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

nav a:hover,
.site-nav a:hover,
.main-nav a:hover {
    color: var(--purple);
    background: var(--purple-soft);
    border-color: #ddd6fe;
    transform: translateY(-1px);
}

nav a.active,
.site-nav a.active,
.main-nav a.active {
    color: #fff;
    background: var(--purple);
    border-color: var(--purple);
}

/* =========================================================
   WRAPPER
   ========================================================= */

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 60px 0 48px;
    background: linear-gradient(180deg, #faf8ff 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 14px;
    color: var(--purple-dark);
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.hero-text {
    max-width: 680px;
    margin: 0 auto 24px;
    color: var(--text-light);
    font-size: 17px;
}

/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    width: min(850px, 100%);
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 46px;
    border: 2px solid var(--border);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 16px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.search-input-wrap input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .10);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    color: var(--purple);
    font-size: 23px;
    transform: translateY(-50%);
}

.clear-btn {
    position: absolute;
    right: 9px;
    top: 50%;
    z-index: 5;
    display: none;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 19px;
    transform: translateY(-50%);
}

.clear-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    color: var(--purple);
}

.search-btn {
    height: 54px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background .2s ease,
        transform .2s ease;
}

.search-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.search-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   AUTOCOMPLETE
   ========================================================= */

.suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    text-align: left;
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    width: 100%;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.suggestion-icon {
    width: 20px;
    min-width: 20px;
    color: var(--purple);
    font-size: 18px;
    text-align: center;
}

/* =========================================================
   QUICK SEARCH
   ========================================================= */

.quick-searches {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--text-light);
    font-size: 14px;
}

.quick-searches a {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-weight: 600;
}

.quick-searches a:hover {
    background: #e9ddff;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content-section {
    padding: 45px 0;
}

.section-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2 {
    margin: 0;
    color: var(--purple-dark);
    font-size: 27px;
}

.search-query {
    color: var(--purple);
}

.result-count {
    color: var(--text-light);
    font-size: 14px;
}

.text-link {
    color: var(--purple-dark);
    font-weight: 700;
}

.text-link:hover {
    color: var(--purple);
}

/* =========================================================
   NOTICE
   ========================================================= */

.notice {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 11px;
}

.notice.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 40px 20px;
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.empty-state span {
    color: var(--text-light);
}

/* =========================================================
   RESULTS GRID
   ========================================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* =========================================================
   RESULT CARD
   ========================================================= */

.result-card {
    padding: 16px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--purple);
    border-radius: 15px;
    box-shadow: 0 7px 22px rgba(139, 92, 246, .09);
}

/* =========================================================
   RESULT TITLE
   ========================================================= */

.result-title h3 {
    margin: 0;
    color: var(--purple-dark);
    font-size: 17px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   RESULT SEPARATOR
   ========================================================= */

.result-separator {
    width: calc(100% + 32px);
    height: 2px;
    margin: 14px -16px;
    padding: 0;
    background: var(--purple);
    border: 0;
}

/* =========================================================
   THUMBNAIL
   ========================================================= */

.result-media {
    position: relative;
    width: calc(100% + 24px);
    margin: 0 -12px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 11px;
    background: #f1f5f9;
}

.result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-number {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   PLAY RESULT BUTTON
   ========================================================= */

.play-result {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    background: var(--purple);
    color: #fff;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    transition:
        background .2s ease,
        transform .2s ease;
}

.play-result:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.play-result:active {
    transform: translateY(0);
}

.play-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transform: translateX(-3px);
}

.play-text {
    height: 18px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 18px;
    transform: translateX(-3px);
}

/* =========================================================
   RESULT PLAYER
   ========================================================= */

.result-player {
    width: 100%;
    margin-top: 12px;
}

.result-player[hidden] {
    display: none !important;
}

/* =========================================================
   HIDDEN YOUTUBE
   ========================================================= */

.mp3-player-youtube,
.youtube-hidden-player {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.mp3-player-youtube iframe,
.youtube-hidden-player iframe {
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
}

/* =========================================================
   CUSTOM MP3 PLAYER
   CLEAN DYNAMIC PURPLE VERSION
   ========================================================= */

.mp3-player-custom {
    position: relative;
    width: 100%;
    height: 62px;
    margin-top: 12px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #fff 0%,
        #faf7ff 50%,
        #f3eefe 100%
    );
    border: 2px solid var(--purple);
    border-radius: 14px;
    box-shadow:
        0 5px 17px rgba(139, 92, 246, .14),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.mp3-player-custom::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -75px;
    top: -55px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, .17) 0%,
        rgba(139, 92, 246, 0) 70%
    );
    pointer-events: none;
    animation: mp3Glow 4s ease-in-out infinite;
}

@keyframes mp3Glow {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(150px);
    }
}

.mp3-player-custom:hover {
    border-color: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, .22),
        0 0 0 3px rgba(139, 92, 246, .05);
}

.mp3-player-custom.is-playing {
    border-color: #7c3aed;
    box-shadow:
        0 7px 25px rgba(139, 92, 246, .21),
        0 0 0 3px rgba(139, 92, 246, .05);
}

/* =========================================================
   PLAYER CONTROLS
   ========================================================= */

.mp3-player-custom .mp3-controls {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
}

/* =========================================================
   PLAYER PLAY BUTTON
   ========================================================= */

.mp3-player-custom .mp3-play {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #a78bfa,
        #8b5cf6,
        #6d28d9
    );
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 13px rgba(139, 92, 246, .36);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.mp3-player-custom .mp3-play::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    pointer-events: none;
}

.mp3-player-custom .mp3-play:hover {
    background: linear-gradient(
        135deg,
        #b79cff,
        #8b5cf6,
        #5b21b6
    );
    transform: scale(1.07);
    box-shadow: 0 7px 19px rgba(109, 40, 217, .42);
}

.mp3-player-custom .mp3-play:active {
    transform: scale(.94);
}

/* =========================================================
   PLAYING BUTTON
   ========================================================= */

.mp3-player-custom.is-playing .mp3-play {
    animation: mp3PlayPulse 1.6s ease-in-out infinite;
}

@keyframes mp3PlayPulse {
    0%,
    100% {
        box-shadow: 0 4px 13px rgba(139, 92, 246, .36);
    }

    50% {
        box-shadow:
            0 5px 22px rgba(139, 92, 246, .62),
            0 0 16px rgba(139, 92, 246, .20);
    }
}

/* =========================================================
   PLAYER TIME
   ========================================================= */

.mp3-player-custom .mp3-time,
.mp3-player-custom .mp3-current-time,
.mp3-player-custom .mp3-current,
.mp3-player-custom .mp3-duration {
    min-width: 36px;
    color: #4c1d95;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   PLAYER PROGRESS
   ========================================================= */

.mp3-player-custom .mp3-progress {
    flex: 1;
    width: 100%;
    min-width: 55px;
    height: 6px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: #ddd6fe;
    outline: none;
    cursor: pointer;
}

.mp3-player-custom .mp3-progress::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #8b5cf6,
        #c4b5fd
    );
}

.mp3-player-custom .mp3-progress::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 2px 7px rgba(109, 40, 217, .35);
}

.mp3-player-custom .mp3-progress::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.mp3-player-custom .mp3-progress::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #ddd6fe;
}

.mp3-player-custom .mp3-progress::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: #8b5cf6;
}

.mp3-player-custom .mp3-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 2px 7px rgba(109, 40, 217, .35);
}

/* =========================================================
   PLAYER MUTE
   ========================================================= */

.mp3-player-custom .mp3-mute {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    background: #f3eefe;
    color: #6d28d9;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.mp3-player-custom .mp3-mute:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
    transform: scale(1.05);
}

.mp3-player-custom .mp3-mute:active {
    transform: scale(.94);
}

/* =========================================================
   PLAYER VOLUME
   ========================================================= */

.mp3-player-custom .mp3-volume-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mp3-player-custom .mp3-volume-icon {
    width: 17px;
    min-width: 17px;
    color: var(--purple);
    font-size: 14px;
    text-align: center;
}

.mp3-player-custom .mp3-volume {
    width: 55px;
    min-width: 40px;
    max-width: 60px;
    height: 5px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: #ddd6fe;
    outline: none;
    cursor: pointer;
}

.mp3-player-custom .mp3-volume::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: #ddd6fe;
}

.mp3-player-custom .mp3-volume::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -3.5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 2px 6px rgba(109, 40, 217, .25);
}

.mp3-player-custom .mp3-volume::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: #ddd6fe;
}

.mp3-player-custom .mp3-volume::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: #8b5cf6;
}

.mp3-player-custom .mp3-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8b5cf6;
}

/* =========================================================
   RESULT DETAILS
   ========================================================= */

.result-details {
    width: 100%;
    margin-top: 3px;
}

.detail-row {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    background: #fff;
    border-bottom: 2px solid var(--purple);
    font-size: 13px;
}

.detail-row strong {
    color: var(--purple-dark);
}

.detail-row span {
    color: var(--purple);
}

.detail-description {
    display: block;
}

.detail-description strong {
    display: block;
    margin-bottom: 4px;
    color: var(--purple-dark);
}

.detail-description p {
    margin: 0;
    color: var(--purple);
    font-size: 13px;
}

.detail-tags {
    display: block;
    border-bottom: 0;
}

.detail-tags strong {
    display: block;
    margin-bottom: 7px;
    color: var(--purple-dark);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 11px;
}

/* =========================================================
   POPULAR SITES
   ========================================================= */

.site-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.site-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.site-pill:hover {
    transform: translateY(-1px);
    border-color: var(--purple);
    box-shadow: 0 5px 15px rgba(139, 92, 246, .08);
}

.site-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-weight: 800;
}

.pill-arrow {
    margin-left: auto;
    color: var(--text-light);
}

/* =========================================================
   INFO SECTION
   ========================================================= */

.info-section {
    padding: 15px 0 50px;
}

.info-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: linear-gradient(135deg, #faf8ff, #fff);
}

.info-card h2 {
    margin: 0 0 12px;
    color: var(--purple-dark);
    font-size: 29px;
}

.info-card p {
    max-width: 850px;
    color: var(--text-light);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.feature-row > div {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
}

.feature-row strong {
    display: block;
    color: var(--purple-dark);
    font-size: 13px;
}

.feature-row span {
    display: block;
    margin-top: 3px;
    font-weight: 700;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-preview {
    padding: 15px 0 55px;
}

.faq-preview h2 {
    margin: 0 0 20px;
    color: var(--purple-dark);
    font-size: 29px;
}

.faq-preview details {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.faq-preview summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-preview details p {
    margin: 10px 0 0;
    color: var(--text-light);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 45px;
    background: #17121f;
    color: #fff;
    border-top: 3px solid var(--purple);
}

.footer-main {
    padding: 45px 0 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.footer-logo span:last-child span {
    color: var(--purple-light);
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--purple);
    color: #fff;
    font-size: 20px;
}

.footer-brand p {
    margin: 15px 0 0;
    color: #c4bdd0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.footer-column a {
    display: block;
    margin-bottom: 7px;
    color: #c4bdd0;
    font-size: 14px;
    transition: color .2s ease, transform .2s ease;
}

.footer-column a:hover {
    color: var(--purple-light);
    transform: translateX(2px);
}

/* =========================================================
   AFFILIATE
   ========================================================= */

.affiliate-area {
    padding: 19px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.affiliate-label {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.affiliate-area p {
    max-width: 700px;
    margin: 0;
    color: #a9a0b7;
    font-size: 12px;
    line-height: 1.5;
}

.affiliate-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.affiliate-links a {
    padding: 7px 11px;
    border: 1px solid rgba(167, 139, 250, .30);
    border-radius: 8px;
    color: #cfc6dc;
    font-size: 12px;
    white-space: nowrap;
}

.affiliate-links a:hover {
    background: rgba(139, 92, 246, .15);
    border-color: var(--purple);
    color: #fff;
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    background: #100c16;
}

.footer-bottom-inner {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: #8f8799;
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    color: #8f8799;
    font-size: 12px;
}

.footer-bottom-links a:hover {
    color: var(--purple-light);
}

/* =========================================================
   HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .header-inner,
    .site-header-inner,
    .nav-inner {
        min-height: auto;
        padding: 12px 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

    nav,
    .site-nav,
    .main-nav {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    nav a,
    .site-nav a,
    .main-nav a {
        min-height: 34px;
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 24px);
    }

    .hero {
        padding: 42px 0 35px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
        letter-spacing: -1px;
    }

    .hero-text {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .search-box {
        flex-direction: column;
        gap: 7px;
    }

    .search-btn {
        width: 100%;
    }

    .content-section {
        padding: 35px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .affiliate-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .affiliate-links {
        flex-wrap: wrap;
    }

    .footer-bottom-inner {
        min-height: auto;
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    /* PLAYER */

    .mp3-player-custom {
        height: 58px;
        padding: 6px 7px;
    }

    .mp3-player-custom .mp3-controls {
        gap: 5px;
    }

    .mp3-player-custom .mp3-play {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }

    .mp3-player-custom .mp3-time,
    .mp3-player-custom .mp3-current-time,
    .mp3-player-custom .mp3-current,
    .mp3-player-custom .mp3-duration {
        min-width: 29px;
        font-size: 9px;
    }

    .mp3-player-custom .mp3-volume-icon {
        display: none;
    }

    .mp3-player-custom .mp3-volume {
        width: 42px;
        min-width: 35px;
    }

    .mp3-player-custom .mp3-mute {
        width: 29px;
        height: 29px;
        min-width: 29px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .wrap {
        width: calc(100% - 20px);
    }

    .header-inner,
    .site-header-inner,
    .nav-inner {
        padding: 10px 0;
    }

    .logo,
    .site-logo-text,
    .brand-logo {
        font-size: 23px;
    }

    .hero {
        padding: 35px 0 28px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text {
        font-size: 14px;
    }

    .search-input-wrap input,
    .search-btn {
        height: 50px;
    }

    .result-card {
        padding: 12px;
        border-radius: 13px;
    }

    .result-separator {
        width: calc(100% + 24px);
        margin: 12px -12px;
    }

    .result-media {
        width: calc(100% + 20px);
        margin: 0 -10px;
        border-radius: 9px;
    }

    .detail-row {
        width: calc(100% + 24px);
        margin-left: -12px;
        padding: 8px 12px;
        grid-template-columns: 82px 1fr;
        gap: 8px;
        font-size: 12px;
    }

    .play-result {
        height: 44px;
    }

    .info-card {
        padding: 22px 18px;
    }

    .info-card h2,
    .faq-preview h2 {
        font-size: 25px;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    /* =========================================
       ULTRA COMPACT MOBILE MP3 PLAYER
       ========================================= */

    .mp3-player-custom {
        height: 54px;
        margin-top: 10px;
        padding: 5px 6px;
        border-radius: 12px;
    }

    .mp3-player-custom .mp3-controls {
        gap: 3px;
    }

    .mp3-player-custom .mp3-play {
        width: 33px;
        height: 33px;
        min-width: 33px;
        font-size: 11px;
    }

    .mp3-player-custom .mp3-time,
    .mp3-player-custom .mp3-current-time,
    .mp3-player-custom .mp3-current,
    .mp3-player-custom .mp3-duration {
        min-width: 25px;
        font-size: 8px;
    }

    .mp3-player-custom .mp3-progress {
        min-width: 30px;
        height: 5px;
    }

    .mp3-player-custom .mp3-progress::-webkit-slider-runnable-track {
        height: 5px;
    }

    .mp3-player-custom .mp3-progress::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
        margin-top: -3.5px;
    }

    .mp3-player-custom .mp3-volume {
        width: 35px;
        min-width: 28px;
    }

    .mp3-player-custom .mp3-mute {
        width: 27px;
        height: 27px;
        min-width: 27px;
        border-radius: 7px;
        font-size: 11px;
    }
}

/* =========================================================
   SEARCH INPUT - REMOVE BROWSER CLEAR BUTTON
   ========================================================= */

#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

#searchInput::-moz-search-cancel-button {
    display: none;
}


/* =========================================================
   FINAL SPACING FIX
   REMOVE ONLY EXTRA SPACE BETWEEN SECTIONS/CONTAINERS
   ========================================================= */

/* Header directly connects to the section below */
header,
.site-header,
.main-header {
    margin-bottom: 0 !important;
}

/* Remove any gap created immediately after header */
header + *,
.site-header + *,
.main-header + * {
    margin-top: 0 !important;
}

/* Main wrapper containers */
.wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Hero connects directly to the header */
.hero {
    margin-top: 0 !important;
}

/* Content section */
.content-section {
    margin-top: 0 !important;
}

/* Remove extra space between major sections */
.content-section + .info-section,
.info-section + .faq-preview,
.faq-preview + .site-footer {
    margin-top: 0 !important;
}

/* Result sections */
.section-heading {
    margin-top: 0 !important;
}

/* Footer should not have a large empty gap above it */
.site-footer {
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
    .hero,
    .content-section,
    .info-section,
    .faq-preview {
        margin-top: 0 !important;
    }

    .site-footer {
        margin-top: 0 !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero,
    .content-section,
    .info-section,
    .faq-preview {
        margin-top: 0 !important;
    }

    .site-footer {
        margin-top: 0 !important;
    }
}


/* REMOVE GAP BETWEEN HEADER PURPLE LINE AND HERO TITLE */

header,
.site-header,
.main-header {
    margin-bottom: 0 !important;
}

.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero h1 {
    margin-top: 0 !important;
}

/* MOBILE */
@media (max-width: 800px) {
    .hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-inner {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Search Results H1 */
.search-results-heading h1 {
    color: #8b5cf6 !important;
}
