/* Variables & Reset */
:root {
    --bg-dark: #0f0c29;
    /* Deep Indigo/Black */
    --bg-card: #1a1638;
    /* Rich Violet/Dark */
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    /* Soft Blue-White */
    --accent-primary: #d946ef;
    /* Fuchsia/Sweet Pink */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-glow: rgba(217, 70, 239, 0.4);
    /* Pink Glow */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --nav-height: 80px;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 15, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

.nav-icon-btn {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.nav-icon-btn:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Align to right */
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 8px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* Bridge to prevent dropdown from closing when moving mouse from link to content */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dropdown-content svg {
    width: 18px;
    height: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* "Sweeter" Gradient: Deep Purple to Pink/Orange to Blue */
    background: linear-gradient(135deg, #302b63, #0f0c29);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 22, 0.3), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: #ff0000;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

.play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    /* Optical center */
}

.card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.center-action {
    text-align: center;
}

/* Music Section */
.music {
    background: var(--bg-dark);
    position: relative;
}

.music-content {
    display: flex;
    justify-content: center;
}

.music-card {
    background: linear-gradient(135deg, #1db954 0%, #191414 100%);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-info h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.music-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.btn-spotify {
    background: white;
    color: black;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.btn-spotify:hover {
    transform: scale(1.05);
}

.btn-spotify svg {
    width: 24px;
    height: 24px;
}

.music-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.equalizer {
    display: flex;
    gap: 6px;
    height: 60px;
    align-items: center;
}

.bar {
    width: 8px;
    background: white;
    border-radius: 4px;
    animation: equalize 1s infinite ease-in-out;
}

.bar:nth-child(1) {
    height: 40px;
    animation-delay: 0.1s;
}

.bar:nth-child(2) {
    height: 50px;
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    height: 30px;
    animation-delay: 0.3s;
}

.bar:nth-child(4) {
    height: 45px;
    animation-delay: 0.4s;
}

.bar:nth-child(5) {
    height: 35px;
    animation-delay: 0.5s;
}

@keyframes equalize {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* Connect Section */
.connect {
    background: linear-gradient(to top, #0f172a, var(--bg-dark));
}

.connect-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--bg-card);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-btn.mail:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-main);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    /* Gallery Mobile Adjustments */
    .gallery-container {
        flex-direction: column;
    }

    .gallery-sidebar {
        width: 100% !important;
        max-height: 400px;
    }
}

/* Gallery UI */
.playlist-page-header {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    background: linear-gradient(135deg, #302b63, #0f0c29);
    text-align: center;
}

.gallery-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.gallery-container {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-main {
    flex: 1;
    background: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.5);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.video-list {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

.video-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 1, 0.03);
}

.video-item:hover {
    background: rgba(217, 70, 239, 0.1);
}

.video-item.active {
    background: rgba(217, 70, 239, 0.2);
    border-left: 4px solid var(--accent-primary);
}

.thumb-mini {
    width: 100px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1e293b;
}

.video-item-info {
    flex: 1;
}

.video-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Player Actions area (Like/Sub) */
.player-actions {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-description-area {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-description-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.action-left h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.action-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.action-right {
    display: flex;
    gap: 12px;
}

.btn-yt-sub {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-yt-sub:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.btn-yt-like {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-yt-like:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-list::-webkit-scrollbar {
    width: 6px;
}

.video-list::-webkit-scrollbar-track {
    background: transparent;
}

.video-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}