@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --color-primary: #e62117;
    --color-primary-hover: #cc1e12;
    --color-bg-dark: #121212;
    --color-bg-card: #1e1e1e;
    --color-bg-hover: #2a2a2a;
    --color-text: #ffffff;
    --color-text-secondary: #aaaaaa;
    --sidebar-width: 250px;
    --sidebar-width-collapsed: 72px;
    --header-height: 64px;
    --player-height: 0px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

/* Layout Structure */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Custom Scrollbar for entire website */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #303030;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #424242;
}

::-webkit-scrollbar-corner {
    background: #121212;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #303030 #121212;
}

/* Sidebar Styles */
.music-sidebar {
    width: var(--sidebar-width);
    background-color: rgba(0, 0, 0, 0.6);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(50px);
    transition: width 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.music-sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.music-sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.music-sidebar.collapsed span:not(.w-8),
.music-sidebar.collapsed .nav-section-title {
    display: none;
}

.music-sidebar.collapsed a img.w-8,
.music-sidebar.collapsed .flex.items-center.gap-3 img {
    display: none;
}

.music-sidebar.collapsed .p-5.mt-4.bg-gray-800\/50.rounded-lg.mx-3 {
    display: none;
}

.music-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
}

.music-sidebar.collapsed .nav-item i {
    margin-right: 0;
}

/* Sidebar Header - Flexbox untuk alignment yang tepat */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: var(--header-height);
    gap: 12px;
}

/* Toggle button - sama seperti nav item untuk alignment */
.sidebar-toggle-btn {
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Sama seperti nav-item styling */
    font-size: 20px;
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}

.music-sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

/* Logo di sidebar */
.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    flex: 1;
    transition: all 0.3s ease;
}

.logo-image {
    width: 150px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Close button untuk mobile */
.sidebar-close-btn {
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-section {
    padding: 0 16px;
    margin-bottom: 8px;
}

.nav-section-title {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0 12px 12px;
}

/* Nav Items - Restore hover & active states */
.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    height: 40px;
}

.nav-item i {
    font-size: 20px;
    margin-right: 16px;
    opacity: 0.9;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Hover State */
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.nav-item:hover i {
    opacity: 1;
    color: var(--color-text);
}

/* Active State */
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    /* Primary color with opacity */
    color: var(--color-text-secondary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--color-text-secondary);
    opacity: 1;
}

/* Focus State for accessibility */
.nav-item:focus {
    outline: 2px solid var(--color-text-secondary);
    outline-offset: 2px;
}

/* Sidebar collapsed state */
.music-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 12px 8px;
}

.music-sidebar.collapsed .sidebar-logo {
    display: none;
    /* Logo sidebar hilang saat collapsed */
}

.music-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

.music-sidebar.collapsed .nav-item i {
    margin-right: 0;
}

.music-sidebar.collapsed .nav-item span,
.music-sidebar.collapsed .nav-section-title {
    display: none;
}

/* Collapsed state hover & active */
.music-sidebar.collapsed .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.music-sidebar.collapsed .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.music-sidebar.collapsed .nav-item.active i {
    color: var(--color-primary);
}

/* Enhanced hover effects */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 0 3px 3px 0;
}

.nav-item.active::before {
    transform: scaleY(1);
}

/* Smooth transitions for all states */
.nav-item,
.nav-item i,
.nav-item span {
    transition: all 0.2s ease;
}

/* Special styling for Library section */
.nav-section:last-child .nav-item {
    border-left: 2px solid transparent;
}

.nav-section:last-child .nav-item:hover {
    border-left-color: rgba(255, 255, 255, 0.2);
}

.nav-section:last-child .nav-item.active {
    border-left-color: var(--color-primary);
}

/* Guest section styling */
.nav-section .p-5 {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 16px 0;
    transition: background-color 0.2s ease;
}

.nav-section .p-5:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Sign in button in guest section */
.nav-section .p-5 a {
    transition: all 0.2s ease;
}

.nav-section .p-5 a:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 33, 23, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .nav-item {
        padding: 12px 16px;
        margin-bottom: 6px;
    }

    .nav-item i {
        margin-right: 20px;
        font-size: 22px;
    }

    /* Larger touch targets for mobile */
    .nav-item {
        min-height: 48px;
    }
}

/* Animation for active state change */
@keyframes activeSlide {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.nav-item.active::before {
    animation: activeSlide 0.3s ease;
}

/* Ripple effect on click (optional) */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.nav-item:active::after {
    width: 200px;
    height: 200px;
}

/* Header Styles */
.music-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: left 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.sidebar-collapsed .music-header {
    left: var(--sidebar-width-collapsed);
}

/* Header Sections */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 60px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header Logo */
.header-logo {
    display: none;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Show header logo ONLY when sidebar is collapsed (desktop only) */
body.sidebar-collapsed .header-logo {
    display: flex !important;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 0 16px 0 40px;
    color: var(--color-text);
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-secondary);
    font-size: 18px;
}

/* User Section */
.header-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-link {
    position: relative;
    text-decoration: none;
}

.cart-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.cart-icon-wrapper i {
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.cart-link:hover .cart-icon-wrapper i {
    color: var(--color-text);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background-color: var(--color-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-avatar:hover {
    background-color: #4B5563;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 240px;
    background-color: #1F2937;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 16px;
    z-index: 50;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: var(--color-text);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.login-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .music-header {
        left: 0;
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-logo {
        display: none !important;
        /* Force hide on mobile */
    }

    body.sidebar-collapsed .header-logo {
        display: none !important;
        /* Still hidden on mobile */
    }

    .search-container {
        flex: 1;
        max-width: none;
        margin: 0 12px;
    }

    .header-user-section {
        gap: 8px;
    }

    .cart-icon-wrapper,
    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .user-dropdown {
        width: 220px;
    }
}

@media (max-width: 576px) {
    .music-header {
        padding: 0 12px;
    }

    .search-container {
        margin: 0 8px;
    }

    .header-user-section {
        gap: 6px;
    }

    .cart-icon-wrapper,
    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .cart-icon-wrapper i {
        font-size: 18px;
    }

    .user-dropdown {
        width: 200px;
        right: -8px;
        /* Adjust for screen edge */
    }
}

/* Desktop collapsed state adjustments */
@media (min-width: 993px) {
    body.sidebar-collapsed .header-left {
        min-width: 180px;
        /* Make room for logo when collapsed */
    }
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    margin-bottom: var(--player-height);
    height: calc(100vh - var(--header-height) - var(--player-height));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 32px;
    transition: margin-left 0.3s ease;
    background-color: rgba(0, 0, 0, 0.6);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

/* Music Cards Styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.section-link {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--color-text);
}

.music-card {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s;
}

.music-card:hover {
    background-color: var(--color-bg-hover);
}

.music-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.music-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.music-card:hover .music-card-img img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.music-card:hover .card-overlay {
    opacity: 1;
}

.play-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s;
}

.play-button i {
    font-size: 24px;
}

.music-card:hover .play-button {
    transform: translateY(0);
    opacity: 1;
}

.play-button:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
}

.music-card-content {
    padding: 12px;
}

.music-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Styles */
.modal-content {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Horizontal scrolling containers for mobile */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 8px;
    gap: 16px;
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Fix card size within scroll containers */
.scroll-container .music-card {
    flex: 0 0 auto;
    width: 150px;
}

.scroll-container .chart-card {
    flex: 0 0 auto;
    width: 100%;
}

@media (max-width: 640px) {
    .scroll-container .music-card {
        width: 140px;
    }
}

/* Category pills at top */
.category-nav {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 0;
    gap: 12px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.category-pill.active {
    background-color: white;
    color: black;
}

.category-pill:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Styles */
@media (max-width: 992px) {
    .music-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .music-sidebar.show {
        transform: translateX(0);
    }

    .music-header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    body.sidebar-collapsed .music-header,
    body.sidebar-collapsed .main-content {
        left: 0;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .player-left {
        width: 40%;
    }

    .player-center {
        width: 60%;
    }

    .player-right {
        display: none;
    }

    .main-content {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .player-time {
        display: none;
    }

    .player-left {
        width: 50%;
    }

    .player-center {
        width: 50%;
    }

    .search-container {
        max-width: none;
        width: 100%;
    }

    .music-header {
        padding: 0 16px;
    }
}

/* Enhanced scroll container styling */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
    padding: 8px 4px 16px 4px;
    margin-left: -4px;
    margin-right: -4px;
}

/* Styling for scroll items */
.scroll-item {
    flex: 0 0 auto;
    width: 180px;
    transition: transform 0.2s;
}

.scroll-item:hover {
    transform: translateY(-5px);
}

/* Artist and composer specific cards */
.artist-card,
.composer-card {
    width: 160px;
}

/* Card hover effects */
.music-card-item .play-song-btn,
.cover-card .play-song-btn,
.new-release-card .play-song-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card-item:hover .play-song-btn,
.cover-card:hover .play-song-btn,
.new-release-card:hover .play-song-btn {
    opacity: 1;
}

/* Section header styling */
.section-header {
    position: relative;
}

.section-header .section-title {
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #e62117;
    border-radius: 3px;
}

/* Improved section link styling */
.section-link {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.section-link:hover {
    color: #e62117;
}

/* Improved animations for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-item {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

/* Mix trending page specific styles */
.group:hover .ti-dots-vertical {
    color: var(--color-text);
}

.group {
    cursor: pointer;
}

/* Animation for play button hover */
@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.group:hover .ti-player-play,
.relative:hover .ti-player-play {
    animation: scaleIn 0.2s ease forwards;
}

/* Hide/show buttons based on screen size */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/* Mobile close button styling */
.sidebar-toggle-btn,
.sidebar-close-btn {
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.sidebar-toggle-btn:hover,
.sidebar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

/* Mobile styles */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Category Results Grid */
#categoryGrid .music-card {
    transition: transform 0.2s ease;
}

#categoryGrid .music-card:hover {
    transform: translateY(-4px);
}

/* Smooth transitions for section visibility */
section {
    transition: opacity 0.3s ease;
}

/* Category pill cursor */
.category-pill {
    cursor: pointer;
}

/* Artist Profile Specific Styles */

/* Facebook-style Clean Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Profile Tab Transitions */
.profile-tab-content {
    transition: all 0.3s ease-in-out;
}

.profile-tab-content.hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* Profile Tab Button Styles */
.profile-tab-button {
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.profile-tab-button:hover:not(.text-red-600) {
    background-color: rgba(255, 255, 255, 0.05);
}

.profile-tab-button.active {
    border-bottom-color: var(--color-primary);
    background-color: rgba(230, 33, 23, 0.1);
}

/* Artist Profile Song List Styles */
.song-row {
    display: flex;
    align-items: center;
    min-height: 68px;
    cursor: pointer;
}

.song-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Artist Profile Social Icons */
.social-hover-red:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}

/* Artist Profile Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .song-row {
        min-height: 76px;
        padding: 12px 16px;
    }

    .song-row .w-12.h-12 {
        width: 48px;
        height: 48px;
    }

    .song-row .truncate {
        max-width: calc(100vw - 180px);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .song-row {
        padding: 14px 16px;
    }
}

@media (min-width: 769px) {
    .song-row {
        padding: 16px 20px;
    }
}

/* Artist Profile Enhanced Scrollbar */
.artist-profile-content ::-webkit-scrollbar {
    width: 6px;
}

.artist-profile-content ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.artist-profile-content ::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.3);
    border-radius: 3px;
}

.artist-profile-content ::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.5);
}

/* End Artist Profile Specific Styles */

/* Song Promo Page Styles */
.promo-container {
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
}

.main-promo-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cover-section {
    position: sticky;
    top: 20px;
}

.cover-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.cover-image:hover {
    transform: scale(1.02);
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--color-text), #1db954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-promo {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-promo-primary {
    background-color: #1db954;
    color: var(--color-text);
}

.btn-promo-primary:hover {
    background-color: #1ed760;
    transform: translateY(-1px);
    color: var(--color-text);
}

.btn-promo-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid #1db954;
}

.btn-promo-secondary:hover {
    background-color: #1db954;
    transform: translateY(-1px);
    color: var(--color-text);
}

.btn-promo-tertiary {
    background-color: #6f42c1;
    color: var(--color-text);
    border: 2px solid #8a63d2;
}

.btn-promo-tertiary:hover {
    background-color: #8a63d2;
    transform: translateY(-1px);
    color: var(--color-text);
}

.tab-navigation {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    color: #1db954;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1db954;
    border-radius: 2px;
}

.tab-content {
    display: none;
    animation: promoFadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes promoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.lyrics-content {
    line-height: 1.8;
    font-size: 16px;
    color: var(--color-text);
}

.lyrics-verse {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--color-bg-card);
    border-radius: 8px;
    border-left: 4px solid #1db954;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--color-bg-card);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: var(--color-bg-hover);
}

/* Video Player Page Styles */
.video-player-container {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Content Wrapper - Konsistensi Maksimal */
.video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-content-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    object-fit: fill;
    background-color: #000;
}

/* Override external iframe styles */
.video-content-wrapper iframe[style] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force consistent aspect ratio */
.video-player-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

@media (max-width: 1200px) {
    .video-player-wrapper {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }

    .video-content-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }
}

.song-info-section {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 24px;
}

.song-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artist-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.artist-details {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.song-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
}

.video-tabs .nav-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tabs .nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.detail-content {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.lyrics-content {
    padding: 16px 0;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-heading {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.lyrics-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.versions-content {
    padding: 16px 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========================================== */
/* YOUTUBE STYLE MUSIC PLAYER PAGE STYLES   */
/* ========================================== */

/* Main Layout Container - Made Wider */
.youtube-player-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    overflow-y: auto;
    max-width: none;
    width: 100%;
}

/* Main Video Section (Left Side) - Increased Width */
.main-video-section {
    flex: 1;
    max-width: calc(100% - 320px);
    min-width: 0;
}

/* Video Player Wrapper */
.video-player-wrapper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Force consistent width regardless of iframe content */
    min-height: 400px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #000;
    /* Ensure container maintains size */
    min-height: 400px;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
    /* Force iframe to fill entire container */
    object-fit: cover;
    background-color: #000;
}

/* Video Content Wrapper - Konsistensi Maksimal */
.video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-content-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    object-fit: fill;
    background-color: #000;
}

/* Override external iframe styles */
.video-content-wrapper iframe[style] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force consistent aspect ratio */
.video-player-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

@media (max-width: 1200px) {
    .video-player-wrapper {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }

    .video-content-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }
}

.song-info-section {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 24px;
}

.song-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artist-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.artist-details {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.song-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
}

.video-tabs .nav-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tabs .nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.detail-content {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.lyrics-content {
    padding: 16px 0;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-heading {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.lyrics-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.versions-content {
    padding: 16px 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========================================== */
/* YOUTUBE STYLE MUSIC PLAYER PAGE STYLES   */
/* ========================================== */

/* Main Layout Container - Made Wider */
.youtube-player-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    overflow-y: auto;
    max-width: none;
    width: 100%;
}

/* Main Video Section (Left Side) - Increased Width */
.main-video-section {
    flex: 1;
    max-width: calc(100% - 320px);
    min-width: 0;
}

/* Video Player Wrapper */
.video-player-wrapper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Force consistent width regardless of iframe content */
    min-height: 400px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #000;
    /* Ensure container maintains size */
    min-height: 400px;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
    /* Force iframe to fill entire container */
    object-fit: cover;
    background-color: #000;
}

/* Video Content Wrapper - Konsistensi Maksimal */
.video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-content-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    object-fit: fill;
    background-color: #000;
}

/* Override external iframe styles */
.video-content-wrapper iframe[style] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force consistent aspect ratio */
.video-player-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

@media (max-width: 1200px) {
    .video-player-wrapper {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }

    .video-content-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }
}

.song-info-section {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 24px;
}

.song-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artist-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.artist-details {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.song-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
}

.video-tabs .nav-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tabs .nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.detail-content {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.lyrics-content {
    padding: 16px 0;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-heading {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.lyrics-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.versions-content {
    padding: 16px 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========================================== */
/* YOUTUBE STYLE MUSIC PLAYER PAGE STYLES   */
/* ========================================== */

/* Main Layout Container - Made Wider */
.youtube-player-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    overflow-y: auto;
    max-width: none;
    width: 100%;
}

/* Main Video Section (Left Side) - Increased Width */
.main-video-section {
    flex: 1;
    max-width: calc(100% - 320px);
    min-width: 0;
}

/* Video Player Wrapper */
.video-player-wrapper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Force consistent width regardless of iframe content */
    min-height: 400px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #000;
    /* Ensure container maintains size */
    min-height: 400px;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
    /* Force iframe to fill entire container */
    object-fit: cover;
    background-color: #000;
}

/* Video Content Wrapper - Konsistensi Maksimal */
.video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-content-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    object-fit: fill;
    background-color: #000;
}

/* Override external iframe styles */
.video-content-wrapper iframe[style] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force consistent aspect ratio */
.video-player-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

@media (max-width: 1200px) {
    .video-player-wrapper {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }

    .video-content-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }
}

.song-info-section {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 24px;
}

.song-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artist-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.artist-details {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.song-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
}

.video-tabs .nav-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tabs .nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.detail-content {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.lyrics-content {
    padding: 16px 0;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-heading {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.lyrics-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.versions-content {
    padding: 16px 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========================================== */
/* YOUTUBE STYLE MUSIC PLAYER PAGE STYLES   */
/* ========================================== */

/* Main Layout Container - Made Wider */
.youtube-player-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    overflow-y: auto;
    max-width: none;
    width: 100%;
}

/* Main Video Section (Left Side) - Increased Width */
.main-video-section {
    flex: 1;
    max-width: calc(100% - 320px);
    min-width: 0;
}

/* Video Player Wrapper */
.video-player-wrapper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Force consistent width regardless of iframe content */
    min-height: 400px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #000;
    /* Ensure container maintains size */
    min-height: 400px;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
    /* Force iframe to fill entire container */
    object-fit: cover;
    background-color: #000;
}

/* Video Content Wrapper - Konsistensi Maksimal */
.video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-content-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    object-fit: fill;
    background-color: #000;
}

/* Override external iframe styles */
.video-content-wrapper iframe[style] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force consistent aspect ratio */
.video-player-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

@media (max-width: 1200px) {
    .video-player-wrapper {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }

    .video-content-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }
}

.song-info-section {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 24px;
}

.song-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artist-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.artist-details {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.song-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
}

.video-tabs .nav-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tabs .nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.detail-content {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.lyrics-content {
    padding: 16px 0;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-heading {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.lyrics-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.versions-content {
    padding: 16px 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}