/* Premium Music Portal Custom CSS (Spotify/JioSaavn Inspired)
   Theme: Dark Mode, Spotify Green Accent, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #121212;
    --bg-secondary: #181818;
    --bg-card: #282828;
    --bg-card-hover: #3E3E3E;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #727272;
    
    --primary-color: #1DB954; /* Spotify Green */
    --primary-hover: #1ed760;
    --secondary-color: #535353;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    
    --font-family: 'Inter', sans-serif;
    
    --nav-height: 70px;
    --player-height: 90px;
    --mobile-nav-height: 60px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--player-height) + 20px);
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--player-height) + var(--mobile-nav-height) + 10px);
    }
}

/* Typography & Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-color);
}
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Premium Header */
.site-header {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--nav-height);
}
.header-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}
.header-brand span {
    color: var(--primary-color);
}
.search-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.search-input {
    background-color: var(--bg-card);
    border: 1px solid transparent;
    color: var(--text-primary);
    border-radius: 500px;
    padding: 10px 20px 10px 45px;
    transition: all 0.3s ease;
}
.search-input:focus {
    background-color: var(--bg-card-hover);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

/* Horizontal Category Strip */
.category-strip {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.category-strip-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 15px;
    display: inline-block;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-strip-link:hover, .category-strip-link.active {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

/* Buttons */
.btn-premium {
    background-color: var(--primary-color);
    color: #000 !important;
    font-weight: 700;
    border-radius: 500px;
    padding: 10px 24px;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}
.btn-premium:hover {
    background-color: var(--primary-hover);
    transform: scale(1.04);
}
.btn-outline-premium {
    background-color: transparent;
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 500px;
    padding: 10px 24px;
    border: 1px solid var(--text-secondary);
    transition: all 0.2s;
}
.btn-outline-premium:hover {
    border-color: var(--text-primary);
    transform: scale(1.04);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(29,185,84,0.15) 0%, rgba(18,18,18,1) 100%);
    padding: 60px 0 40px 0;
    border-radius: 16px;
    margin-bottom: 30px;
}

/* Premium Music Cards (Grid) */
.premium-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}
.premium-card:hover {
    background-color: var(--bg-card);
}
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.premium-card .card-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 8px rgba(0,0,0,0.3);
}
.premium-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}
.premium-card .card-play-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05) translateY(0);
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Widgets (AdSense Safe) */
.widget-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.widget-list-item:last-child {
    border-bottom: none;
}
.widget-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
}
.widget-info {
    flex-grow: 1;
    overflow: hidden;
}
.widget-info-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-info-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Song Detail Page */
.song-hero {
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: linear-gradient(180deg, rgba(83,83,83,0.3) 0%, var(--bg-primary) 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .song-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.song-hero-cover {
    width: 232px;
    height: 232px;
    box-shadow: 0 4px 60px rgba(0,0,0,.5);
    margin-right: 24px;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .song-hero-cover {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
.song-hero-info {
    flex-grow: 1;
}
.song-hero-type {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.song-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .song-hero-title {
        font-size: 2rem;
    }
}

/* Global Sticky Audio Player */
.spotify-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background-color: #181818;
    border-top: 1px solid #282828;
    z-index: 1040;
    color: #fff;
    transition: transform 0.3s ease;
}
.player-meta {
    max-width: 200px;
}
.player-cover {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}
.player-control-btn {
    color: #b3b3b3;
    font-size: 1.2rem;
    transition: color 0.2s;
    background: none;
    border: none;
}
.player-control-btn:hover {
    color: #fff;
}
.player-play-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.2s;
}
.player-play-circle:hover {
    transform: scale(1.1);
}
.player-progress-container, .player-volume-container {
    height: 4px;
    background-color: #535353;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.player-progress-bar, .player-volume-bar {
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
}
.player-progress-container:hover .player-progress-bar,
.player-volume-container:hover .player-volume-bar {
    background-color: var(--primary-color);
}
.player-time-label {
    font-size: 0.75rem;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    gap: 4px;
}
.mobile-nav-item i {
    font-size: 1.2rem;
}
.mobile-nav-item.active {
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .spotify-player-bar {
        bottom: var(--mobile-nav-height);
    }
}

/* AdSense Safe Containers */
.adsense-container {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.adsense-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #535353;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* Header Categories Menu */

.header-categories{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
}

.header-categories a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    padding:8px 16px;
    border-radius:30px;
    transition:0.3s;
    background:rgba(255,255,255,0.05);
}

.header-categories a:hover{
    background:#1DB954;
    color:#000;
}

/* Mobile */

@media(max-width:768px){

    .header-categories{
        overflow-x:auto;
        flex-wrap:nowrap;
        justify-content:flex-start;
        padding-bottom:5px;
    }

    .header-categories a{
        white-space:nowrap;
        font-size:13px;
    }

}

