:root {
    /* Light Theme (Off-White) */
    --bg-color: #f7f7f5;
    /* Warm off-white */
    --panel-bg: #ffffff;
    /* Pure white panels */
    --text-color: #2d2d2d;
    /* Dark grey text */
    --accent-color: #f24333;
    /* burnt orange */
    --border-color: #e0e0e0;
    /* Light grey border */
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    /* Globally remove underline */
}

a,
button,
input {
    outline: none !important;
    /* Globally remove focus outline */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    padding-top: 85px;
    /* Prevent content overlap with fixed header */
}

/* Typography & Utils */
.section-title {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    /* Fixed instead of Sticky */
    width: 100%;
    top: 0;
    left: 0;
    /* Ensure left alignment */
    background: rgba(255, 255, 255, 0.98);
    /* Less transparent */
    backdrop-filter: blur(10px);
    z-index: 999;
    /* Standard high z-index */
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    color: #000;
    min-width: 150px;
}

.mobile-actions {
    display: none;
}

/* Search Wrapper */
.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 2rem;
}

#search-input {
    width: 100%;
    background: #f4f4f4;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    color: #000;
    font-family: var(--font-main);
    font-size: 0.8rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(238, 108, 77, 0.1);
}

/* Autocomplete Dropdown */
.dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 101;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.result-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 2px;
}

.result-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Modal Extras */
.modal-footer-link {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#get-password-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: color 0.3s;
}

#get-password-link:hover {
    color: #d65538;
}

.result-title {
    font-size: 0.8rem;
    color: #000;
    font-weight: 500;
}

.result-artist {
    font-size: 0.7rem;
    color: #666;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem;
    margin-left: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Layout: 3:1 Split */
.main-layout {
    display: flex;
    min-height: 100vh;
}

.master-showcase {
    flex: 3;
    /* 75% width */
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    min-width: 0;
    /* Prevents flex blowout */
}

.ranking-showcase {
    flex: 1;
    /* 25% width */
    padding: 3rem;
    background: var(--panel-bg);
    min-width: 300px;
    /* Ensure visibility */
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 tracks per row */
    gap: 2rem;
}

/* Track Cards */
.track-card {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.track-card:hover {
    opacity: 0.7;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #eeeeee;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #111;
}

.card-info p {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Ranking List */
.ranking-list {
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.rank-item:hover {
    background: #f4f4f4;
    border-radius: 4px;
    padding-left: 10px;
    margin-left: -10px;
}

.rank-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ccc;
    width: 30px;
    margin-right: 0.5rem;
}

.mini-art {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 1rem;
    background: #eee;
}

.rank-details h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
}

.rank-details p {
    font-size: 0.7rem;
    color: #666;
}


/* Membership View */
#membership-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f7f7f5;
    /* Ensure opaque background */
    z-index: 200;
    padding: 3rem;
    overflow-y: auto;
    padding-top: 6rem;
}

/* Track Landing Page */
.track-landing {
    position: fixed;
    top: 80px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-color);
    z-index: 50;
    padding: 3rem;
    overflow-y: auto;
}

.nav-back,
.back-nav-btn {
    background: none;
    border: none;
    margin-bottom: 2rem;
    cursor: pointer;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-back:hover {
    color: var(--accent-color);
}

.track-detaill-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 5rem;
    gap: 5rem;
    align-items: flex-start;
}

.track-artwork {
    flex: 1;
    max-width: 500px;
}

.track-artwork img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.track-info {
    flex: 1;
    padding-top: 2rem;
}

#detail-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: #000;
}

#detail-genre {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

#detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 3rem;
    max-width: 500px;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
    /* Keep buttons from getting too wide */
}

/* Make Play Preview span full width */
.controls button:first-child {
    grid-column: span 2;
}

.controls .btn {
    height: 100%;
    /* Stretch to fill grid cell */
    min-height: 54px;
    /* Ensure a consistent minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .controls button:first-child {
        grid-column: span 1;
        /* Reset span */
    }
}

.btn {
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered content */
    gap: 10px;
    transition: all 0.3s;
    border-radius: 6px;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--border-color);
    color: #999;
}

.primary-btn {
    background: transparent;
    color: var(--accent-color);
}

.primary-btn:hover {
    background: rgba(238, 108, 77, 0.1);
}

.secondary-btn,
.full-width {
    background: var(--accent-color);
    color: #fff;
}

.secondary-btn:hover,
.full-width:hover {
    background: #d65538;
    /* Darker orange */
    color: #fff;
    opacity: 1;
}

.feedback {
    margin-top: 1rem;
    font-size: 0.8rem;
    min-height: 1.2em;
    font-weight: 500;
}

.feedback.success {
    color: #2ecc71;
}

.feedback.error {
    color: #e74c3c;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border: 1px solid var(--border-color);
    color: #333;
    padding: 3rem;
    width: 90%;
    max-width: 550px;
    /* Made bigger */
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.or-divider span {
    margin: 0 1rem;
}

.bandcamp-btn {
    background: #629aa9;
    /* Bandcamp-ish teal */
    color: #fff;
    border: none;
}

.bandcamp-btn:hover {
    background: #4b7d8b;
    color: #fff;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #000;
}

.modal-content p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2rem;
}

.more-like-this-container {
    width: 90%;
    max-width: 1100px;
    margin: 4rem auto 2rem;
    /* Top spacing and centering */
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

/* --- Access Page Specifics --- */
.access-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-color);
    padding: 4rem 2rem;
}

.access-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 3rem;
    color: #111;
    text-transform: uppercase;
}

.access-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.access-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #111;
}

.access-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.plan-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.plan-badge {
    background: #fff0eb;
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--accent-color);
    font-weight: bold;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #111;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.plan-btn:hover {
    background: var(--accent-color);
}

.featured-plan {
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(238, 108, 77, 0.1);
}

.featured-plan::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    padding: 4px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.featured-plan .plan-btn {
    background: var(--accent-color);
}

.featured-plan .plan-btn:hover {
    background: #d65538;
}

.back-link-access {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link-access:hover {
    color: var(--accent-color);
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    color: #000;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--font-main);
    border-radius: 4px;
}

.full-width {
    width: 100%;
}

.feedback {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 1.2em;
}

.feedback.error {
    color: red;
}

.feedback.success {
    color: green;
}

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

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header */
    header {
        padding: 1.5rem;
    }

    /* Main Layout - Stack Vertical */
    .main-layout {
        flex-direction: column;
    }

    .master-showcase {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 1.5rem;
    }

    .ranking-showcase {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    /* Grid - 2 per row on mobile */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Membership View Mobile */
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .member-card {
        padding: 1.5rem;
    }

    /* Track Landing Page */
    .track-landing {
        top: 80px;
        height: calc(100vh - 80px);
        z-index: 90;
        /* Below header (100) but above content */
        padding: 2rem 1.5rem;
    }

    .nav-back,
    .back-nav-btn {
        margin-bottom: 2rem;
    }

    .track-detaill-container {
        flex-direction: column;
        gap: 2rem;
    }

    .track-artwork {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .track-artwork img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .track-info {
        padding-top: 0;
        width: 100%;
        text-align: center;
    }

    #detail-title {
        font-size: 2.5rem;
    }

    #detail-desc {
        margin: 0 auto 3rem;
    }

    .controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

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

    /* Modal */
    .modal-content {
        width: 90%;
        padding: 2rem;
    }

    .desktop-only {
        display: none !important;
        /* Force hide desktop elements */
    }

    .mobile-actions {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }



    .mobile-nav-btn {
        display: block;
    }

    .logo {
        font-size: 1rem;
        flex: 1;
        /* Allow logo to take space if needed */
        text-align: left;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols, standard for shops */
        gap: 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.7rem;
    }
}

/* --- Mobile Navigation Components --- */
.mobile-nav-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.mobile-nav-btn:hover {
    opacity: 0.6;
}

/* Ensure icons fit nicely */
.mobile-nav-btn i {
    display: block;
}

/* Mobile Overlay - Full Screen */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #111;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
    align-items: center;
}

.mobile-nav-links a {
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
}

.mobile-search-container {
    padding-top: 2rem;
}

.mobile-search-container input {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #111;
    outline: none;
    background: transparent;
    font-family: var(--font-main);
    color: #000;
    border-radius: 0;
}

/* --- Homepage Carousel --- */
.carousel-container {
    height: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* --- Upcoming Shows --- */
.shows-section {
    margin-bottom: 3rem;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.show-card {
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
    min-height: 120px;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
}

.show-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.show-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.show-venue {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #000;
}

.show-location {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: auto;
    /* Push button down */
}

.show-btn {
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    text-align: center;
    display: inline-block;
    color: #000;
    /* Ensure text color is visible */
    background-color: transparent;
    /* Ensure background is transparent */
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.show-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.view-all-card {
    background: var(--text-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.view-all-card:hover {
    background: var(--accent-color);
}

/* --- Carousel Controls --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* --- Pagination Controls --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: var(--border-color);
}

.page-info {
    font-size: 0.9rem;
    color: #666;
}

/* --- YouTube & M-House Carousels (Horizontal Scroll) --- */
.horizontal-scroll-container {
    position: relative;
    margin-bottom: 3rem;
}

.scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Firefox */
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.video-card {
    min-width: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mhouse-card {
    min-width: 200px;
    cursor: pointer;
    flex-shrink: 0;
}

.mhouse-card img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.3s;
}

.mhouse-card:hover img {
    transform: scale(1.05);
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}

.mhouse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

@media(max-width: 768px) {

    /* Mobile Header & Body Adjustments */
    header {
        padding: 1rem 1.5rem;
    }

    body {
        padding-top: 70px;
    }

    /* --- Mobile Layout Reordering --- */
    .main-layout {
        flex-direction: column;
    }

    .master-showcase {
        display: contents;
    }

    /* 1. Carousel */
    .carousel-container {
        order: 1;
        height: 250px;
        margin: 1.5rem;
        width: auto;
    }

    .carousel-caption {
        left: 1rem;
        bottom: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    /* 2. Ranking (Horizontal Scroll List) */
    .ranking-showcase {
        order: 2;
        width: 100%;
        padding: 0 1.5rem 2rem;
        background: transparent;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-width: 0;
    }

    .ranking-list {
        display: flex;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        /* Title stays, list scrolls */
        padding-bottom: 1rem;
        /* Space for scrollbar if any */
        scrollbar-width: none;
    }

    .ranking-list::-webkit-scrollbar {
        display: none;
    }

    .rank-item {
        flex-direction: column;
        min-width: 140px;
        width: 140px;
        border: none;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        background: transparent !important;
        position: relative;
    }

    .rank-item:hover {
        padding-left: 0;
        margin-left: 0;
        background: transparent;
    }

    .rank-number {
        display: block;
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.7rem;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 2px 6px;
        border-radius: 4px;
        z-index: 2;
        width: auto;
        margin: 0;
    }

    .mini-art {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin-right: 0;
        margin-bottom: 0.5rem;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .rank-details {
        width: 100%;
        text-align: left;
    }

    .rank-details h4 {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rank-details p {
        display: none;
        /* Hide genre to save space if needed? User asked for "track name on bottom". Keeping genre is fine if fits. */
        display: block;
        font-size: 0.65rem;
    }

    /* 3. Tracks */
    .tracks-section {
        order: 3;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    /* 4. Shows (Horizontal Scroll) */
    .shows-section {
        order: 4;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .shows-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        width: 100%;
        grid-template-columns: none;
        /* Override grid */
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .shows-grid::-webkit-scrollbar {
        display: none;
    }

    .show-card {
        min-width: 260px;
        /* Wider for horizontal scroll readability */
        flex-shrink: 0;
    }

    .view-all-card {
        min-width: 150px;
    }

    /* 5. Videos */
    .video-carousel-section {
        order: 5;
        padding: 2rem 1.5rem;
    }

    /* 6. M-House (Smaller Arts + Text) */
    .mhouse-section {
        order: 6;
        padding: 2rem 1.5rem 4rem;
    }

    .mhouse-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mhouse-card {
        min-width: 100px;
        /* 50% smaller approx (was 200) */
    }

    /* New class for MHouse text */
    .mhouse-info {
        font-size: 0.7rem;
        margin-top: 0.5rem;
        line-height: 1.2;
    }

    .mhouse-info h4 {
        font-weight: 600;
        color: #000;
        margin-bottom: 2px;
    }

    .mhouse-info p {
        color: #666;
        font-size: 0.65rem;
    }
}

/* --- Footer --- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 3rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: #111;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
    border-left: 1px solid #eee;
    padding-left: 2rem;
}

.copyright {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Footer */
@media(max-width: 768px) {
    .site-footer {
        padding: 2rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .social-links {
        margin: 0;
        padding: 0;
        border: none;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .footer-logo {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }
}

/* Global Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-overlay.hidden {
    display: none;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.auth-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--accent-color);
}

.auth-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.link-btn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    width: fit-content;
    margin: 0 auto;
}

.link-btn:hover {
    border-bottom-color: var(--accent-color);
}