/*
Theme Name: IndoMusik Radio Pro
Theme URI: https://indomusikradio.com
Author: Your Name
Description: Tema musik streaming profesional
Version: 3.0
License: GPL v2 or later
Text Domain: indomusikradio
*/

/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #121212;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ LAYOUT ============ */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 240px;
    background: #000000;
    padding: 24px 16px;
    flex-shrink: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1DB954;
    padding: 0 8px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
}

.logo span {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    margin-bottom: 24px;
}

.nav-menu li {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    color: #b3b3b3;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu li:hover {
    background: #282828;
    color: #fff;
}

.nav-menu li.active {
    background: #282828;
    color: #fff;
}

.nav-menu li i {
    width: 24px;
    font-size: 18px;
    text-align: center;
}

/* Sidebar Bottom */
.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #282828;
    padding-top: 16px;
}

.sidebar-bottom .nav-menu li {
    font-size: 13px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    flex: 1;
    background: #121212;
    padding: 24px 32px;
    overflow-y: auto;
}

/* ============ HEADER ============ */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 4px;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .search-box {
    background: #282828;
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.header-actions .search-box:focus-within {
    border-color: #1DB954;
    background: #333;
}

.header-actions .search-box input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    font-size: 14px;
    width: 160px;
}

.header-actions .search-box input::placeholder {
    color: #b3b3b3;
}

.header-actions .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    cursor: pointer;
}

/* ============ SECTION TITLE ============ */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .see-all {
    font-size: 13px;
    color: #b3b3b3;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s;
}

.section-title .see-all:hover {
    color: #1DB954;
}

/* ============ CARD GRID ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ============ MUSIC CARD ============ */
.music-card {
    background: #181818;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.music-card:hover {
    background: #282828;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.music-card:hover .play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.music-card .card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 12px;
}

.music-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.music-card:hover .card-image img {
    transform: scale(1.05);
}

.music-card .play-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background: #1DB954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.4);
}

.music-card .play-overlay i {
    color: #000;
    font-size: 20px;
    margin-left: 3px;
}

.music-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card p {
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Featured Card */
.music-card.featured {
    border: 2px solid #1DB954;
}

/* Genre Card */
.music-card.genre-card {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.music-card.genre-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.music-card.genre-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #1DB954, #0d7a3e);
    border-radius: 12px;
    padding: 40px 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 500px;
}

.hero-section .hero-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.hero-section .hero-btn:hover {
    transform: scale(1.05);
    background: #222;
}

/* ============ PLAYER ============ */
.player {
    background: #181818;
    border-top: 1px solid #282828;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 80px;
    z-index: 100;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 180px;
}

.player-left .player-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #282828;
}

.player-left .player-info .title {
    font-weight: 600;
    font-size: 14px;
}

.player-left .player-info .artist {
    font-size: 12px;
    color: #b3b3b3;
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 600px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-controls button {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px;
}

.player-controls button:hover {
    color: #fff;
}

.player-controls .play-btn {
    width: 40px;
    height: 40px;
    background: #1DB954;
    border-radius: 50%;
    color: #000;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.player-controls .play-btn:hover {
    transform: scale(1.06);
    background: #1ed760;
}

.player-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-progress span {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 40px;
}

.player-progress input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #535353;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1DB954;
    cursor: pointer;
}

.player-progress input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1DB954;
    border: none;
    cursor: pointer;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 140px;
    justify-content: flex-end;
}

.player-right i {
    color: #b3b3b3;
    font-size: 16px;
}

.player-right input[type="range"] {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #535353;
    border-radius: 2px;
    outline: none;
}

.player-right input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1DB954;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
        padding: 16px 12px;
    }
    .main-content {
        padding: 16px 20px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 64px;
        padding: 12px 8px;
    }
    .sidebar .logo span,
    .sidebar .nav-menu li span {
        display: none;
    }
    .sidebar .logo {
        justify-content: center;
        padding-bottom: 16px;
    }
    .sidebar .logo i {
        font-size: 28px;
    }
    .sidebar .nav-menu li {
        justify-content: center;
        padding: 10px;
    }
    .sidebar .nav-menu li i {
        margin: 0;
        font-size: 20px;
    }
    .sidebar-bottom .nav-menu li span {
        display: none !important;
    }
    
    .main-content {
        padding: 12px 16px;
    }
    .content-header h1 {
        font-size: 20px;
    }
    .header-actions .search-box input {
        width: 100px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .hero-section {
        padding: 24px;
    }
    .hero-section h2 {
        font-size: 24px;
    }
    
    .player {
        padding: 10px 12px;
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }
    .player-left {
        min-width: 120px;
    }
    .player-right {
        min-width: 100px;
    }
    .player-right input[type="range"] {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .music-card {
        padding: 10px;
    }
    .music-card h4 {
        font-size: 12px;
    }
    .music-card p {
        font-size: 11px;
    }
    .music-card .play-overlay {
        width: 36px;
        height: 36px;
    }
    .music-card .play-overlay i {
        font-size: 14px;
    }
}

/* ============ FIX CLICK ISSUE ============ */
.music-card {
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

.music-card * {
    pointer-events: none !important;
}

.music-card .play-overlay {
    pointer-events: none !important;
}

.music-card a,
.music-card button {
    pointer-events: none !important;
}

/* Make sure cards are clickable */
.music-card img,
.music-card h4,
.music-card p {
    pointer-events: none !important;
}

/* Hover effect */
.music-card:hover {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ NUANSA INDONESIA ============ */
/* Warna Merah Putih */
.merah-putih {
    background: linear-gradient(135deg, #e74c3c 0%, #e74c3c 48%, #fff 48%, #fff 52%, #e74c3c 52%, #e74c3c 100%);
}

/* Batik Pattern Subtle */
.batik-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(29,185,84,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(29,185,84,0.03) 0%, transparent 50%);
}

/* Indonesia Flag Colors */
.text-merah { color: #e74c3c; }
.text-putih { color: #fff; }
.bg-merah { background: #e74c3c; }
.bg-putih { background: #fff; }

/* ============ LYRICS STYLING ============ */
.song-lyrics {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 2.2;
    color: #e0e0e0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #181818, #1a1a1a);
    border-radius: 12px;
    border-left: 4px solid #1DB954;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.song-lyrics p {
    margin-bottom: 12px;
}

.song-lyrics .verse {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(29, 185, 84, 0.3);
}

.song-lyrics .chorus {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(29, 185, 84, 0.05);
    border-radius: 8px;
    border-left: 3px solid #1DB954;
    font-style: italic;
}

.song-lyrics .bridge {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(241, 196, 15, 0.05);
    border-radius: 8px;
    border-left: 3px solid #f1c40f;
}

.song-lyrics .intro {
    color: #b3b3b3;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.song-lyrics .outro {
    color: #b3b3b3;
    font-style: italic;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

/* ============ LYRICS WITH CHORDS ============ */
.song-lyrics .chord {
    color: #1DB954;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: inline-block;
    margin-right: 4px;
}

.song-lyrics .lyric-line {
    display: block;
    padding: 2px 0;
}

.song-lyrics .lyric-line:hover {
    background: rgba(29, 185, 84, 0.05);
    border-radius: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .song-lyrics {
        padding: 16px 18px;
        font-size: 14px;
        line-height: 2;
    }
    .song-lyrics .verse {
        padding-left: 12px;
    }
    .song-lyrics .chorus {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .song-lyrics {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.8;
    }
}