/* VORTEX CINEMA - PREMIUM STREAMING PLATFORM */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3f 50%, #0f0f23 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: fixed;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    top: 0;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: -1px;
    display: flex;
    gap: 0;
}

.logo-vortex {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.logo-cinema {
    color: #e50914;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.nav-center {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #e50914;
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container:focus-within {
    border-color: #e50914;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-container input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: white;
    outline: none;
    width: 200px;
    font-size: 13px;
    transition: width 0.3s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-container input:focus {
    width: 350px;
}

.search-container button {
    background: transparent;
    border: none;
    color: #888;
    padding: 0 16px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.search-container button:hover {
    color: #e50914;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(229, 9, 20, 0.15);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.profile-trigger:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: #e50914;
}

.avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e50914 0%, #ff4444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100%;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    z-index: 3000;
    transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 60px 30px 30px;
    border-left: 1px solid rgba(229, 9, 20, 0.2);
    box-shadow: -40px 0 100px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-header h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.close-sidebar:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
}

.sidebar-section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.15);
}

.sidebar-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: #e50914;
    letter-spacing: 2.5px;
    font-weight: 800;
}

.count-badge {
    font-size: 10px;
    background: rgba(229, 9, 20, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    color: #ff8888;
    font-weight: 700;
}

.mini-card {
    display: flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 9, 20, 0.1);
}

.mini-card:hover {
    background: rgba(229, 9, 20, 0.15);
    transform: translateX(-8px);
    border-color: #e50914;
}

.mini-card img {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mini-card-info {
    flex: 1;
}

.mini-card-info h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.type-tag {
    font-size: 9px;
    background: rgba(229, 9, 20, 0.25);
    color: #ff7777;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
}

.ep-tag {
    font-size: 9px;
    background: rgba(0, 180, 219, 0.25);
    color: #00d4ff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 6px;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #555;
    font-size: 13px;
    font-style: italic;
}

.clear-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #888;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 12px;
}

.clear-btn:hover {
    background: #e50914;
    color: white;
    border-color: #e50914;
}

/* ==================== HERO SECTION ==================== */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 60px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%;
    filter: brightness(0.35) contrast(1.2) saturate(1.1);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, #0f0f23 0%, rgba(15, 15, 35, 0.5) 40%, transparent 100%);
}

.hero-content {
    max-width: 850px;
    z-index: 10;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trending-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-content p {
    color: #bbb;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.play-main-btn {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #000;
    border: none;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

.list-btn {
    background: rgba(229, 9, 20, 0.2);
    color: white;
    border: 1px solid rgba(229, 9, 20, 0.4);
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list-btn:hover {
    background: rgba(229, 9, 20, 0.3);
    border-color: #e50914;
    transform: translateY(-3px);
}

.share-btn {
    background: rgba(0, 180, 219, 0.2);
    color: white;
    border: 1px solid rgba(0, 180, 219, 0.4);
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn:hover {
    background: rgba(0, 180, 219, 0.3);
    border-color: #00d4ff;
    transform: translateY(-3px);
}

/* ==================== CONTROLS ==================== */
.controls-area {
    animation: slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selector-group {
    margin-bottom: 20px;
}

.selector-group span {
    display: block;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.chip-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.chip-container::-webkit-scrollbar {
    height: 4px;
}

.chip-container::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.3);
    border-radius: 10px;
}

.selector-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 13px;
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.selector-btn.active {
    background: linear-gradient(135deg, #e50914 0%, #ff4444 100%);
    border-color: #e50914;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.anime-controls {
    animation: slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.audio-buttons {
    display: flex;
    gap: 10px;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.3);
    color: #00d4ff;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-btn:hover {
    background: rgba(0, 180, 219, 0.2);
    border-color: #00d4ff;
}

.audio-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    color: #000;
    border-color: #00d4ff;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

/* ==================== PLAYER ==================== */
.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.overlay-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.playing-info {
    flex: 1;
    min-width: 250px;
}

.playing-info h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.server-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#serverSelect {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(229, 9, 20, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
}

#serverSelect:hover {
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.15);
}

.close-player-btn {
    background: linear-gradient(135deg, #e50914 0%, #ff4444 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    white-space: nowrap;
}

.close-player-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.5);
}

.player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(229, 9, 20, 0.2);
    box-shadow: 0 20px 60px rgba(229, 9, 20, 0.15);
    margin-bottom: 16px;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.player-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: white;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(229, 9, 20, 0.3);
    border-color: #e50914;
    transform: translateY(-2px);
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 0 5% 120px;
    margin-top: -100px;
    position: relative;
    z-index: 20;
}

.row-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 60px 0 25px;
    letter-spacing: -0.5px;
}

.row-container {
    position: relative;
    margin-bottom: 30px;
}

.grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.grid::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #111;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 270px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    background: linear-gradient(135deg, #e50914 0%, #ff4444 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
}

.card-play:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6);
}

.card-info {
    padding: 16px;
}

.card-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.rating {
    color: #ffd700;
    font-weight: 700;
}

.year {
    color: #666;
}

.card:hover {
    transform: translateY(-12px);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.3);
}

/* ==================== SCROLL HANDLES ==================== */
.handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6%;
    background: linear-gradient(90deg, rgba(15, 15, 35, 0.9) 0%, transparent 100%);
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-container:hover .handle {
    opacity: 1;
}

.left-handle {
    left: 0;
}

.right-handle {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 15, 35, 0.9) 100%);
}

.handle:hover {
    background: rgba(229, 9, 20, 0.3);
    color: #e50914;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-center {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .card {
        min-width: 160px;
    }

    .player-overlay {
        padding: 30px 15px;
    }

    .overlay-content {
        max-width: 900px;
    }

    .playing-info h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .search-container input {
        width: 150px;
    }

    .search-container input:focus {
        width: 250px;
    }

    .hero {
        height: 70vh;
        padding: 0 3%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .play-main-btn,
    .list-btn,
    .share-btn {
        width: 100%;
    }

    .content-section {
        padding: 0 3% 100px;
        margin-top: -60px;
    }

    .card {
        min-width: 140px;
    }

    .player-overlay {
        padding: 20px 10px;
    }

    .overlay-content {
        max-width: 100%;
    }

    .overlay-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .playing-info {
        width: 100%;
    }

    .playing-info h2 {
        font-size: 18px;
    }

    .close-player-btn {
        width: 100%;
        text-align: center;
    }

    .server-wrapper {
        font-size: 10px;
    }

    #serverSelect {
        padding: 5px 10px;
        font-size: 9px;
    }

    .player-controls {
        gap: 8px;
    }

    .control-btn {
        padding: 8px 14px;
        font-size: 11px;
        flex: 1;
        min-width: 100px;
    }

    .row-title {
        font-size: 1.3rem;
        margin: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .profile-trigger span {
        display: none;
    }

    .avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero {
        height: 60vh;
        padding: 0 3%;
        margin-top: 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .hero-meta {
        gap: 12px;
    }

    .meta-item {
        font-size: 11px;
    }

    .content-section {
        padding: 0 3% 80px;
        margin-top: -40px;
    }

    .row-title {
        font-size: 1.1rem;
        margin: 30px 0 15px;
    }

    .card {
        min-width: 120px;
    }

    .card-image {
        height: 180px;
    }

    .card-info h3 {
        font-size: 12px;
    }

    .card-meta {
        font-size: 10px;
    }

    .player-overlay {
        padding: 15px 8px;
    }

    .playing-info h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .close-player-btn {
        width: 100%;
        padding: 8px 16px;
        font-size: 10px;
    }

    .player-wrapper {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .server-wrapper {
        font-size: 9px;
        gap: 6px;
    }

    #serverSelect {
        padding: 4px 8px;
        font-size: 8px;
    }

    .player-controls {
        gap: 6px;
    }

    .control-btn {
        padding: 7px 12px;
        font-size: 10px;
        flex: 1;
    }

    .sidebar {
        width: 100%;
        right: -100%;
        padding: 50px 20px 20px;
    }

    .sidebar-header h2 {
        font-size: 22px;
    }

    .mini-card {
        padding: 10px;
    }

    .mini-card img {
        width: 50px;
        height: 70px;
    }

    .mini-card-info h4 {
        font-size: 11px;
    }

    .search-container input {
        width: 120px;
    }

    .search-container input:focus {
        width: 200px;
    }

    .handle {
        width: 8%;
    }

    .trending-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .section-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .chip-container {
        gap: 6px;
    }

    .selector-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .audio-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .card {
        min-width: 100px;
    }

    .card-image {
        height: 150px;
    }

    .play-main-btn,
    .list-btn,
    .share-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .row-title {
        font-size: 1rem;
    }

    .search-container input {
        width: 100px;
    }

    .search-container input:focus {
        width: 180px;
    }

    .player-overlay {
        padding: 12px 5px;
    }

    .playing-info h2 {
        font-size: 14px;
    }

    .server-wrapper {
        font-size: 8px;
        flex-direction: column;
        gap: 4px;
    }

    #serverSelect {
        width: 100%;
        padding: 4px 6px;
        font-size: 7px;
    }

    .close-player-btn {
        padding: 6px 12px;
        font-size: 9px;
    }

    .control-btn {
        padding: 6px 10px;
        font-size: 9px;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.no-scroll {
    overflow: hidden;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .sidebar,
    .handle,
    .hero-btns,
    .player-overlay {
        display: none !important;
    }
}