* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0b0f19;
    color: #f8fafc;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #111827 0%, #0f1419 100%);
    padding: 12px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1f2937;
    height: auto;
    min-height: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    gap: 12px;
    flex-wrap: wrap;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-logo {
    height: 45px;
    width: 140px;
    object-fit: contain;
}

.logo-area h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-area h1 span { 
    color: #f43f5e;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.live-icon { 
    color: #f43f5e; 
    font-size: 28px;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
}

.search-box { 
    position: relative; 
    width: 100%;
    max-width: 280px;
    min-width: 180px;
    flex: 1;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    background-color: #1f2937;
    border: 2px solid #374151;
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus { 
    border-color: #f43f5e;
    background-color: #2d3748;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.search-box i { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #9ca3af;
    transition: color 0.3s ease;
    font-size: 16px;
}

.search-box input:focus ~ i {
    color: #f43f5e;
}

/* Login Navigation Button */
.login-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    white-space: nowrap;
}

.login-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
}

.login-nav-btn:active {
    transform: translateY(0);
}

.login-nav-btn i {
    font-size: 16px;
}

.login-nav-btn.hidden {
    display: none;
}

/* User Profile */
.user-profile {
    position: relative;
    display: none;
}

.user-profile.visible {
    display: block;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    overflow: hidden;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.user-avatar i {
    font-size: 18px;
    color: #fff;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: linear-gradient(145deg, #111827 0%, #0f1419 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 63, 94, 0.1);
    border: 1px solid #1f2937;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-large i {
    font-size: 22px;
    color: #fff;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #1f2937;
    margin: 15px 0;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Subscription Status */
.subscription-status {
    padding: 10px 0;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.free {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.status-badge.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: 1px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Premium Button in Dropdown */
.premium-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    margin: 5px 0;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: scale(1.02);
}

.premium-btn i {
    color: #fff;
}

/* Main Dynamic Layout */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1.1fr;
    gap: 25px;
    padding: 20px 4%;
    flex: 1;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Main Dynamic Layout */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1.1fr;
    gap: 25px;
    padding: 20px 4%;
    flex: 1;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Player Section */
.player-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #f43f5e #1f2937;
}

.player-section::-webkit-scrollbar {
    width: 6px;
}

.player-section::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.player-section::-webkit-scrollbar-thumb {
    background: #f43f5e;
    border-radius: 3px;
}

.player-container-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.1), 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #1f2937;
    transition: all 0.3s ease;
}

.player-wrapper:hover {
    box-shadow: 0 25px 60px rgba(244, 63, 94, 0.15), 0 15px 40px rgba(0,0,0,0.8);
}

.player-blocker {
    display: none;
}

/* Player Controls - Bottom Bar */
.player-controls-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-wrapper:hover .player-controls-bottom,
.player-wrapper:active .player-controls-bottom {
    opacity: 1;
}

.player-controls-bottom .nav-btn {
    pointer-events: auto;
    position: static;
    transform: none;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
}

.player-controls-bottom .nav-btn:hover {
    background: rgba(244,63,94,0.8);
    border-color: #f43f5e;
}

.player-controls-main {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.control-btn:hover {
    background: rgba(244, 63, 94, 0.8);
    border-color: #f43f5e;
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Volume buttons specific */
.volume-down, .volume-up {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.play-pause-btn {
    width: 46px;
    height: 46px;
    font-size: 16px;
}

/* Rotate button - mobile only */
.rotate-btn {
    display: none;
}

/* Developer Button */
.developer-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.15);
    border: 1px solid rgba(67, 97, 238, 0.25);
    border-radius: 15px;
    color: #818cf8;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 99999;
    cursor: pointer;
}

.developer-btn:hover {
    background: rgba(67, 97, 238, 0.3);
    border-color: #4361ee;
    color: #fff;
    opacity: 1;
}

.developer-btn i {
    font-size: 10px;
}

/* Fullscreen styles */
.player-wrapper.is-fullscreen .player-controls-bottom {
    opacity: 0;
}

.player-wrapper.is-fullscreen:hover .player-controls-bottom {
    opacity: 1;
}

/* Fullscreen state */
.player-wrapper.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    aspect-ratio: auto;
}

/* Ultra Fullscreen - Total fullscreen, hide everything else */
.player-wrapper.is-ultra-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    border-radius: 0;
    aspect-ratio: auto;
}

.player-wrapper.is-ultra-fullscreen ~ header,
.player-wrapper.is-ultra-fullscreen ~ main,
.player-wrapper.is-ultra-fullscreen ~ .ad-container,
.player-wrapper.is-ultra-fullscreen ~ .native-banner-ad,
.player-wrapper.is-ultra-fullscreen ~ .smartlink-ad,
.player-wrapper.is-ultra-fullscreen ~ .developer-btn {
    display: none !important;
}

/* Zoom state */
.player-wrapper.is-zoomed {
    transform: scale(1.5);
    transform-origin: center center;
}

.player-wrapper.is-fullscreen.is-zoomed {
    transform: scale(1.5);
    transform-origin: center center;
    overflow: hidden;
}

.player-wrapper.is-fullscreen.is-zoomed .video-js,
.player-wrapper.is-fullscreen.is-zoomed #iframe-player {
    object-fit: cover;
}

/* Rotated state for mobile */
.player-wrapper.is-rotated {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50vw;
    margin-left: -50vh;
    z-index: 9999;
    border-radius: 0;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    .volume-down, .volume-up {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .rotate-btn {
        display: flex;
    }
    
    .player-controls-overlay {
        gap: 15px;
    }
}

/* Hide rotate button on desktop */
@media (min-width: 769px) {
    .rotate-btn {
        display: none !important;
    }
}

/* VideoJS & Iframe Fluid Layout */
.video-js {
    display: none !important;
}

#iframe-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block !important;
    z-index: 20;
}

.video-js.vjs-has-started {
    display: block !important;
}

.now-playing {
    font-size: 18px;
    color: #e5e7eb;
    padding-left: 60px;
    font-weight: 500;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.now-playing i {
    color: #f43f5e;
    animation: pulse 1.5s infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation Buttons Styling */
.nav-btn {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: 2px solid #374151;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: auto;
    z-index: 10;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border-color: #f43f5e;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
}

/* Sidebar Section */
.sidebar-section {
    background: linear-gradient(180deg, #111827 0%, #0f1419 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid #1f2937;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sidebar-section::-webkit-scrollbar {
    width: 6px;
}

.sidebar-section::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.sidebar-section::-webkit-scrollbar-thumb {
    background: #f43f5e;
    border-radius: 3px;
}

.list-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

/* Playlist Tabs */
.playlist-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.playlist-tab {
    padding: 10px 18px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #374151;
    color: #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.playlist-tab:hover {
    border-color: #f43f5e;
    color: #fff;
    transform: translateY(-2px);
}

.playlist-tab.active {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 6px 15px rgba(244, 63, 94, 0.3);
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
}

.channel-list::-webkit-scrollbar { 
    width: 8px; 
}

.channel-list::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
}

.channel-list::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #f43f5e 0%, #ec4899 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.channel-list::-webkit-scrollbar-thumb:hover {
    background: #f43f5e;
}

/* Channel Item */
.channel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #374151;
    transition: all 0.3s ease;
    position: relative;
}

.channel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
    border-radius: 12px 0 0 12px;
    transition: background-color 0.3s ease;
}

.channel-item:hover, .channel-item.active {
    border-color: #f43f5e;
    background: linear-gradient(135deg, #1f3a3a 0%, #1a1f2e 100%);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.15);
    transform: translateX(4px);
}

.channel-item.active::before {
    background-color: #f43f5e;
}

.channel-item:hover .img-box {
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.img-box {
    min-width: 60px;
    max-width: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #374151;
    padding: 4px;
    transition: all 0.3s ease;
}
.img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    padding: 2px;
    background-color: #0b0f19;
    border-radius: 8px;
}

.channel-item h4 { 
    font-size: 15px; 
    font-weight: 600; 
    flex: 1; 
    color: #f3f4f6;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.channel-item:hover h4, .channel-item.active h4 {
    color: #fff;
}

.play-now-icon { 
    color: #9ca3af; 
    font-size: 16px;
    transition: all 0.3s ease;
}

.channel-item:hover .play-now-icon, .channel-item.active .play-now-icon { 
    color: #f43f5e;
    transform: scale(1.2);
}

.loading { 
    text-align: center; 
    color: #9ca3af; 
    margin-top: 50px;
    font-size: 15px;
    font-weight: 500;
}

.loading i {
    color: #f43f5e;
    margin-right: 8px;
}

/* Ad Container - Professional Design */
.ad-container {
    background: linear-gradient(180deg, #111827 0%, #0a0f18 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ad-container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid #1e293b;
}

.ad-container-header .ad-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-container-header .ad-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #64748b;
    border-radius: 50%;
}

.ad-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 6px;
}

/* Native Banner Ad - Floating Bottom Right (Professional Design) */
.native-banner-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    background: linear-gradient(145deg, #111827 0%, #0a0f18 100%);
    border-radius: 16px;
    overflow: hidden;
    z-index: 90;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px #1e293b;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #1e293b;
}

.native-banner-ad.show {
    transform: translateX(0);
}

.native-banner-ad.hide-out {
    transform: translateX(120%);
}

.native-banner-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid #1e293b;
}

.native-banner-ad-header .ad-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.native-banner-ad-header .ad-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #475569;
    border-radius: 50%;
}

.native-banner-ad-body {
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 6px;
}

.native-banner-ad.hidden {
    display: none;
}

.native-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
    overflow: hidden;
}

.native-ad-close.enabled {
    cursor: pointer;
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.2);
}

.native-ad-close.enabled:hover {
    background: #f43f5e;
    color: #fff;
}

/* Ad Timer inside Close Button */
.timer-svg {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.timer-progress {
    fill: none;
    stroke: #f43f5e;
    stroke-width: 2.5;
    stroke-dasharray: 87.96;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.native-ad-close.enabled .timer-progress {
    stroke: #10b981;
}

.timer-text {
    position: relative;
    font-size: 9px;
    font-weight: 700;
    color: #f43f5e;
    z-index: 1;
}

.native-ad-close.enabled .timer-text {
    display: none;
}

.native-ad-close.enabled::after {
    content: '\00D7';
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.native-ad-close.enabled:hover::after {
    color: #fff;
}

@media (max-width: 768px) {
    .native-banner-ad {
        width: 120px;
        bottom: 10px;
        right: 10px;
    }

    .native-banner-ad-header {
        padding: 5px 8px;
    }

    .native-banner-ad-header .ad-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .native-banner-ad-header .ad-label::before {
        width: 4px;
        height: 4px;
    }

    .native-banner-ad-body {
        min-height: 30px;
        max-height: 35px;
        padding: 4px;
    }

    .native-ad-close {
        width: 20px;
        height: 20px;
        top: 3px;
        right: 3px;
    }

    .timer-svg {
        width: 20px;
        height: 20px;
    }

    .timer-text {
        font-size: 7px;
    }
}

@media (max-width: 400px) {
    .native-banner-ad {
        width: 140px;
        bottom: 8px;
        right: 8px;
    }

    .native-banner-ad-header {
        padding: 5px 8px;
    }

    .native-banner-ad-header .ad-label {
        font-size: 7px;
    }

    .native-banner-ad-body {
        min-height: 35px;
        max-height: 40px;
    }
}

/* Mobile positions for ad movement */
.native-banner-ad.mobile-pos-1 {
    bottom: 10px;
    right: 10px;
    top: auto;
    left: auto;
}

.native-banner-ad.mobile-pos-2 {
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
}

.native-banner-ad.mobile-pos-3 {
    top: 80px;
    right: 10px;
    bottom: auto;
    left: auto;
}

.native-banner-ad.mobile-pos-4 {
    top: 80px;
    left: 10px;
    bottom: auto;
    right: auto;
}

.ad-container.hidden {
    display: none;
}

/* Smartlink Ad - Professional Design */
.smartlink-ad {
    background: linear-gradient(145deg, #111827 0%, #0a0f18 100%);
    border-radius: 14px;
    padding: 0;
    margin-top: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.smartlink-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid #1e293b;
}

.smartlink-ad-header .ad-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.smartlink-ad-header .ad-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #475569;
    border-radius: 50%;
}

.smartlink-ad-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
}

.smartlink-ad .smartlink-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 10px;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.smartlink-ad .smartlink-content:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: #fff;
    border-color: #f43f5e;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    transform: translateY(-1px);
}

.smartlink-ad .smartlink-content i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.smartlink-ad .smartlink-content:hover i {
    transform: translateX(3px);
}

.smartlink-ad.hidden {
    display: none;
}

/* Premium Modal */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.premium-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.premium-modal {
    background: linear-gradient(145deg, #111827 0%, #0f1419 100%);
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 158, 11, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.premium-modal-overlay.show .premium-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f43f5e;
    color: #fff;
    border-color: #f43f5e;
}

.premium-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.premium-icon i {
    font-size: 36px;
    color: #fff;
}

.premium-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 8px;
}

.premium-modal > p {
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d5db;
    font-size: 14px;
}

.feature i {
    color: #10b981;
    font-size: 16px;
}

.premium-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.plan-card {
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.plan-card.popular {
    border-color: #f59e0b;
    background: linear-gradient(145deg, #1f2937 0%, #2d2a1f 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.plan-name {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}

.plan-price {
    display: block;
    color: #f8fafc;
    font-size: 22px;
    font-weight: 700;
}

.plan-period {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.premium-upgrade-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.premium-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.premium-note {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    margin-top: 15px;
}

/* Payment Modal */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.payment-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.payment-modal {
    background: linear-gradient(145deg, #111827 0%, #0f1419 100%);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 480px;
    width: 100%;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal-overlay.show .payment-modal {
    transform: scale(1);
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.payment-icon i {
    font-size: 30px;
    color: #fff;
}

.payment-modal h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 5px;
}

.payment-subtitle {
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.payment-method {
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: #10b981;
    background: linear-gradient(145deg, #1f2937 0%, #1a2e2a 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.payment-method span {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
}

.payment-details {
    display: none;
}

.payment-info-card {
    background: linear-gradient(145deg, #1a2e2a 0%, #0f1419 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.payment-info-header {
    font-size: 12px;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.payment-info-number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #10b981;
    color: #fff;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-form .form-group label {
    display: block;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.payment-form .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.payment-form .form-group input:focus {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.payment-form .form-group input::placeholder {
    color: #6b7280;
}

.submit-payment-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.submit-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.submit-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Payment Success Popup */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.payment-success-overlay.show {
    display: flex;
    opacity: 1;
}

.payment-success-popup {
    background: linear-gradient(145deg, #111827 0%, #0f1419 100%);
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.payment-success-overlay.show .payment-success-popup {
    transform: scale(1);
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: pulse-success 1.5s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-icon-large i {
    font-size: 36px;
    color: #fff;
}

.payment-success-popup h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.payment-success-popup > p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 20px;
}

.success-message-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 15px;
}

.success-message-box i {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-message-box span {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
}

.success-message-box strong {
    color: #6ee7b7;
}

.success-note {
    color: #6b7280;
    font-size: 12px;
}

/* Admin Panel */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.admin-panel-overlay.show {
    display: flex;
    opacity: 1;
}

.admin-panel {
    background: linear-gradient(145deg, #111827 0%, #0f1419 100%);
    border-radius: 24px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1f2937;
}

.admin-header i {
    font-size: 28px;
    color: #f43f5e;
}

.admin-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #1f2937;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
}

.admin-table-wrapper {
    overflow-x: auto;
    margin-bottom: 25px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: #1f2937;
    color: #9ca3af;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #1f2937;
    color: #d1d5db;
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: rgba(244, 63, 94, 0.05);
}

.user-id-cell {
    font-family: monospace;
    font-size: 11px;
}

.txn-cell {
    font-family: monospace;
    font-size: 11px;
}

.date-cell {
    font-size: 11px;
    color: #9ca3af;
}

.method-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.method-bkash {
    background: #e11d48;
    color: #fff;
}

.method-nagad {
    background: #f97316;
    color: #fff;
}

.method-rocket {
    background: #7c3aed;
    color: #fff;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-approved {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.approve-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.approve-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.approved-text {
    color: #6ee7b7;
    font-size: 12px;
}

.no-data {
    text-align: center;
    color: #6b7280;
    padding: 30px !important;
}

.admin-pricing {
    background: #1f2937;
    border-radius: 12px;
    padding: 20px;
}

.admin-pricing h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 15px;
}

.pricing-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.pricing-form .form-group label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 5px;
}

.pricing-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.pricing-form .form-group input:focus {
    border-color: #f43f5e;
}

.save-pricing-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

/* Floating Admin Button */
.admin-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
    transition: all 0.3s ease;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-float-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

@media (max-width: 768px) {
    .ad-container {
        border-radius: 10px;
    }

    .ad-container-header {
        padding: 6px 10px;
    }

    .ad-container-header .ad-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .ad-container-header .ad-label::before {
        width: 4px;
        height: 4px;
    }

    .ad-content {
        min-height: 50px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .payment-modal {
        padding: 25px 20px;
    }
    
    .premium-modal {
        padding: 30px 20px;
    }
    
    .premium-plans {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
/* Tablet and below */
@media (max-width: 1024px) {
    header {
        padding: 10px 2%;
        gap: 10px;
    }

    .header-logo {
        height: 40px;
        width: 120px;
    }

    .logo-area h1 {
        font-size: 18px;
    }

    .search-box {
        max-width: 220px;
    }

    .main-layout { 
        grid-template-columns: 1fr; 
        height: auto; 
        overflow: visible; 
        padding: 10px; 
        gap: 12px;
    }

    .player-section { 
        overflow: visible; 
        height: auto; 
    }

    .sidebar-section { 
        height: auto;
        min-height: 400px;
        max-height: 500px;
    }

    .player-container-wrapper { gap: 8px; }
    .nav-btn { width: 40px; height: 40px; font-size: 16px; }
    .now-playing { padding-left: 45px; font-size: 16px; }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    * {
        font-size: 14px;
    }

    header {
        padding: 10px 2%;
        gap: 8px;
        min-height: 55px;
    }

    .header-logo {
        height: 35px;
        width: 100px;
    }

    .logo-area h1 {
        font-size: 16px;
        letter-spacing: 0.3px;
    }

    .search-box {
        max-width: 100%;
        min-width: 140px;
        flex: 1 1 auto;
    }

    .search-box input {
        padding: 10px 14px 10px 38px;
        font-size: 13px;
    }

    .search-box i {
        left: 14px;
        font-size: 14px;
    }

    .login-nav-btn {
        padding: 8px 14px;
        font-size: 12px;
        gap: 4px;
    }

    .login-nav-btn i {
        font-size: 14px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .user-avatar i {
        font-size: 15px;
    }

    .user-dropdown {
        width: 250px;
        right: -5px;
        padding: 16px;
    }

    .main-layout { 
        grid-template-columns: 1fr; 
        height: auto; 
        overflow: visible; 
        padding: 8px; 
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .player-section { 
        overflow: visible; 
        height: auto;
        flex: none;
    }

    .player-container-wrapper {
        gap: 6px;
    }

    .player-wrapper {
        border-radius: 12px;
        aspect-ratio: 16/9;
    }

    .player-controls-bottom {
        padding: 8px 12px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .now-playing {
        padding-left: 35px;
        font-size: 14px;
        gap: 8px;
    }

    .sidebar-section {
        height: auto;
        min-height: 300px;
        max-height: 450px;
        padding: 16px;
        border-radius: 12px;
    }

    .list-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .playlist-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .channel-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .img-box {
        min-width: 45px;
        max-width: 45px;
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }

    .channel-item h4 {
        font-size: 13px;
    }

    .ad-container {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .native-banner-ad {
        width: 110px;
        bottom: 8px;
        right: 8px;
        border-radius: 10px;
    }

    .native-banner-ad-body {
        min-height: 25px;
        max-height: 30px;
        padding: 3px;
    }

    .developer-btn {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 10px;
        gap: 3px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    header {
        padding: 8px 2%;
        gap: 6px;
        min-height: 50px;
    }

    .header-logo {
        height: 30px;
        width: 85px;
    }

    .logo-area h1 {
        font-size: 14px;
    }

    .search-box {
        order: 3;
        min-width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .login-nav-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

    .main-layout {
        padding: 6px;
        gap: 8px;
    }

    .player-wrapper {
        border-radius: 10px;
    }

    .player-controls-bottom {
        padding: 6px 10px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .nav-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .now-playing {
        padding-left: 30px;
        font-size: 13px;
    }

    .sidebar-section {
        padding: 12px;
        min-height: 250px;
        max-height: 350px;
        border-radius: 10px;
    }

    .list-title {
        font-size: 15px;
    }

    .playlist-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .channel-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .img-box {
        min-width: 40px;
        max-width: 40px;
        width: 40px;
        height: 40px;
    }

    .channel-item h4 {
        font-size: 12px;
    }

    .native-banner-ad {
        width: 95px;
        bottom: 6px;
        right: 6px;
    }

    .native-banner-ad-header {
        padding: 4px 6px;
    }

    .native-banner-ad-header .ad-label {
        font-size: 7px;
    }

    .native-banner-ad-body {
        min-height: 20px;
        max-height: 25px;
        padding: 2px;
    }

    .native-ad-close {
        width: 18px;
        height: 18px;
        top: 2px;
        right: 2px;
    }

    .timer-svg {
        width: 18px;
        height: 18px;
    }

    .timer-text {
        font-size: 6px;
    }

    .ad-container {
        margin-bottom: 8px;
    }

    .ad-container-header {
        padding: 5px 8px;
    }

    .ad-container-header .ad-label {
        font-size: 8px;
    }

    .ad-content {
        min-height: 40px;
        padding: 4px;
    }

    .smartlink-ad-body {
        padding: 8px 10px;
        gap: 6px;
    }

    .smartlink-ad .smartlink-content {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .header-logo {
        height: 28px;
        width: 75px;
    }

    .logo-area h1 {
        font-size: 13px;
    }

    .login-nav-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .player-controls-bottom {
        padding: 4px 8px;
    }

    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .native-banner-ad {
        width: 85px;
        bottom: 5px;
        right: 5px;
    }
}
