/* =====================================================
   PLAKBUDUR - Plak Koleksiyonu CSS
   Vintage Brown & Cream Theme - Light Version
   ===================================================== */

/* CSS Variables - Brown & Cream Theme */
:root {
    --primary: #8B4513;
    --primary-dark: #6B3410;
    --primary-light: #A0522D;
    --secondary: #D2691E;
    --accent: #CD853F;

    /* Light cream background */
    --bg-main: #FDF5E6;
    --bg-cream: #FAEBD7;
    --bg-cream-light: #FFF8F0;

    /* Dark brown for header/footer */
    --bg-dark: #2C1810;
    --bg-card: rgba(255, 248, 240, 0.95);
    --bg-card-hover: rgba(255, 245, 235, 1);
    --bg-glass: rgba(139, 69, 19, 0.08);

    --text-dark: #3D2314;
    --text-primary: #4A2C1A;
    --text-secondary: #6B4423;
    --text-muted: #8B7355;
    --text-light: #FDF5E6;

    --border-color: rgba(139, 69, 19, 0.15);
    --border-dark: rgba(139, 69, 19, 0.25);
    --shadow: 0 8px 32px rgba(44, 24, 16, 0.15);
    --shadow-glow: 0 0 30px rgba(139, 69, 19, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Album Covers Background */
.floating-covers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-cover-wrapper {
    position: absolute;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    pointer-events: none;
}

.floating-cover {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    opacity: 0.35;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.1, 1);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(150px, -120px) rotate(20deg);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-130px, 140px) rotate(-18deg);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(120px, 160px) rotate(25deg);
    }
}

@keyframes float-4 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-160px, -110px) rotate(-22deg);
    }
}

@keyframes float-5 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(140px, -150px) rotate(15deg);
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fdfaf5;
    /* Fixed warm base */
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Vinyl Groove Pattern Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(139, 69, 19, 0.02) 41%, transparent 42%),
        radial-gradient(circle at 50% 50%, transparent 60%, rgba(139, 69, 19, 0.01) 61%, transparent 62%);
    background-size: 600px 600px;
    z-index: -2;
    opacity: 0.6;
    pointer-events: none;
}

.visual-experience-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.grain-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Noisy_Texture.png');
    opacity: 0.06;
    animation: grainAnimation 8s steps(10) infinite;
}

@keyframes grainAnimation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.floating-notes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-note {
    position: absolute;
    color: var(--primary);
    opacity: 0;
    font-size: 24px;
    user-select: none;
    filter: blur(1px);
    animation: floatParticle 8s ease-in forwards;
    z-index: -1;
}

@keyframes floatParticle {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

/* Typography Enhancement */
h1,
h2,
.logo-text {
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   BURGER MENU & SIDEBAR
   ===================================================== */

/* Burger Menu Button */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    transition: var(--transition);
    margin-right: 8px;
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.burger-line {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.burger-menu:hover .burger-line {
    background: var(--accent);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Burger Sidebar */
.burger-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    border-right: 3px solid var(--primary);
    box-shadow: 4px 0 30px rgba(44, 24, 16, 0.3);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.burger-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--primary);
    gap: 12px;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.sidebar-tab {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}



.sidebar-logout {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #FF6347;
    /* Tomato color */
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: -4px;
}

.sidebar-logout:hover {
    background: rgba(255, 99, 71, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 99, 71, 0.3);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.sidebar-wishlist {
    background: var(--bg-cream);
}

/* Wishlist Sidebar Header */
.wishlist-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.wishlist-header-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.wishlist-header-buttons {
    display: flex;
    gap: 8px;
}

.wishlist-show-btn,
.wishlist-add-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-show-btn:hover,
.wishlist-add-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Wishlist Section on Main Page */
.wishlist-section {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08), rgba(160, 82, 45, 0.08));
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: var(--radius-lg);
}

.wishlist-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wishlist-page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.wishlist-card {
    border-color: rgba(139, 69, 19, 0.3);
}

.wishlist-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
}

.wishlist-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 5;
}

/* Wishlist Styles */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
}

.wishlist-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.wishlist-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.wishlist-cover {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

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

.wishlist-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.wishlist-artist {
    font-size: 13px;
    color: var(--primary);
}

.wishlist-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.wishlist-actions {
    display: flex;
    gap: 6px;
}

.wishlist-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.wishlist-btn.add:hover {
    background: #228B22;
    color: white;
}

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

.wishlist-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.wishlist-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.wishlist-empty h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.wishlist-empty p {
    font-size: 13px;
}

/* Wishlist Button in Navbar */
.btn-wishlist {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.btn-wishlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

/* Artist Group */
.artist-group {
    margin-bottom: 16px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.artist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.artist-header-left {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.artist-header-left:hover {
    opacity: 0.9;
}

.artist-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.artist-filter-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.artist-filter-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.artist-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.artist-record-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.artist-toggle {
    color: white;
    font-size: 14px;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 4px;
}

.artist-toggle:hover {
    opacity: 0.8;
}

.artist-group.expanded .artist-toggle {
    transform: rotate(180deg);
}

/* Artist Filter Indicator */
.artist-filter-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.indicator-icon {
    font-size: 24px;
}

.indicator-text {
    flex: 1;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.indicator-clear {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.indicator-clear:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Artist Records */
.artist-records {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.artist-group.expanded .artist-records {
    max-height: 500px;
}

.artist-record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.artist-record-item:hover {
    background: var(--bg-cream-light);
}

.artist-record-cover {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-cream);
    flex-shrink: 0;
}

.artist-record-cover-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-cream), #E8DCC8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.artist-record-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-record-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.artist-record-songs {
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
}

/* Empty Sidebar State */
.sidebar-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.sidebar-empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sidebar-empty h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sidebar-empty p {
    font-size: 13px;
}

/* =====================================================
   NAVBAR - Dark Brown
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 3px solid var(--primary);
    padding: 16px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDF5E6, #DEB887);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 320px;
    padding: 12px 20px 12px 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.3);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.search-results-content {
    padding: 16px;
}

.search-result-section {
    margin-bottom: 16px;
}

.search-result-section:last-child {
    margin-bottom: 0;
}

.search-result-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-cream);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--primary);
    background: var(--bg-cream-light);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-image {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-cream);
}

.search-result-info {
    flex: 1;
}

.search-result-info .title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.search-result-info .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-result-info .meta {
    font-size: 11px;
    color: var(--text-muted);
}

.search-result-type {
    padding: 4px 8px;
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.search-no-results {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.search-no-results span {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: var(--bg-cream);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

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

/* =====================================================
   HERO SECTION - Cream Background
   ===================================================== */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-main) 100%);
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 40px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* =====================================================
   MAIN CONTENT - Cream Background
   ===================================================== */
.main-content {
    padding: 40px 0 80px;
    background: var(--bg-main);
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

/* Records Grid */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Record Card Interaction */
.record-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    box-shadow: var(--shadow);
    perspective: 1000px;
}

.record-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 40px 80px rgba(139, 69, 19, 0.2),
        0 0 0 4px rgba(139, 69, 19, 0.05);
}

/* 3D Cover Effect */
.record-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-cream), #E8DCC8);
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.record-card:hover .record-cover-wrapper {
    transform: rotateY(-15deg) rotateX(8deg);
}

.record-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.record-card:hover .record-cover {
    transform: scale(1.15);
}

.record-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, var(--bg-cream), #E8DCC8);
}

.record-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.record-card:hover .record-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.action-btn.delete:hover {
    background: #B22222;
}

/* Record Info */
.record-info {
    padding: 20px;
}

.record-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.record-info .artist {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
}

.record-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.record-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--bg-cream);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.record-badge.mint {
    background: rgba(34, 139, 34, 0.15);
    color: #228B22;
    border-color: rgba(34, 139, 34, 0.3);
}

.record-badge.excellent {
    background: rgba(70, 130, 180, 0.15);
    color: #4682B4;
    border-color: rgba(70, 130, 180, 0.3);
}

.record-badge.good {
    background: rgba(218, 165, 32, 0.15);
    color: #B8860B;
    border-color: rgba(218, 165, 32, 0.3);
}

.record-badge.fair {
    background: rgba(205, 133, 63, 0.15);
    color: #CD853F;
    border-color: rgba(205, 133, 63, 0.3);
}

.record-badge.poor {
    background: rgba(178, 34, 34, 0.15);
    color: #B22222;
    border-color: rgba(178, 34, 34, 0.3);
}

/* Notes */
.record-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Songs Preview */
.record-songs-preview {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.record-songs-preview .songs-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-songs-preview .songs-list-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.record-songs-preview .song-chip {
    padding: 4px 10px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

.record-songs-preview .more-songs {
    padding: 4px 10px;
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(44, 24, 16, 0.3);
}

.modal.modal-large {
    max-width: 950px;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-cream);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-cream-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.modal-close:hover {
    background: #B22222;
    color: white;
    border-color: #B22222;
}

/* Modal Body */
.modal-body {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.form-column-image {
    flex: 0 0 220px;
}

.form-column-fields {
    flex: 1;
}

/* Image Upload */
.image-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-preview {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.image-preview:hover {
    border-color: var(--primary);
}

.image-preview.has-image {
    border-style: solid;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.image-preview .placeholder-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 0 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-danger {
    background: rgba(178, 34, 34, 0.1);
    color: #B22222;
    border: 1px solid rgba(178, 34, 34, 0.3);
}

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

/* Form Styles */
#recordForm {
    padding: 0;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-cream-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B4423' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.form-group select option {
    background: var(--bg-cream-light);
    color: var(--text-primary);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-cream);
}

/* Songs Section */
.songs-section {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-cream);
}

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

.songs-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.songs-main-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.side-panel {
    background: rgba(139, 69, 19, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 16px;
}

.side-panel:last-child {
    margin-bottom: 0;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.side-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    /* Listeyi uzat */
    overflow-y: auto;
    padding-right: 4px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-cream-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.song-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05);
}

.song-item .song-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.song-item input {
    flex: 1;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.song-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.song-item .remove-song-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.song-item .remove-song-btn:hover {
    background: rgba(178, 34, 34, 0.1);
    color: #B22222;
}

.song-inputs {
    flex: 1;
    display: flex;
    flex-direction: row;
    /* Yan yana */
    gap: 8px;
}

.song-inputs input:first-child {
    flex: 2;
    /* Şarkı adı daha geniş */
}

.song-inputs input:last-child {
    flex: 1.5;
    /* Link alanı */
    font-size: 13px;
    background: rgba(139, 69, 19, 0.02);
}

.song-inputs input {
    width: 100%;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.song-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.song-youtube-field {
    font-size: 12px !important;
    background: #fffafa !important;
    border-color: #eee !important;
}

.song-youtube-field::placeholder {
    color: #cc0000;
    opacity: 0.5;
}

.song-youtube-field:focus {
    border-color: #cc0000 !important;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.songs-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* =====================================================
   FOOTER - Dark Brown
   ===================================================== */
.footer {
    background: var(--bg-dark);
    border-top: 3px solid var(--primary);
    padding: 40px 0 24px;
}

.footer-content {
    text-align: center;
    margin-bottom: 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    font-size: 24px;
}

.footer-logo .logo-text {
    font-size: 20px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

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

    .hero {
        padding-top: 180px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .records-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        flex-direction: column;
    }

    .form-column-image {
        flex: 0 0 auto;
    }

    .image-preview {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .search-results-dropdown {
        top: 140px;
        max-width: calc(100% - 40px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* =====================================================
   PASSWORD PROTECTION OVERLAY
   ===================================================== */

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(139, 69, 19, 0.9));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary);
    max-width: 420px;
    width: 90%;
    animation: passwordModalAppear 0.5s ease;
}

@keyframes passwordModalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.password-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.password-modal h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.password-modal>p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

#passwordForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-cream);
    color: var(--text-dark);
    transition: var(--transition);
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.15);
}

.password-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
}

.password-error {
    color: #B22222;
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
    background: rgba(178, 34, 34, 0.1);
    border-radius: var(--radius-sm);
    display: none;
    animation: shake 0.5s ease;
}

.password-error.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.password-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.password-submit:active {
    transform: translateY(0);
}

/* Body locked when password overlay is visible */
body.password-locked {
    overflow: hidden;
}

/* =====================================================
   SIDEBAR PASSWORD SETTINGS
   ===================================================== */

.sidebar-settings {
    border-top: 2px solid var(--border-color);
    background: var(--bg-cream);
    margin-top: auto;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--text-secondary), var(--text-dark));
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.settings-header:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.settings-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-settings.expanded .settings-arrow {
    transform: rotate(180deg);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-cream-light);
}

.sidebar-settings.expanded .settings-content {
    max-height: 400px;
}

.settings-content form {
    padding: 16px;
}

.settings-form-group {
    margin-bottom: 14px;
}

.settings-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.settings-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
}

.settings-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.settings-message {
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: none;
}

.settings-message.success {
    display: block;
    background: rgba(34, 139, 34, 0.15);
    color: #228B22;
    border: 1px solid rgba(34, 139, 34, 0.3);
}

.settings-message.error {
    display: block;
    background: rgba(178, 34, 34, 0.15);
    color: #B22222;
    border: 1px solid rgba(178, 34, 34, 0.3);
}

.settings-save-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.settings-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
}

.settings-save-btn:active {
    transform: translateY(0);
}

/* =====================================================
   MOBILE RESPONSIVE STYLES
   ===================================================== */

/* Tablets and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 16px;
        gap: 12px;
    }

    .search-box input {
        width: 220px;
    }

    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {

    /* Navbar adjustments */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 22px;
    }

    /* Nav actions - reorganize for mobile */
    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        order: 3;
    }

    /* Search box - full width on mobile */
    .search-box {
        width: 100%;
        order: 1;
    }

    .search-box input {
        width: 100%;
        padding: 10px 16px 10px 40px;
        font-size: 14px;
    }

    .search-icon {
        left: 12px;
    }

    /* Buttons - smaller on mobile */
    .btn-primary,
    .btn-wishlist {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
    }

    .btn-primary span,
    .btn-wishlist span:first-child {
        display: none;
    }

    /* Search results dropdown - full screen width on mobile */
    .search-results-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 1100;
    }

    .search-result-item {
        padding: 10px;
    }

    .search-result-image {
        width: 40px;
        height: 40px;
    }

    /* Hero section */
    .hero {
        padding: 100px 16px 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    /* Main content */
    .main-content {
        padding: 20px 0;
    }

    .container {
        padding: 0 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .filter-tab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Records grid */
    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .record-card {
        border-radius: var(--radius-md);
    }

    .record-info {
        padding: 12px;
    }

    .record-info h3 {
        font-size: 14px;
    }

    .record-info .artist {
        font-size: 12px;
    }

    .record-meta {
        font-size: 10px;
    }

    /* Modal adjustments */
    .modal {
        width: 95%;
        max-height: 90vh;
        margin: 16px;
    }

    .modal-large {
        max-width: 100%;
    }

    .modal-body {
        flex-direction: column;
    }

    .form-column-image,
    .form-column-fields {
        width: 100%;
    }

    /* Burger sidebar */
    .burger-sidebar {
        width: 85vw;
    }

    .sidebar-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .sidebar-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .burger-menu {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .burger-line {
        width: 18px;
    }

    .logo-text {
        font-size: 16px;
    }

    .search-box input {
        padding: 8px 14px 8px 36px;
        font-size: 13px;
    }

    .btn-primary,
    .btn-wishlist {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero {
        padding: 90px 12px 30px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-icon {
        font-size: 20px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .records-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .record-info {
        padding: 10px;
    }

    .record-info h3 {
        font-size: 12px;
    }

    .record-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    /* Password modal */
    .password-modal {
        padding: 32px 24px;
    }

    .password-icon {
        font-size: 48px;
    }

    .password-modal h2 {
        font-size: 22px;
    }
}

/* =====================================================
   RECORD DETAIL MODAL
   ===================================================== */

.record-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--bg-main);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.record-detail-overlay.active {
    transform: translateX(0);
}

.record-detail-modal {
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.detail-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 3px solid var(--primary);
}

.detail-back-btn,
.detail-edit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.detail-back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.detail-content {
    padding: 24px;
}

/* Album Info Section */
.detail-album-info {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.detail-cover-wrapper {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.3);
}

.detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-cream), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-album-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-artist-name {
    font-size: 22px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-condition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-condition.mint {
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.detail-condition.excellent {
    background: linear-gradient(135deg, #4169E1, #6495ED);
}

.detail-condition.good {
    background: linear-gradient(135deg, #DAA520, #FFD700);
}

.detail-condition.fair {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
}

.detail-condition.poor {
    background: linear-gradient(135deg, #B22222, #DC143C);
}

.detail-notes {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
}

/* =====================================================
   VINYL VISUALIZER (DETAIL VIEW)
   ===================================================== */

/* =====================================================
   TURNTABLE DESIGN (CREATIVE DETAIL VIEW)
   ===================================================== */

/* =====================================================
   TURNTABLE DESIGN (CREATIVE DETAIL VIEW)
   ===================================================== */

.vinyl-section.turntable-mode {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 40px;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    position: relative;
    min-height: 550px;
    overflow: hidden;
    /* To contain initial jacket entry */
}

/* The High-End Plinth (Turntable Body) */
.turntable-plinth {
    position: relative;
    width: 480px;
    height: 480px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border-radius: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    flex-shrink: 0;
}

.turntable-shine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.led-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3300;
    box-shadow: 0 0 8px #ff3300;
    animation: ledPulse 2s infinite ease-in-out;
    animation-delay: 2.5s;
    /* Wait for record to start */
    opacity: 0.4;
}

@keyframes ledPulse {

    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 2px #ff3300;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px #ff3300;
    }
}

.vinyl-container {
    position: relative;
    width: 360px;
    height: 360px;
    z-index: 5;
    margin-right: 40px;
    perspective: 1000px;
}

/* Narrative Phase 1: The Jacket Entry */
.vinyl-jacket {
    position: absolute;
    width: 340px;
    height: 340px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 20;
    left: 10px;
    top: 10px;
    transform: translate(-150%, 150%) rotate(-30deg);
    /* Start off-screen */
    animation: jacketEntry 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        jacketExit 1s 2.5s cubic-bezier(0.8, 0.2, 0.8, 0.2) forwards;
}

@keyframes jacketEntry {
    to {
        transform: translate(0, 0) rotate(-5deg);
    }
}

@keyframes jacketExit {
    to {
        transform: translate(-30%, 150%) rotate(-45deg);
        opacity: 0;
    }
}

/* Narrative Phase 2: Disc Extraction & Synchronized Tracklist */
.vinyl-disc {
    width: 100%;
    height: 100%;
    background: #050505;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 10;
    transform: translate(0, 0) scale(0.9);
    /* Initially inside jacket area */
    opacity: 0;
    animation: discExtract 1.5s 1s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        spinVinyl 8s 2.5s linear infinite;
}

@keyframes discExtract {
    0% {
        transform: scale(0.8) translate(10px, 10px);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle at center, #050505 0, #050505 1px, #121212 1.3px, #050505 1.6px);
    border-radius: 50%;
    opacity: 0.9;
}

.vinyl-shine,
.vinyl-shine-fast {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.vinyl-shine {
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.05) 60deg, transparent 120deg, transparent 180deg, rgba(255, 255, 255, 0.03) 240deg, transparent 300deg);
    z-index: 11;
}

.vinyl-shine-fast {
    background: conic-gradient(from 180deg, transparent 0deg, rgba(255, 255, 255, 0.02) 20deg, transparent 40deg);
    z-index: 12;
    animation: spinVinyl 3.5s linear infinite reverse;
}

.vinyl-label-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 4px solid #000;
    z-index: 15;
}

/* Narrative Phase 3: Tonearm Ready */
.tonearm-assembly {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 120px;
    height: 380px;
    z-index: 25;
    pointer-events: none;
}

.tonearm-base {
    position: absolute;
    top: 0;
    right: 20px;
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, #444 0%, #111 100%);
    border-radius: 50%;
    border: 1px solid #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.tonearm-arm {
    position: absolute;
    top: 32px;
    right: 47px;
    width: 8px;
    height: 300px;
    background: linear-gradient(to right, #333, #666 50%, #333);
    transform-origin: top center;
    transform: rotate(45deg);
    border-radius: 4px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
    animation: tonearmSwing 1.5s 2.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes tonearmSwing {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(18deg);
    }
}

.tonearm-head {
    position: absolute;
    bottom: -15px;
    left: -14px;
    width: 36px;
    height: 50px;
    background: #0a0a0a;
    border-radius: 4px 4px 15px 15px;
    border: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5px;
}

.stylus-tip-glow {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    animation: sparkle 0.5s 4s infinite alternate;
    /* Start after tonearm lands */
    opacity: 0;
}

@keyframes sparkle {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hardware Controls */
.turntable-controls {
    position: absolute;
    bottom: 30px;
    left: 40px;
    display: flex;
    gap: 25px;
    align-items: center;
    z-index: 5;
}

.knob {
    width: 34px;
    height: 34px;
    background: radial-gradient(circle, #333 0%, #111 100%);
    border-radius: 50%;
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.slider-slot {
    width: 70px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.slider-handle {
    position: absolute;
    top: -8px;
    left: 60%;
    width: 16px;
    height: 20px;
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Tracklist Appearance */
.turntable-tracklist-container {
    flex: 1;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.tracklist-title {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    opacity: 0.6;
}

.side-tracklist-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.detail-side-badge {
    align-self: flex-start;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-side-badge::before {
    content: '💿';
    font-size: 12px;
}

.turntable-track {
    opacity: 0;
    animation: fadeInSlideRight 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: calc(var(--index) * 0.1s + 1.2s);
}

@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.track-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.track-card.has-link:hover {
    transform: translateX(12px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.1);
}

.track-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    opacity: 0.2;
    transition: 0.3s;
}

.track-card:hover::before {
    top: 10%;
    bottom: 10%;
    opacity: 1;
}

.track-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.4;
    font-family: monospace;
}

.track-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c1810;
}

.track-yt-icon {
    margin-left: auto;
    width: 35px;
    height: 24px;
    background: #cc0000;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.2);
}

/* Empty State */
.vinyl-section.vinyl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .vinyl-section.turntable-mode {
        flex-direction: column;
        padding: 40px 15px;
        background: none;
    }

    .turntable-plinth {
        width: 100%;
        height: 400px;
        max-width: 440px;
    }

    .vinyl-container {
        width: 300px;
        height: 300px;
        margin-right: 0;
    }

    .vinyl-jacket {
        width: 280px;
        height: 280px;
    }

    .tonearm-assembly,
    .led-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .turntable-plinth {
        height: 320px;
    }

    .vinyl-container {
        width: 240px;
        height: 240px;
    }

    .vinyl-jacket {
        width: 220px;
        height: 220px;
    }

    .vinyl-label-center {
        width: 80px;
        height: 80px;
    }

    .track-name {
        font-size: 13px;
    }
}

/* =====================================================
   ARTISTIC ENRICHMENT & TYPOGRAPHY
   ===================================================== */

/* Typography Enhancement With Standard-Compatibility */
h1,
h2,
.detail-album-name {
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.5px;
}

/* Hero Section Enrichment */
.hero {
    position: relative !important;
    padding: 120px 20px 80px !important;
    text-align: center !important;
    background: transparent !important;
    overflow: visible !important;
}

.hero::after {
    content: "💿";
    position: absolute;
    top: 50%;
    left: 5%;
    font-size: 180px;
    opacity: 0.03;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    content: "🎶";
    position: absolute;
    top: 40%;
    right: 8%;
    font-size: 140px;
    opacity: 0.02;
    transform: translateY(-50%) rotate(10deg);
    pointer-events: none;
    z-index: -1;
}

/* Extra Polish on Record Detail */
.modal-large {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(139, 69, 19, 0.1) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4) !important;
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ===================================================== */

/* Tablet & Small Desktop (≤1024px) */
@media (max-width: 1024px) {
    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .burger-sidebar {
        width: 300px;
    }

    .detail-album-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-cover-wrapper {
        margin-bottom: 20px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {

    /* Navbar Mobile */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        width: 100%;
        order: 1;
    }

    .search-box input {
        width: 100%;
        padding: 14px 16px 14px 44px;
    }

    .btn-primary,
    .btn-wishlist {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Hero Mobile */
    .hero {
        padding: 140px 16px 60px !important;
    }

    .hero-content h1 {
        font-size: 28px !important;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Stats Mobile */
    .stats-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .stat-card {
        width: 100%;
        max-width: 320px;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        font-size: 32px;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 24px 0 60px;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Records Grid Mobile */
    .records-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .record-card {
        border-radius: var(--radius-md);
    }

    .record-info {
        padding: 16px;
    }

    .record-info h3 {
        font-size: 16px;
    }

    /* Sidebar Mobile */
    .burger-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-header {
        padding: 10px 12px;
    }

    .sidebar-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sidebar-content {
        padding: 12px;
    }

    .artist-header {
        padding: 10px 12px;
    }

    .artist-name {
        font-size: 14px;
    }

    /* Modal Mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
    }

    .modal.modal-large {
        max-width: 100%;
    }

    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .form-column-image {
        flex: 0 0 auto;
    }

    .image-preview {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-actions {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Search Results Mobile */
    .search-results-dropdown {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        max-height: 60vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
    }

    /* Record Detail Mobile */
    .record-detail-overlay {
        padding: 0;
    }

    .record-detail-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .detail-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .detail-content {
        padding: 16px;
    }

    .detail-album-info {
        flex-direction: column;
        text-align: center;
    }

    .detail-cover-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }

    .detail-album-name {
        font-size: 22px !important;
    }

    .detail-artist-name {
        font-size: 16px;
    }

    /* Turntable Mobile */
    .vinyl-section {
        padding: 20px 12px;
    }

    .turntable-plinth {
        height: auto;
        min-height: 280px;
        padding: 20px;
    }

    .vinyl-container {
        width: 200px;
        height: 200px;
    }

    .vinyl-disc {
        width: 180px;
        height: 180px;
    }

    .vinyl-jacket {
        width: 180px;
        height: 180px;
    }

    .vinyl-label-center {
        width: 60px;
        height: 60px;
    }

    .turntable-tracklist {
        padding: 12px;
        max-height: 200px;
        overflow-y: auto;
    }

    .turntable-track {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .track-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .track-name {
        font-size: 13px;
    }

    /* Visual Effects Mobile - Lighter for Performance */
    .grain-overlay {
        opacity: 0.03;
    }

    .floating-note {
        font-size: 18px !important;
    }

    /* Wishlist Mobile */
    .wishlist-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-item {
        padding: 12px;
    }

    /* Password Modal Mobile */
    .password-modal {
        padding: 32px 24px;
        width: 95%;
    }

    .password-icon {
        font-size: 48px;
    }

    .password-modal h2 {
        font-size: 24px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px !important;
    }

    .stat-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .record-info h3 {
        font-size: 15px;
    }

    .record-info .artist {
        font-size: 13px;
    }

    .burger-menu {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .burger-line {
        width: 20px;
    }

    .image-preview {
        width: 140px;
        height: 140px;
    }

    .detail-cover-wrapper {
        width: 180px;
        height: 180px;
    }

    .vinyl-container {
        width: 180px;
        height: 180px;
    }

    .vinyl-disc {
        width: 160px;
        height: 160px;
    }

    .vinyl-jacket {
        width: 160px;
        height: 160px;
    }

    .turntable-plinth {
        min-height: 260px;
    }

    /* Touch-Friendly Targets */
    .action-btn {
        width: 44px;
        height: 44px;
    }

    .wishlist-btn {
        width: 40px;
        height: 40px;
    }

    .filter-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Reduce particle count via CSS animation duration */
    .floating-note {
        animation-duration: 12s !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 100px 16px 40px !important;
    }

    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-card {
        width: auto;
        max-width: none;
    }

    .modal {
        max-height: 100vh;
        border-radius: 0;
    }

    .record-detail-container {
        height: 100vh;
    }
}

/* Song Inputs Accessibility Mobile */
@media (max-width: 768px) {
    .song-inputs {
        flex-direction: column !important;
        gap: 6px !important;
    }
}