/* =================================================================
   TINGLA.NET by Bobur Khan | @iKhanUz
   ================================================================= */

:root {
    --bg-primary: #0c0e12;
    --bg-secondary: #141820;
    --bg-card: #1a1f2a;
    --bg-elevated: #1e2330;
    
    --accent: #00a847;
    --accent-hover: #00c56e;
    --accent-glow: rgba(0, 168, 71, 0.35);
    --accent-dark: #009f3b;
    --accent-light: #0fb;
    --accent-gradient: linear-gradient(135deg, #0fb, #00a847 50%, #009f3b);
    
    --text-primary: #ffffff;
    --text-secondary: hsla(0, 0%, 100%, 0.75);
    --text-muted: hsla(0, 0%, 100%, 0.45);
    
    --border-subtle: hsla(0, 0%, 100%, 0.08);
    --border-glow: rgba(0, 168, 71, 0.15);
    
    --glass: hsla(0, 0%, 100%, 0.03);
    --glass-border: hsla(0, 0%, 100%, 0.07);
    
    --font-heading: "Days One", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-ui: "Rubik", sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 50%;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: 0;
}
body.player-active {
    padding-bottom: 96px;
}
@media (max-width: 768px) {
    body.player-active { padding-bottom: 80px; }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Ambient Overlays */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='4' stitchTiles='stitch' type='fractalNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    background-size: 128px;
    opacity: 0.015;
    pointer-events: none;
    z-index: 99;
}

.ambient-mesh {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 255, 187, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 60%, rgba(0, 168, 71, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 159, 59, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: var(--radius-full);
    filter: blur(130px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 255, 187, 0.08);
    top: -10%;
    left: 20%;
    animation: orbFloat1 28s ease-in-out infinite;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 168, 71, 0.06);
    bottom: 10%;
    right: 5%;
    animation: orbFloat2 32s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.06); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.08); }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */
.portal-header {
    position: sticky;
    top: 0;
    background: rgba(12, 14, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 28px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: #fff;
}
.logo-text span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-link {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
    background: rgba(0, 168, 71, 0.08);
}

.header-search {
    position: relative;
    max-width: 380px;
    width: 100%;
}
.header-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 10px 18px 10px 44px;
    color: #fff;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.header-search-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(0, 168, 71, 0.2);
}
.header-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-light);
    font-size: 18px;
}

/* =================================================================
   SECTIONS & BADGES
   ================================================================= */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}
.section-headline {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-headline i {
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}
.section-badge {
    background: rgba(0, 168, 71, 0.12);
    border: 1px solid rgba(0, 168, 71, 0.2);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* =================================================================
   TRACK ROW LISTING (Consistent across pages)
   ================================================================= */
.tracks-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.track-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    transition: all var(--transition);
    cursor: pointer;
}
.track-item-row:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 168, 71, 0.3);
    box-shadow: 0 5px 15px rgba(0, 168, 71, 0.05);
    background: var(--bg-elevated);
}
.track-item-row.active {
    border-color: var(--accent-light);
    background: rgba(0, 168, 71, 0.05);
    box-shadow: 0 0 15px rgba(0, 168, 71, 0.1);
}

.track-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.track-rank-lbl {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-muted);
    width: 34px;
    text-align: center;
}
.track-cover-container {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #000;
}
.track-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.track-item-row:hover .track-cover-img {
    transform: scale(1.08);
}
.track-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.track-item-row:hover .track-play-overlay,
.track-item-row.active .track-play-overlay,
.track-item-row.playing .track-play-overlay {
    opacity: 1;
}
.track-play-overlay i {
    color: var(--accent-light);
    font-size: 16px;
}

.track-details-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    min-width: 0;
}
.track-title-link {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.track-title-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}
.track-item-row.active .track-title-link {
    color: var(--accent-light);
}
.track-artist-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.track-artist-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.track-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}
.meta-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.track-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.portal-btn {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-play-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
}
.track-item-row:hover .btn-play-action {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(0, 168, 71, 0.05);
}
.track-item-row.active .btn-play-action {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-download-action {
    background: linear-gradient(135deg, rgba(0, 255, 187, 0.15), rgba(0, 168, 71, 0.05));
    border: 1px solid rgba(0, 168, 71, 0.2);
    color: var(--accent-light);
}
.btn-download-action:hover {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
    border-color: transparent;
}

.btn-fav-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 10px;
    font-size: 16px;
}
.btn-fav-action:hover, .btn-fav-action.active {
    color: var(--accent-light);
    border-color: var(--accent);
}
.btn-playlist-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 10px;
    font-size: 16px;
}
.btn-playlist-action:hover, .btn-playlist-action.active {
    color: #4a9eff;
    border-color: #4a9eff;
}

/* =================================================================
   SIDEBAR WIDGETS
   ================================================================= */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    padding: 20px;
}
.widget-title {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.genre-list-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.genre-list-item {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    transition: all var(--transition);
}
.genre-list-item:hover, .genre-list-item.active {
    background: rgba(0, 168, 71, 0.06);
    border-color: rgba(0, 168, 71, 0.15);
    color: var(--accent-light);
    transform: translateX(4px);
}
.genre-badge-count {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
}
.genre-list-item.active .genre-badge-count {
    background: var(--accent);
    color: #fff;
}

.top-hits-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.top-hit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.top-hit-row:hover {
    background: rgba(255, 255, 255, 0.03);
}
.top-hit-rank {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}
.top-hit-row:nth-child(1) .top-hit-rank { color: var(--accent-light); }
.top-hit-row:nth-child(2) .top-hit-rank { color: var(--accent); }
.top-hit-row:nth-child(3) .top-hit-rank { color: var(--accent-hover); }

.top-hit-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    min-width: 0;
}
.top-hit-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    transition: color var(--transition);
}
.top-hit-row:hover .top-hit-title {
    color: var(--accent-light);
}
.top-hit-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-hit-play {
    color: var(--accent-light);
    font-size: 16px;
}

/* =================================================================
   PERSISTENT BOTTOM PLAYER CONTROLLER
   ================================================================= */
.bottom-player-controller {
    position: fixed;
    bottom: -110px;
    left: 0; right: 0;
    height: 84px;
    background: rgba(10, 12, 16, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2000;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-player-controller.active {
    bottom: 0;
}
.player-bar-container {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1fr;
    align-items: center;
    height: 100%;
    padding: 0 8px;
}

/* ---- Left: cover + meta + fav ---- */
.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
}
.player-album-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    position: relative;
}
.player-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-song-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.player-song-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.player-song-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.player-left .btn-playlist-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.player-left .btn-playlist-action:hover,
.player-left .btn-playlist-action.active {
    color: #4a9eff;
    border-color: rgba(74, 158, 255, 0.4);
    background: rgba(74, 158, 255, 0.08);
}

/* ---- Center: controls + seekbar ---- */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    height: 100%;
}
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.p-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    flex-shrink: 0;
}
.p-ctrl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}
.p-ctrl-btn.active {
    color: var(--accent-light);
}
.p-play-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 168, 71, 0.45);
    transition: all 0.18s;
    flex-shrink: 0;
}
.p-play-toggle-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0, 168, 71, 0.55);
}
.player-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.p-time-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 34px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.p-slider-box {
    flex-grow: 1;
    height: 20px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    touch-action: none;
}
.p-slider-box::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: height 0.15s;
}
.p-slider-box:hover::before {
    height: 6px;
}
.p-slider-fill {
    position: absolute;
    left: 0; top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    width: 0%;
    pointer-events: none;
}
.p-slider-handle {
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.p-slider-box:hover .p-slider-handle { opacity: 1; }
.p-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0; padding: 0;
    pointer-events: none;
}

/* ---- Right: volume + download ---- */
.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    height: 100%;
}
.p-ctrl-btn.p-queue-btn {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.p-ctrl-btn.p-queue-btn.active {
    color: var(--accent-light);
    background: rgba(0, 168, 71, 0.1);
}
.p-queue-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.97);
}
.p-volume-slider-box {
    position: relative;
    width: 80px;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}
.p-volume-slider-box::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: height 0.15s;
}
.p-volume-slider-box:hover::before {
    height: 6px;
}
.p-volume-fill {
    position: absolute;
    left: 0; top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: var(--accent-light);
    border-radius: 10px;
    width: 75%;
    pointer-events: none;
}
.p-volume-handle {
    position: absolute;
    top: 50%; left: 75%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.p-volume-slider-box:hover .p-volume-handle { opacity: 1; }
.p-volume-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0; padding: 0;
    pointer-events: none;
}

.player-bar-wave-canvas {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    opacity: 0.07;
    pointer-events: none;
}

/* =================================================================
   PLAYLIST / QUEUE PANEL
   ================================================================= */
.header-playlist-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}
.header-playlist-btn:hover,
.header-playlist-btn.active {
    color: var(--accent-light);
    border-color: rgba(0, 168, 71, 0.4);
    background: rgba(0, 168, 71, 0.08);
}
.header-playlist-count {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.playlist-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 8400;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}
.playlist-panel-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.playlist-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 92vw;
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 8500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}
.playlist-panel.open {
    transform: translateX(0);
}
.playlist-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.playlist-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.playlist-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 1.02rem;
    font-weight: 700;
}
.playlist-panel-header h3 i {
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}
.playlist-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.playlist-panel-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.playlist-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.playlist-panel-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.playlist-clear-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: color var(--transition);
}
.playlist-clear-btn:hover { color: #ff5c7a; }

.playlist-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.playlist-panel-body::-webkit-scrollbar { width: 6px; }
.playlist-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.playlist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}
.playlist-empty-state i { font-size: 40px; opacity: 0.5; }
.playlist-empty-state p { font-size: 0.9rem; }

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
}
.playlist-item:hover {
    background: var(--bg-elevated);
    border-color: rgba(0, 168, 71, 0.2);
}
.playlist-item.now-playing {
    background: rgba(0, 168, 71, 0.08);
    border-color: rgba(0, 168, 71, 0.35);
}
.playlist-item.dragging {
    opacity: 0.4;
}
.playlist-item-handle {
    color: var(--text-muted);
    font-size: 16px;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}
.playlist-item-cover {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.playlist-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-item-cover .now-playing-icon {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--accent-light);
    font-size: 16px;
}
.playlist-item.now-playing .playlist-item-cover .now-playing-icon { display: flex; }
.playlist-item-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.playlist-item-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item.now-playing .playlist-item-title { color: var(--accent-light); }
.playlist-item-artist {
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.playlist-item-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}
.playlist-item-remove:hover { color: #ff5c7a; background: rgba(255, 92, 122, 0.1); }

@media (max-width: 480px) {
    .playlist-panel { width: 100%; max-width: 100%; }
}

/* =================================================================
   DOWNLOAD PROGRESS MODAL POPUP
   ================================================================= */
.download-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 16, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}
.download-modal-card {
    max-width: 360px;
    width: 100%;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.download-ring-container {
    position: relative;
    width: 90px;
    height: 90px;
}
.download-ring-svg { transform: rotate(-90deg); }
.download-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}
.download-ring-bar {
    fill: none;
    stroke: var(--accent-light);
    stroke-width: 8;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.1s linear;
}
.download-pct-txt {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
}
.download-status-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1rem;
}
.download-status-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =================================================================
   RESPONSIVE DESIGN (Adaptive styling)
   ================================================================= */


/* =================================================================
   TINGLA.NET - PORTAL DUAL-COLUMN GRID & SWIPER SLIDER
   ================================================================= */
.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}
.portal-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artists-slider-section {
    margin-top: 30px;
    margin-bottom: 40px;
}
.artists-swiper-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}
.artists-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    /* Swiper.js "spaceBetween: 14" bilan bir xil qiymat — kutubxona hali
       ishga tushmagan paytda ham oraliq bir xil bo'lib, sahifa
       yuklanganda "sakrash" ko'rinishi bo'lmasligi uchun */
    margin-right: 14px;
}
.artist-card-item {
    width: 140px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.artist-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 71, 0.3);
    box-shadow: 0 8px 24px rgba(0, 168, 71, 0.1);
    background: var(--bg-elevated);
}
.artist-card-image-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: all var(--transition);
    background: #000;
}
.artist-card-item:hover .artist-card-image-wrap {
    border-color: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.05);
}
.artist-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-card-name {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.artist-card-genre {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =================================================================
   SUBPAGES: HEADLINES & SEARCH FILTERS
   ================================================================= */
.page-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}
.page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.page-title i {
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}
.search-filter-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.search-filter-input {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 10px 18px 10px 44px;
    color: #fff;
    font-size: 0.88rem;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.search-filter-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--accent-glow);
}
/* DLE {searchtable} tegi chiqargan tayyor forma (checkbox, select, sana) —
   HTML strukturasi DLE tomonidan yaratiladi, faqat umumiy elementlarni
   qorong'i mavzuga moslaymiz */
#searchtable {
    color: var(--text-secondary);
    font-size: 0.92rem;
}
#searchtable table {
    width: 100%;
    border-collapse: collapse;
}
#searchtable td {
    padding: 8px 6px;
    vertical-align: middle;
}
#searchtable input[type="text"],
#searchtable input[type="date"],
#searchtable select,
#searchtable textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}
#searchtable input[type="text"]:focus,
#searchtable select:focus,
#searchtable textarea:focus {
    border-color: var(--accent);
    outline: none;
}
#searchtable input[type="checkbox"],
#searchtable input[type="radio"] {
    accent-color: var(--accent);
    margin-right: 6px;
}
#searchtable label {
    color: var(--text-secondary);
    cursor: pointer;
}
#searchtable input[type="submit"],
#searchtable input[type="button"],
#searchtable button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin: 4px 6px 4px 0;
}
#searchtable input[type="submit"]:hover,
#searchtable input[type="button"]:hover,
#searchtable button:hover {
    background: var(--accent-hover);
}
#searchtable input[type="button"][name="dofullsearch"],
#searchtable input[type="button"][name="doclear"] {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
#searchtable input[type="button"][name="dofullsearch"]:hover,
#searchtable input[type="button"][name="doclear"]:hover {
    border-color: var(--accent);
    color: #fff;
}
#searchtable fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
#searchtable legend {
    padding: 0 8px;
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
}
#searchtable select[multiple] {
    min-height: 140px;
}
#searchtable option {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px;
}
#searchtable div {
    color: var(--text-secondary);
}
#searchtable br {
    display: none;
}
#searchtable input[type="text"] {
    max-width: 300px;
    display: inline-block;
    margin-bottom: 8px;
}

.search-filter-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-light);
    font-size: 18px;
}

/* =================================================================
   ARTISTS LIST PAGE (artists.html)
   ================================================================= */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.artist-grid-card {
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.artist-grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 168, 71, 0.3);
    box-shadow: 0 8px 24px rgba(0, 168, 71, 0.1);
    background: var(--bg-elevated);
}
.artist-card-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: all var(--transition);
    background: #000;
}
.artist-grid-card:hover .artist-card-img-wrap {
    border-color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
}
.artist-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-grid-name {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.artist-grid-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =================================================================
   ARTIST PROFILE DETAIL PAGE (artist-show.html)
   ================================================================= */
.artist-banner-wrap {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: -50px;
    border: 1px solid var(--glass-border);
}
.artist-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(12, 14, 18, 0.6) 60%, var(--bg-primary) 98%);
}
.artist-info-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 30px;
    margin-bottom: 35px;
    z-index: 10;
}
.artist-avatar {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    background: #000;
}
.artist-details-text {
    padding-bottom: 12px;
}
.artist-details-text h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.artist-genre-lbl {
    background: rgba(0, 168, 71, 0.12);
    border: 1px solid rgba(0, 168, 71, 0.2);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.artist-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 24px;
}
.artist-songs-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.artist-sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bio-widget {
    padding: 24px;
}
.bio-title {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
}
.bio-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* =================================================================
   CATEGORY DETAIL PAGE (category-show.html)
   ================================================================= */
/* genre-banner-card styles moved to bottom of file */
.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.category-tracks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =================================================================
   MUSIC DETAILS PAGE (music-show.html)
   ================================================================= */
.show-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.show-left-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}
.vinyl-cover-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 40px rgba(0, 168, 71, 0.1);
    background: #08080a;
}
.vinyl-inner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.song-titles-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.song-titles-wrap h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.artist-subtitle-link {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
    transition: color var(--transition);
}
.artist-subtitle-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 440px;
}
.meta-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.meta-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.meta-card-value {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}
.show-primary-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 440px;
}
.action-big-btn {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition);
    cursor: pointer;
}
.action-big-btn-play {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.action-big-btn-play:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.action-big-btn-download {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
}
.action-big-btn-download:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.action-big-btn-fav {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    flex: 0;
    min-width: 54px;
}
.action-big-btn-fav:hover {
    color: var(--accent-light);
    border-color: rgba(0, 168, 71, 0.35);
    background: rgba(0, 168, 71, 0.07);
}
.action-big-btn-fav.active {
    color: var(--accent-light);
    border-color: rgba(0, 168, 71, 0.35);
    background: rgba(0, 168, 71, 0.07);
}
.action-big-btn-playlist {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    flex: 0;
    min-width: 54px;
}
.action-big-btn-playlist:hover,
.action-big-btn-playlist.active {
    color: #4a9eff;
    border-color: rgba(74, 158, 255, 0.35);
    background: rgba(74, 158, 255, 0.07);
}
.show-right-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.lyrics-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lyrics-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}
.lyrics-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 12px;
    text-align: center;
    font-style: italic;
    white-space: pre-line;
}
.lyrics-content::-webkit-scrollbar {
    width: 6px;
}
.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.rec-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* {custom} teg natija topmasa bo'sh chiqadi — sarlavha esa JS kutmasdan,
   darhol shu qoida orqali yashiriladi (yalt etib ko'rinish bo'lmasligi uchun) */
.rec-section:has(.tracks-list-container:empty) {
    display: none;
}
.rec-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
}
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rec-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}
.rec-item-row:hover {
    transform: translateX(4px);
    border-color: rgba(0, 168, 71, 0.25);
    background: var(--bg-elevated);
}
.rec-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rec-item-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #000;
}
.rec-item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rec-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    transition: color var(--transition);
}
.rec-item-row:hover .rec-item-title {
    color: var(--accent-light);
}
.rec-item-artist {
    font-size: 0.76rem;
    color: var(--text-secondary);
}
.rec-item-play-icon {
    color: var(--accent-light);
    font-size: 20px;
    transition: all var(--transition);
}
.rec-item-row:hover .rec-item-play-icon {
    transform: scale(1.15);
    color: var(--accent-hover);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* =================================================================
   SITE FOOTER
   ================================================================= */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 16, 0.97) 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 0;
    margin-top: 60px;
}
.footer-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0;
}

/* Pastki bar */
.footer-copy-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-simple-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-simple-link:hover {
    color: var(--accent-light);
}
.footer-counters {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.footer-counter-slot {
    display: inline-flex;
    align-items: center;
}
.footer-dev-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-dev-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.footer-dev-link:hover {
    color: var(--accent-hover);
}
@media (max-width: 560px) {
    .footer-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =================================================================
   MOBILE DRAWER & HAMBURGER MENU
   ================================================================= */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-search-btn {
    display: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.mobile-search-btn:active { transform: scale(0.95); }

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 6px;
}

.mobile-search-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 20px;
    z-index: 999;
}
.portal-header.search-open .mobile-search-panel {
    display: block;
}
.mobile-search-panel-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-search-panel-icon {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}
.mobile-search-panel-input {
    flex: 1;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0 16px;
    font-size: 0.95rem;
    color: #fff;
    font-family: var(--font-ui);
    transition: all var(--transition);
}
.mobile-nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    flex-direction: column;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 20px 16px;
    z-index: 999;
}
.mobile-nav-menu.open {
    display: flex;
}
.mobile-nav-link {
    display: block;
    padding: 12px 4px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--accent-light); }

.mobile-search-panel-input::placeholder { color: var(--text-muted); }
.mobile-search-panel-input:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 168, 71, 0.12);
}
.mobile-search-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}
.mobile-search-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-drawer-header .logo {
    order: initial !important;
}
.mobile-drawer-header .mobile-drawer-close {
    order: initial !important;
}
.mobile-drawer-close {
    font-size: 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.mobile-drawer-close:active {
    transform: scale(0.95);
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drawer-link {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 1px solid transparent;
}
.drawer-link i {
    font-size: 22px;
    transition: transform var(--transition);
}
.drawer-link:hover i, .drawer-link.active i {
    transform: scale(1.1);
}
.drawer-link:hover, .drawer-link.active {
    color: var(--accent-light);
    background: rgba(0, 168, 71, 0.08);
    border-color: rgba(0, 168, 71, 0.15);
    box-shadow: 0 4px 15px rgba(0, 168, 71, 0.05);
}

/* =================================================================
   RESPONSIVE DESIGN ADAPTIVE OVERRIDES
   ================================================================= */
@media (max-width: 992px) {
    .portal-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .portal-feed, .portal-sidebar {
        min-width: 0;
        width: 100%;
    }
    .header-search {
        max-width: 250px;
    }
    .artist-body-grid, .category-grid, .show-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .vinyl-cover-container {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .portal-header { border-bottom: none !important; }
    .header-inner {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 20px;
        gap: 0;
    }
    .logo { display: flex; align-items: center; gap: 8px; }
    .logo-icon { font-size: 1.5rem; }
    .logo-text { font-size: 1.3rem; letter-spacing: 0.5px; }
    .nav-links { display: none !important; }
    .header-search { display: none !important; }
    .mobile-header-actions { display: flex; }
    .mobile-menu-btn,
    .mobile-search-btn { display: flex; }
    .portal-header.search-open .mobile-search-panel { display: block; }
    /* Mobile player — compact single row with top progress strip */
    .bottom-player-controller { height: 68px; }
    .bottom-player-controller.active::before {
        content: '';
        position: absolute;
        top: 0; left: 0;
        height: 3px;
        width: var(--p-pct, 0%);
        background: linear-gradient(90deg, var(--accent), var(--accent-light));
        transition: width 0.12s linear;
        border-radius: 0 3px 3px 0;
        z-index: 1;
    }
    .player-bar-container {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0 14px;
    }
    .player-left { flex: 1; min-width: 0; gap: 10px; }
    .player-center { flex-shrink: 0; padding: 0; }
    .player-right { display: none; }
    .player-progress-row { display: none; }
    .player-controls-row { gap: 2px; }
    #p-shuffle-btn, #p-repeat-btn { display: none; }
    .p-ctrl-btn { width: 38px; height: 38px; font-size: 21px; }
    .p-play-toggle-btn { width: 40px; height: 40px; font-size: 21px; }
}
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    .page-headline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .search-filter-box {
        max-width: 100%;
    }
    .artist-info-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    .artist-avatar {
        width: 110px;
        height: 110px;
    }
    .artist-details-text h1 {
        font-size: 1.8rem;
    }
    .track-item-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        gap: 12px;
    }
    .track-item-left {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }
    .track-cover-container {
        width: 42px;
        height: 42px;
    }
    .track-rank-lbl {
        display: none;
    }
    .track-title-link {
        font-size: 0.88rem;
    }
    .track-artist-link {
        font-size: 0.76rem;
    }
    .track-item-meta {
        display: none;
    }
    .track-item-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .btn-icon-action {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .vinyl-cover-container {
        width: 200px;
        height: 200px;
        border-width: 8px;
    }
    .song-titles-wrap h1 {
        font-size: 1.5rem;
    }
    .show-primary-actions {
        max-width: 100%;
    }
    .action-big-btn {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .site-footer { padding: 36px 0 0; margin-top: 40px; }
}

@media (max-width: 480px) {
    .player-album-cover { width: 42px; height: 42px; }
    .player-left { gap: 9px; }
    #p-title { font-size: 0.82rem; }
    #p-artist { font-size: 0.72rem; }
    .p-ctrl-btn { width: 34px; height: 34px; font-size: 19px; }
    .p-play-toggle-btn { width: 36px; height: 36px; font-size: 19px; }
}

/* =================================================================
   AJAX PAGE TRANSITIONS
   ================================================================= */
#page-content {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
body.page-loading #page-content {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* =================================================================
   TRACK ROW: ICON-ONLY ACTION BUTTONS
   ================================================================= */
.btn-icon-action {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    cursor: pointer;
}
.btn-icon-action.btn-fav-action {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
}
.btn-icon-action.btn-fav-action:hover,
.btn-icon-action.btn-fav-action.active {
    color: var(--accent-light);
    border-color: rgba(0,168,71,0.35);
    background: rgba(0,168,71,0.07);
}
.btn-icon-action.btn-playlist-action {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
}
.btn-icon-action.btn-playlist-action:hover,
.btn-icon-action.btn-playlist-action.active {
    color: #4a9eff;
    border-color: rgba(74,158,255,0.35);
    background: rgba(74,158,255,0.07);
}
.btn-icon-action.btn-download-action {
    background: rgba(0,255,187,0.05);
    border-color: rgba(0,168,71,0.2);
    color: var(--accent-light);
}
.btn-icon-action.btn-download-action:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* =================================================================
   CATEGORY PAGE — REDESIGNED BANNER
   ================================================================= */
.genre-banner-card {
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.genre-banner-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,168,71,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.genre-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.genre-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    background: rgba(0,168,71,0.1);
    border: 1px solid rgba(0,168,71,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--accent-light);
    flex-shrink: 0;
}
.genre-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.genre-banner-text h1 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.genre-banner-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.65;
}
.genre-track-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--accent-light);
    background: rgba(0,168,71,0.1);
    border: 1px solid rgba(0,168,71,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* =================================================================
   EMPTY STATE
   ================================================================= */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.empty-state i {
    font-size: 48px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .genre-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .genre-banner-text h1 {
        font-size: 1.5rem;
    }
}

/* =================================================================
   HEADER — USER BLOCK (login tugmasi va foydalanuvchi menyu)
   ================================================================= */

.header-user-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Kirish tugmasi (mehmonlar uchun) */
.header-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(0, 168, 71, 0.12);
    border: 1px solid rgba(0, 168, 71, 0.3);
    border-radius: 30px;
    color: var(--accent-light);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.header-login-btn:hover {
    background: rgba(0, 168, 71, 0.22);
    border-color: var(--accent);
}
.header-login-btn span { display: inline; }

/* Foydalanuvchi tugmasi (a'zolar uchun) */
.header-user-menu { position: relative; }

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}
.header-user-btn i:first-child {
    font-size: 22px;
    color: var(--accent-light);
}
.header-user-btn:hover {
    border-color: rgba(0,168,71,0.3);
    color: var(--text-primary);
}
.header-username {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown */
.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: #131820;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 2000;
}
.header-user-menu:hover .header-user-dropdown,
.header-user-menu.open   .header-user-dropdown { display: block; }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-ui);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.user-dropdown-item i { font-size: 17px; color: var(--text-muted); }
.user-dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.user-dropdown-item:hover i { color: var(--accent-light); }

.user-dropdown-item--danger { color: #f87171; }
.user-dropdown-item--danger i { color: #f87171; }
.user-dropdown-item--danger:hover { background: rgba(248,113,113,0.08); color: #fca5a5; }

.user-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

/* PM badge */
.pm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header-user-block { display: none; }
}

/* =================================================================
   LOGIN MODAL
   ================================================================= */

.login-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.login-modal-backdrop.open { display: flex; }

.login-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
}
.login-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* =================================================================
   FORM STILLARI (registration, feedback, editinfo, addcomments)
   ================================================================= */

.form-field { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-ui);
}

.form-input {
    width: 100%;
    padding: 10px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    box-sizing: border-box;
    transition: border-color var(--transition), background var(--transition);
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input[type="file"] { padding: 7px; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-field { flex: 1; min-width: 160px; }

/* =================================================================
   PAGINATION (navigation.tpl)
   ================================================================= */

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 24px 0;
}
.pagination-wrap { padding: 8px 0; }

/* DLE {pages} tegi klasssiz <a>/<span> chiqaradi — .page-btn uslubini bevosita ulaymiz */
.pagination-nav a,
.pagination-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-ui);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.pagination-nav a:hover {
    background: rgba(0,168,71,0.12);
    border-color: rgba(0,168,71,0.35);
    color: var(--accent-light);
}
.pagination-nav span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-ui);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.page-btn:hover {
    background: rgba(0,168,71,0.12);
    border-color: rgba(0,168,71,0.35);
    color: var(--accent-light);
}
.page-btn.current,
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.page-btn--arrow { font-size: 16px; }

/* =================================================================
   NAV ACTIVE STATE (DLE [aviable=main] uchun)
   ================================================================= */

/* =================================================================
   DLEPush (DLE'ning jGrowl-asosidagi toast bildirishnomalari)
   ================================================================= */
.DLEPush {
    position: fixed;
    z-index: 99999;
    width: 320px;
    max-width: calc(100vw - 32px);
}
.DLEPush.top-right    { top: 90px; right: 16px; }
.DLEPush.top-left     { top: 90px; left: 16px; }
.DLEPush.bottom-right { bottom: 100px; right: 16px; }
.DLEPush.bottom-left  { bottom: 100px; left: 16px; }

.DLEPush-notification:empty {
    display: none;
}
.DLEPush-notification {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--text-muted);
    border-radius: var(--radius-md);
    padding: 14px 34px 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
}
.DLEPush-notification.push-error   { border-left-color: #e5484d; }
.DLEPush-notification.push-success { border-left-color: var(--accent); }

.DLEPush-icon {
    flex-shrink: 0;
    width: 18px;
    color: var(--text-muted);
}
.DLEPush-notification.push-error   .DLEPush-icon { color: #e5484d; }
.DLEPush-notification.push-success .DLEPush-icon { color: var(--accent-light); }
.DLEPush-icon svg { width: 100%; height: auto; display: block; }

.DLEPush-header {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.DLEPush-header:empty { display: none; }

.DLEPush-message { color: var(--text-secondary); }

.DLEPush-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.DLEPush-close:hover { color: #fff; }

.nav-link--active {
    color: var(--accent-light) !important;
    background: rgba(0, 168, 71, 0.08) !important;
}

/* =================================================================
   TOP 100 — DAVR TABLARI (7/30/90 kun, Barcha vaqt)
   ================================================================= */
.top100-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.top100-tab {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.top100-tab:hover {
    color: #fff;
    border-color: rgba(0, 168, 71, 0.3);
}
.top100-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.top100-panel {
    display: none;
}
.top100-panel.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Birinchi 3 o'rin — reyting raqamini ajratib turuvchi belgi (badge) */
.top100-panel .track-rank-lbl {
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.top100-panel .track-item-row:nth-child(1) .track-rank-lbl,
.top100-panel .track-item-row:nth-child(2) .track-rank-lbl,
.top100-panel .track-item-row:nth-child(3) .track-rank-lbl {
    height: 34px;
    line-height: 34px;
    font-weight: 700;
}
.top100-panel .track-item-row:nth-child(1) .track-rank-lbl {
    color: var(--accent-light);
    background: rgba(0, 255, 187, 0.15);
}
.top100-panel .track-item-row:nth-child(2) .track-rank-lbl {
    color: var(--accent);
    background: rgba(0, 168, 71, 0.12);
}
.top100-panel .track-item-row:nth-child(3) .track-rank-lbl {
    color: var(--accent-hover);
    background: rgba(0, 168, 71, 0.08);
}

/* =================================================================
   FULL STORY — COVER LIKE OVERLAY & SHARE
   ================================================================= */
.cover-like-overlay {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(8, 10, 14, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.cover-like-overlay:hover,
.cover-like-overlay.active {
    color: var(--accent-light);
    border-color: rgba(0, 168, 71, 0.4);
    background: rgba(0, 168, 71, 0.15);
}
.cover-like-overlay i { font-size: 18px; }
.action-big-btn-share {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    flex: 0;
    min-width: 54px;
}
.action-big-btn-share:hover {
    color: var(--accent-light);
    border-color: rgba(0, 168, 71, 0.35);
    background: rgba(0, 168, 71, 0.07);
}

/* =================================================================
   SIDEBAR TOP 5 — COVER THUMBNAIL
   ================================================================= */
.top-hit-row {
    cursor: pointer;
}
.top-hit-cover {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.top-hit-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.top-hit-row:hover .top-hit-cover img { transform: scale(1.1); }
.top-hit-row:hover .top-hit-play {
    color: var(--accent-hover);
    transform: scale(1.15);
}

/* =================================================================
   SYSTEM MESSAGE (info.tpl)
   ================================================================= */
.message-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    margin: 40px auto;
    padding: 32px 30px;
    text-align: center;
}
.message-info__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
}
.message-info__content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}