/* ========================================
   锁车音效库 - 全站样式
   主题: 橙黄渐变
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #FF6B00;
    --primary-dark: #E85D00;
    --primary-light: #FF8C00;
    --secondary: #FFB800;
    --accent: #FFD700;
    --gradient-start: #FF9A3C;
    --gradient-mid: #FFB800;
    --gradient-end: #FFD700;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);

    --text-dark: #2D1F0E;
    --text-body: #5A4630;
    --text-light: #8B7355;
    --text-muted: #A69279;

    --bg-warm: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-card-transparent: rgba(255, 255, 255, 0.92);
    --bg-overlay: rgba(255, 255, 255, 0.65);

    --border: #FFE8CC;
    --border-light: #FFF0D9;
    --border-dark: #FFD9A3;

    --success: #4CAF50;
    --success-bg: #E8F5E9;
    --danger: #E53935;
    --danger-bg: #FFEBEE;
    --warning: #FF9800;
    --warning-bg: #FFF8E1;
    --info: #2196F3;
    --info-bg: #E3F2FD;

    --shadow-xs: 0 2px 6px rgba(255, 140, 0, 0.08);
    --shadow-sm: 0 4px 12px rgba(255, 140, 0, 0.10);
    --shadow-md: 0 8px 24px rgba(255, 140, 0, 0.14);
    --shadow-lg: 0 12px 36px rgba(255, 140, 0, 0.18);
    --shadow-xl: 0 20px 50px rgba(255, 107, 0, 0.22);
    --shadow-inset: inset 0 2px 6px rgba(255, 140, 0, 0.08);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --nav-h: 68px;
    --container-max: 1280px;

    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 184, 0, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(255, 215, 0, 0.18) 0%, transparent 45%),
        linear-gradient(180deg, #FFF5E6 0%, #FFF8F0 40%, #FFFBF3 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

img, svg, video, audio { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* ============ Layout ============ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }

.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col { flex: 1 0 0%; padding: 0 12px; }
.col-auto { flex: 0 0 auto; padding: 0 12px; }

.grid { display: grid; gap: 20px; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-gap-sm { gap: 12px; }
.grid-gap { gap: 20px; }
.grid-gap-lg { gap: 32px; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-start { align-items: flex-start; justify-content: flex-start; }
.flex-end { align-items: flex-end; justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 0 0 auto; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap { gap: 16px; }
.gap-lg { gap: 24px; }

/* ============ Navbar ============ */
.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 100;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
    flex-shrink: 0;
}
.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    font-size: 15px;
}
.logo-text-en {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-top: 2px;
    -webkit-text-fill-color: var(--text-light);
    font-weight: 500;
}
.logo-fallback {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: rgba(255, 140, 0, 0.08); }
.nav-link.active {
    color: var(--primary);
    background: rgba(255, 140, 0, 0.12);
    font-weight: 600;
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 4px 0 14px;
    height: 38px;
    width: 220px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.nav-search:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.10);
}
.nav-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    min-width: 0;
}
.nav-search button {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: transform var(--transition-fast);
}
.nav-search button:hover { transform: scale(1.04); }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.nav-mobile-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-warm);
    color: var(--text-dark);
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    transition: opacity var(--transition);
}
.mobile-nav.open { display: block; opacity: 1; }
.mobile-nav-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    background: #fff;
    padding: 24px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform var(--transition);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-warm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
.mobile-nav-link {
    padding: 14px 12px;
    border-radius: var(--radius);
    color: var(--text-body);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(255, 140, 0, 0.08);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1.2;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.42);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--border-dark);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 140, 0, 0.05);
}
.btn-outline.active {
    border-color: var(--primary);
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-dark);
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 24px;
    background: #FFF8F0;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-user:hover {
    border-color: var(--primary);
    background: #FFF0D9;
}
.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.2);
}
.btn-user .iconfont {
    font-size: 18px;
    color: var(--primary);
}

.user-menu {
    position: relative;
    display: inline-block;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.dropdown-item:hover {
    background: var(--bg-warm);
    color: var(--primary);
}
.dropdown-item .iconfont {
    font-size: 16px;
    color: var(--primary);
}
.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 10px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-warm); color: var(--primary); }

.btn-secondary {
    background: var(--bg-warm);
    color: var(--primary);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--border-light); }

.btn-danger {
    background: #fff;
    color: var(--danger);
    border-color: #FFCDD2;
}
.btn-danger:hover { background: var(--danger-bg); }

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { display: flex; width: 100%; }
.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}
.btn-circle-sm { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 13px; }

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 56px 0 32px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(255, 184, 0, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.hero p {
    font-size: 17px;
    color: var(--text-body);
    max-width: 640px;
    margin: 0 auto 30px;
}
.hero-sm { padding: 36px 0 20px; }
.hero-sm h1 { font-size: 30px; margin-bottom: 10px; }

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 6px 6px 6px 22px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
    position: relative;
    z-index: 1;
}
.search-box:focus-within { box-shadow: 0 10px 30px rgba(255, 140, 0, 0.22); }
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}
.search-box button {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.search-box button:hover { transform: scale(1.03); }

/* ============ Cards ============ */
.card {
    background: var(--bg-card-transparent);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}
.card-plain {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
}

/* Stat cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0.85;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}
.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFF0D9, #FFE0A8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.stat-num {
    font-size: 30px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* ============ Tags / Pills ============ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.tag {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.tag.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.28);
}
.tag-sm { padding: 3px 11px; font-size: 11px; }
.tag-lg { padding: 10px 20px; font-size: 14px; }
.tag-outline { background: transparent; }
.tag-solid { background: var(--gradient); color: #fff; border-color: transparent; }

.tag-select-wrapper { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #FFF8F0; border: 1px dashed #FFD9A3; border-radius: 8px; min-height: 44px; }
.tag-option { display: inline-flex; align-items: center; padding: 6px 14px; background: #fff; border: 1px solid #E8DCC8; border-radius: 20px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.tag-option:hover { border-color: #FFB866; color: #FF6B00; }
.tag-option-selected { background: linear-gradient(135deg, #FF6B00, #FFB800); color: #fff; border-color: transparent; font-weight: 500; }
.tag-option-selected:hover { color: #fff; }

/* ============ Section ============ */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--gradient);
    border-radius: 3px;
}
.section-title .section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============ Sound Grid ============ */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}
.sound-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 12px rgba(255, 140, 0, 0.06);
}
.sound-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 107, 0, 0.18);
    border-color: var(--border-dark);
}
.sound-cover {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #FF9A3C 0%, #FFB800 50%, #FFD700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sound-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
}
.sound-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
    pointer-events: none;
}
.sound-wave {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 28px;
    opacity: 0.6;
    z-index: 1;
}
.sound-wave span {
    width: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 6px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.sound-card:hover .sound-wave span,
.sound-card.playing .sound-wave span {
    animation: sound-bounce 0.8s ease-in-out infinite;
}
.sound-wave span:nth-child(1)  { animation-delay: 0s; }
.sound-wave span:nth-child(2)  { animation-delay: 0.05s; }
.sound-wave span:nth-child(3)  { animation-delay: 0.1s; }
.sound-wave span:nth-child(4)  { animation-delay: 0.15s; }
.sound-wave span:nth-child(5)  { animation-delay: 0.2s; }
.sound-wave span:nth-child(6)  { animation-delay: 0.25s; }
.sound-wave span:nth-child(7)  { animation-delay: 0.3s; }
.sound-wave span:nth-child(8)  { animation-delay: 0.35s; }
.sound-wave span:nth-child(9)  { animation-delay: 0.4s; }
.sound-wave span:nth-child(10) { animation-delay: 0.45s; }
.sound-wave span:nth-child(11) { animation-delay: 0.5s; }
.sound-wave span:nth-child(12) { animation-delay: 0.55s; }
.sound-wave span:nth-child(13) { animation-delay: 0.6s; }
.sound-wave span:nth-child(14) { animation-delay: 0.65s; }
.sound-wave span:nth-child(15) { animation-delay: 0.7s; }
.sound-wave span:nth-child(16) { animation-delay: 0.75s; }
.sound-wave span:nth-child(17) { animation-delay: 0.8s; }
.sound-wave span:nth-child(18) { animation-delay: 0.85s; }
@keyframes sound-bounce {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1.6); }
}
.sound-play-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}
.sound-play-btn:hover {
    transform: scale(1.12);
    color: var(--primary-dark);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.sound-play-btn:active { transform: scale(0.94); }
.sound-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.sound-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
.sound-badge.free {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success);
}
.sound-badge.price {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}
.sound-info { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.sound-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sound-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.sound-name a:hover { color: var(--primary); }
.sound-meta-row {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sound-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sound-uploader { font-weight: 500; }
.sound-car {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}
.sound-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--bg-warm);
    border-radius: 10px;
}
.sound-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sound-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sound-tag {
    padding: 3px 10px;
    background: var(--bg-warm);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-body);
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.15s;
}
.sound-tag:hover {
    background: var(--border);
    color: var(--primary);
    border-color: var(--border-dark);
}
.sound-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.play-btn-inline {
    min-width: 64px;
}

/* Ranking cards */
.ranking-list {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: var(--bg-warm); }
.rank-badge {
    width: 36px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-light);
    flex-shrink: 0;
}
.rank-badge.top-1,
.rank-badge.top-2,
.rank-badge.top-3 { color: var(--primary); font-size: 22px; }
.rank-cover {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta { font-size: 13px; color: var(--text-light); }
.rank-action { flex-shrink: 0; }

/* ============ Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.page-btn {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============ Forms ============ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    transition: all var(--transition-fast);
    font-family: inherit;
    line-height: 1.5;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}
.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ============ Tabs ============ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab {
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    font-size: 15px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.tab:hover { color: var(--primary); }
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ============ Modal / Overlay ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 15, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in var(--transition);
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slide-up var(--transition);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-warm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--border); color: var(--primary); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============ Toast / Notifications ============ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.toast {
    background: #fff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slide-in-right var(--transition);
    min-width: 240px;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }
.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: #fff;
    background: var(--primary);
}
.toast-success .toast-icon { background: var(--success); }
.toast-error .toast-icon { background: var(--danger); }
.toast-warning .toast-icon { background: var(--warning); }
.toast-info .toast-icon { background: var(--info); }
.toast-content { flex: 1; font-size: 14px; color: var(--text-dark); }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-message { color: var(--text-body); font-size: 13px; }
.toast-close {
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.toast-close:hover { background: var(--bg-warm); color: var(--text-dark); }

/* ============ Audio Player Bar ============ */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 12px 20px;
    z-index: 200;
    transform: translateY(100%);
    transition: transform var(--transition);
    box-shadow: 0 -4px 20px rgba(255, 140, 0, 0.08);
}
.player-bar.show { transform: translateY(0); }
.player-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.player-cover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.player-info { flex: 1; min-width: 0; }
.player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.player-controls { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.player-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    transition: transform var(--transition-fast);
}
.player-btn:hover { transform: scale(1.08); }
.player-btn-sm {
    width: 34px;
    height: 34px;
    font-size: 13px;
    background: var(--bg-warm);
    color: var(--text-dark);
    box-shadow: none;
}
.player-btn-sm:hover { background: var(--border); }
.player-progress { flex: 1; max-width: 340px; }
.progress-bar {
    height: 4px;
    background: var(--bg-warm);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: height var(--transition-fast);
}
.progress-bar:hover { height: 6px; }
.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.progress-bar:hover .progress-fill::after { opacity: 1; }
.player-time {
    font-size: 12px;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ============ Upload Dropzone ============ */
.upload-area {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, #FFF8F0, #FFFBF3);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF5E6, #FFF0D9);
    transform: translateY(-2px);
}
.upload-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
}
.upload-text {
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 6px;
}
.upload-hint {
    font-size: 13px;
    color: var(--text-light);
}
.upload-progress {
    margin-top: 18px;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.upload-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============ Loading Spinner ============ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-light);
    gap: 10px;
    font-size: 14px;
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}
.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 8px;
}
.empty-state-desc { font-size: 14px; }

/* ============ Admin Panel ============ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 20px;
}
.admin-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.admin-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px 10px;
}
.admin-menu-item {
    padding: 11px 14px;
    border-radius: var(--radius);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.admin-menu-item:hover {
    background: rgba(255, 140, 0, 0.08);
    color: var(--primary);
}
.admin-menu-item.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.28);
}
.admin-menu-item .menu-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-content {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    min-height: 500px;
}
.admin-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.admin-stat-box {
    background: linear-gradient(135deg, #FFF8F0, #FFFBF3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
}
.admin-stat-box .num {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.admin-stat-box .label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}
.admin-card {
    background: linear-gradient(135deg, #FFF8F0, #FFF0D9);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-light);
}
.admin-login {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.admin-login h2 { font-size: 22px; margin-bottom: 6px; }
.admin-login p { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: var(--bg-warm);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
}
.admin-table tbody tr:hover { background: var(--bg-warm); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.btn-danger {
    background: #FFEBEE;
    color: var(--danger);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: background var(--transition-fast);
}
.btn-danger:hover { background: #FFCDD2; }
.btn-success {
    background: var(--success-bg);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}
.btn-success:hover { filter: brightness(0.95); }

/* ============ Back to Top ============ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ============ Footer ============ */
.footer {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 24px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}
.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-dark);
}
.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-body);
    padding: 5px 0;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}
.footer-bottom a { color: var(--text-light); margin: 0 4px; }
.footer-bottom a:hover { color: var(--primary); }

/* ============ Detail Page ============ */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    margin-top: 32px;
}
.detail-main {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}
.detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.detail-meta {
    display: flex;
    gap: 18px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-body p { margin-bottom: 14px; color: var(--text-body); line-height: 1.75; }

.audio-preview-card {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.audio-preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.audio-preview-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00, #FFB800);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}
.audio-preview-play:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
}
.audio-preview-play:active { transform: scale(0.95); }
.audio-preview-play.playing {
    background: linear-gradient(135deg, #FF4444, #FF6B00);
    animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35); }
    50% { box-shadow: 0 6px 30px rgba(255, 107, 0, 0.6); }
}
.audio-preview-info { flex: 1; min-width: 0; }
.audio-preview-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.audio-preview-time {
    font-size: 13px;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}
.audio-preview-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 70px;
    padding: 0 10px;
    margin-bottom: 16px;
    background: rgba(255, 140, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
}
.audio-preview-wave .preview-bar {
    width: 4px;
    background: linear-gradient(180deg, #FFB800, #FF6B00);
    border-radius: 4px;
    transition: height 0.15s ease, opacity 0.2s ease;
    opacity: 0.45;
}
.audio-preview-wave .preview-bar.played {
    opacity: 1;
    background: linear-gradient(180deg, #FF6B00, #FF4444);
}
.audio-preview-wave.playing .preview-bar {
    animation: wave-bounce 0.6s ease-in-out infinite;
}
.audio-preview-wave.playing .preview-bar:nth-child(odd) { animation-delay: 0.1s; }
.audio-preview-wave.playing .preview-bar:nth-child(3n) { animation-delay: 0.2s; }
.audio-preview-wave.playing .preview-bar:nth-child(5n) { animation-delay: 0.3s; }
@keyframes wave-bounce {
    0%, 100% { transform: scaleY(0.7); }
    50% { transform: scaleY(1.3); }
}
.audio-preview-progress {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 12px;
    overflow: visible;
    transition: height 0.15s ease;
}
.audio-preview-progress:hover {
    height: 10px;
}
.audio-preview-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF6B00, #FFB800);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}
.audio-preview-progress-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #FF6B00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    opacity: 0;
    transition: opacity 0.15s ease, left 0.1s linear;
    pointer-events: none;
}
.audio-preview-progress:hover .audio-preview-progress-thumb {
    opacity: 1;
}
.audio-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}
.audio-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border-light);
}
.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.action-btn.primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.3);
}
.action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}
.action-btn.secondary {
    background: var(--bg-warm);
    color: var(--primary);
}
.action-btn.secondary:hover { background: var(--border-light); }
.action-btn.outline {
    background: #fff;
    color: var(--text-body);
    border: 1px solid var(--border);
}
.action-btn.outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============ Alert Boxes ============ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}
.alert-success { background: var(--success-bg); color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error { background: var(--danger-bg); color: #C62828; border: 1px solid #FFCDD2; }
.alert-warning { background: var(--warning-bg); color: #E65100; border: 1px solid #FFE082; }
.alert-info { background: var(--info-bg); color: #1565C0; border: 1px solid #BBDEFB; }
.alert-icon { font-size: 18px; flex-shrink: 0; }
.alert-content { flex: 1; }

/* ============ Animations ============ */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in { animation: fade-in var(--transition); }
.fade-up { animation: fade-up 0.5s ease both; }
.pulse { animation: pulse 2s ease-in-out infinite; }
.pulse-scale { animation: pulse-scale 2s ease-in-out infinite; }
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ============ Utilities ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-xs { margin-top: 6px; }
.mt-sm { margin-top: 12px; }
.mt { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mb-xs { margin-bottom: 6px; }
.mb-sm { margin-bottom: 12px; }
.mb { margin-bottom: 20px; }
.mb-lg { margin-bottom: 32px; }
.mb-xl { margin-bottom: 48px; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .stats-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .grid-cols-3,
    .grid-cols-4,
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .detail-container { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .admin-menu-item { white-space: nowrap; margin-bottom: 0; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 36px; }
    .nav-search { width: 160px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    .nav-links,
    .nav-search { display: none; }
    .nav-actions .btn { display: none; }
    .nav-mobile-btn { display: inline-flex; }
    .hero { padding: 36px 0 20px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .sound-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section-title { flex-direction: column; align-items: flex-start; }
    .detail-header { flex-direction: column; text-align: center; }
    .player-progress,
    .player-time { display: none; }
    .player-inner { gap: 10px; }
    .player-bar { padding: 10px 14px; }
    .footer-inner { flex-direction: column; }
    .footer-brand { max-width: 100%; }
    .pagination { gap: 6px; }
    .page-btn { padding: 6px 11px; font-size: 13px; }
    .card { padding: 18px; }
    .container { padding: 0 14px; }
    .search-box { padding: 5px 5px 5px 16px; }
    .search-box button { padding: 10px 20px; }
    .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .action-btn { padding: 12px; font-size: 14px; }
    .modal { margin: 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .grid-cols-1,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .stats-row,
    .admin-stat-grid { grid-template-columns: 1fr; }
    .sound-grid { grid-template-columns: 1fr; }
    .stat-num { font-size: 26px; }
    .container { padding: 0 12px; }
    .card,
    .sidebar-card,
    .admin-content { padding: 16px; }
    .btn { padding: 9px 16px; font-size: 13px; }
    .pagination .page-btn { padding: 5px 10px; font-size: 12px; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 22px; }
    .logo-text { font-size: 15px; }
    .logo-text-en { font-size: 9px; }
    .search-box { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; }
    .search-box input { padding: 8px 12px; width: 100%; }
    .search-box button { width: 100%; padding: 10px; }
}

::selection {
    background: rgba(255, 140, 0, 0.22);
    color: var(--text-dark);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.5);
    background-clip: padding-box;
    border: 2px solid transparent;
}
