:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00e5ff;
    /* Cyan Neon */
    --accent-hover: #00b8cc;
    --gold: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #007bb5);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0 20px;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-right: 12px;
    transition: color var(--transition-speed);
}

.search-box:focus-within .search-icon {
    color: var(--accent-color);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-speed);
    border-radius: 50%;
}

.search-clear.visible {
    opacity: 1;
}

.search-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.search-results-count {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 20px;
}

/* Header */
header {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
    color: var(--text-primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    /* Adjust donate button for mobile menu */
    .mobile-donate {
        margin-top: 20px;
        width: 80%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    /* Fill remaining viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, rgba(13, 13, 13, 0) 70%);
    margin-top: 80px;
    /* Offset for fixed header */
}

.hero .container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}



/* Categories / Grid */
.categories {
    padding: 80px 0;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sound-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 20px 0;
    transition: var(--transition-speed);
    position: relative;
}

.sound-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sound-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.sound-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.waveform-placeholder {
    height: 40px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 0 10px;
}

.waveform-bar {
    width: 3px;
    background: var(--text-secondary);
    border-radius: 2px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.sound-card:hover .waveform-bar {
    opacity: 1;
    background: var(--accent-color);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* Ad Spaces */
.ad-space {
    width: 100%;
    height: 150px;
    /* Standard ad banner height simulation */
    background: #111;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    color: #444;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: 80px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.donation-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.secondary-action {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
}

.secondary-action:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Admin Styles */
/* Admin Styles */
.admin-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: none;
    position: relative;
    backdrop-filter: none;
}

.admin-header nav {
    height: auto;
}

.back-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-speed);
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto 120px;
    padding: 0 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Upload Card */
.upload-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #007bb5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-section label i {
    width: 20px;
    color: var(--accent-color);
    opacity: 0.8;
}

.form-section input,
.form-section select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: var(--font-main);
}

.form-section input:focus,
.form-section select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 229, 255, 0.05);
}

/* Custom File Input */
.file-custom-wrapper {
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.file-custom-wrapper:hover {
    border-color: var(--accent-color);
    background: rgba(0, 229, 255, 0.05);
}

.file-custom-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-instruction {
    text-align: center;
    color: var(--text-secondary);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.file-instruction i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.file-instruction small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Library List */
.library-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 800px;
}

.library-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 0 0;
}

.library-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.library-stats {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(0, 229, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.library-list-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.library-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.library-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.2s;
}

.library-item:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.lib-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lib-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.lib-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.lib-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.lib-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.delete-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.delete-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Admin Bottom Actions */
.admin-actions {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 16px 16px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 8px 16px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    font-size: 0.8rem;
    padding: 8px 16px;
    margin-left: auto;
}

.btn-danger-outline:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Fixed Player */
.fixed-player {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    z-index: 1500;
    transition: bottom 0.4s ease;
}

.fixed-player.active {
    bottom: 0;
}

.player-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.player-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-controls {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-speed);
    padding: 5px;
}

.player-btn:hover {
    color: var(--text-primary);
}

.player-btn.main-play {
    width: 45px;
    height: 45px;
    background: var(--text-primary);
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.player-btn.main-play:hover {
    background: var(--accent-color);
}

.player-volume {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-volume i {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.player-volume input {
    width: 80px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

body {
    padding-bottom: 100px;
}

html {
    scroll-behavior: smooth;
}


/* Footer Layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    text-align: left;
}

.footer-video {
    width: 300px;
    height: 169px;
    /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.footer-video iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        text-align: center;
    }

    .footer-video {
        width: 100%;
        max-width: 450px;
        height: 253px;
    }
}

/* Footer Channel Info */
.footer-channel-info {
    max-width: 300px;
    text-align: left;
}

.footer-channel-info h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-channel-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .footer-channel-info {
        max-width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}