/* trending.css - Complete Responsive Trending Page */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.trending-container {
    min-height: 100vh;
    padding-bottom: 80px; /* Space for music player */
}

/* Navigation - Desktop */
.trending-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff416c;
}

.nav-brand h2 {
    font-size: 24px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand p {
    font-size: 12px;
    color: #aaa;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .active a {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
}

.nav-search {
    position: relative;
}

.nav-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.nav-search input {
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    width: 300px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    border-color: #ff416c;
    background: rgba(255, 255, 255, 0.12);
    width: 350px;
}

/* Main Content - Desktop */
.trending-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Header */
.trending-header {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.1), rgba(255, 75, 43, 0.1));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.header-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 i {
    color: #ff416c;
}

.header-content p {
    color: #aaa;
    font-size: 16px;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    min-width: 180px;
}

.stat i {
    font-size: 32px;
    color: #ff416c;
    background: rgba(255, 65, 108, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.stat p {
    font-size: 14px;
    color: #aaa;
}

/* Top Charts - Desktop */
.top-charts {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #ff416c;
}

.time-filters {
    display: flex;
    gap: 10px;
}

.time-filter {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.time-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.time-filter.active {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    border-color: transparent;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
}

.chart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 120px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.chart-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chart-item.top {
    background: linear-gradient(90deg, rgba(255, 65, 108, 0.1), rgba(255, 75, 43, 0.05));
    border-left: 4px solid #ff416c;
}

.chart-rank {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-number {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.chart-item.top .rank-number {
    color: #ff416c;
}

.rank-change {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.rank-change.up {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.rank-change.down {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.rank-change.new {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.rank-change.stable {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.chart-song {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-song img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.chart-song h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.chart-song p {
    font-size: 14px;
    color: #aaa;
}

.chart-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.streams {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #aaa;
}

.trend {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.trend.up {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.trend.down {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.trend.stable {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.chart-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.play-btn, .like-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: #ff416c;
    color: white;
    border-color: #ff416c;
}

.like-btn:hover, .like-btn.liked {
    background: #ff416c;
    color: white;
    border-color: #ff416c;
}

/* Trending Artists - Desktop */
.trending-artists {
    margin-bottom: 50px;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.artist-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.artist-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 1;
}

.artist-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.artist-info {
    padding: 20px;
}

.artist-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.artist-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.artist-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tag.pop { background: rgba(33, 150, 243, 0.1); color: #2196f3; }
.tag.country { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.tag.rnb { background: rgba(156, 39, 176, 0.1); color: #9c27b0; }
.tag.hiphop { background: rgba(255, 152, 0, 0.1); color: #ff9800; }
.tag.rap { background: rgba(244, 67, 54, 0.1); color: #f44336; }
.tag.reggaeton { background: rgba(255, 87, 34, 0.1); color: #ff5722; }
.tag.latin { background: rgba(0, 150, 136, 0.1); color: #009688; }

.follow-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.follow-btn:hover, .follow-btn.following {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    border-color: transparent;
}

.view-all {
    color: #ff416c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: 12px;
}

/* Trending Genres - Desktop */
.trending-genres {
    margin-bottom: 50px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.genre-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.genre-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.genre-card.pop::before { background: linear-gradient(90deg, #2196f3, #21cbf3); }
.genre-card.hiphop::before { background: linear-gradient(90deg, #ff9800, #ff5722); }
.genre-card.rnb::before { background: linear-gradient(90deg, #9c27b0, #e91e63); }
.genre-card.edm::before { background: linear-gradient(90deg, #00bcd4, #009688); }
.genre-card.rock::before { background: linear-gradient(90deg, #795548, #3e2723); }
.genre-card.jazz::before { background: linear-gradient(90deg, #ffeb3b, #ff9800); }

.genre-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.genre-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.genre-card p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.genre-stats span {
    font-size: 12px;
    color: #4caf50;
    font-weight: 500;
}

/* Viral Songs - Desktop */
.viral-songs {
    margin-bottom: 50px;
}

.viral-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
}

.viral-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 120px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.viral-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.viral-rank {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.viral-rank.viral {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
}

.viral-rank.hot {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    color: white;
}

.viral-rank.trending {
    background: linear-gradient(90deg, #2196f3, #21cbf3);
    color: white;
}

.viral-song {
    display: flex;
    align-items: center;
    gap: 15px;
}

.viral-song img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.viral-song h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.viral-song p {
    font-size: 14px;
    color: #aaa;
}

.viral-growth {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
}

.viral-growth p {
    font-size: 13px;
    color: #aaa;
}

.viral-play {
    padding: 12px 25px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.viral-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

.update-time {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-top: 40px;
}

.update-time p {
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.player-song {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.player-song img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.player-song h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.player-song p {
    font-size: 14px;
    color: #aaa;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.player-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.player-controls .play-btn {
    background: #ff416c;
    font-size: 24px;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.player-progress span {
    font-size: 14px;
    color: #aaa;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border-radius: 2px;
    width: 45%;
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.player-extra button {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-extra button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ================================ */
/* MOBILE RESPONSIVE DESIGN */
/* ================================ */

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) {
    .trending-main {
        padding: 20px;
    }
    
    .trending-header {
        padding: 30px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-content h1 {
        font-size: 28px;
        justify-content: center;
    }
    
    .header-stats {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 150px;
        padding: 15px;
    }
    
    .stat h3 {
        font-size: 20px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-item {
        grid-template-columns: 60px 2fr 1fr 100px;
        padding: 15px;
    }
    
    .rank-number {
        font-size: 24px;
    }
    
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .viral-item {
        grid-template-columns: 90px 2fr 1fr 100px;
        padding: 15px;
    }
    
    .music-player {
        padding: 10px 20px;
    }
    
    .player-progress {
        display: none;
    }
    
    .player-extra {
        display: none;
    }
}

/* Mobile - 480px to 768px */
@media (max-width: 768px) {
    .trending-nav {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-brand {
        justify-content: center;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-search input {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-search input:focus {
        width: 100%;
    }
    
    .trending-header {
        padding: 20px;
        border-radius: 15px;
    }
    
    .header-content h1 {
        font-size: 24px;
    }
    
    .header-content p {
        font-size: 14px;
    }
    
    .stat {
        min-width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .time-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .time-filter {
        padding: 8px 15px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .chart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .chart-rank {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .rank-number {
        font-size: 20px;
    }
    
    .chart-song {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .chart-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .chart-actions {
        justify-content: center;
    }
    
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .artist-card img {
        height: 150px;
    }
    
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .genre-card {
        padding: 15px 10px;
    }
    
    .genre-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .genre-card h3 {
        font-size: 16px;
    }
    
    .genre-card p {
        font-size: 13px;
    }
    
    .viral-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .viral-song {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .viral-growth {
        align-items: center;
    }
    
    .music-player {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .player-song,
    .player-controls,
    .player-progress,
    .player-extra {
        width: 100%;
        justify-content: center;
    }
    
    .player-progress {
        display: flex;
    }
    
    .player-extra {
        display: flex;
        justify-content: center;
    }
}

/* Small Mobile - Below 480px */
@media (max-width: 480px) {
    .trending-main {
        padding: 15px;
    }
    
    .trending-nav {
        padding: 10px;
    }
    
    .nav-brand img {
        width: 40px;
        height: 40px;
    }
    
    .nav-brand h2 {
        font-size: 20px;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-menu a i {
        font-size: 14px;
    }
    
    .header-content h1 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-content p {
        font-size: 13px;
    }
    
    .section-header h2 {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .time-filters {
        gap: 5px;
    }
    
    .time-filter {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .chart-item {
        padding: 12px;
    }
    
    .chart-song img {
        width: 50px;
        height: 50px;
    }
    
    .chart-song h3 {
        font-size: 14px;
    }
    
    .chart-song p {
        font-size: 12px;
    }
    
    .streams, .trend {
        font-size: 11px;
    }
    
    .play-btn, .like-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .artist-info {
        padding: 15px;
    }
    
    .artist-info h3 {
        font-size: 16px;
    }
    
    .artist-info p {
        font-size: 13px;
    }
    
    .follow-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
    }
    
    .genre-card {
        padding: 20px;
    }
    
    .viral-play {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .update-time p {
        font-size: 13px;
        flex-direction: column;
        gap: 5px;
    }
    
    .music-player {
        padding: 8px;
    }
    
    .player-song h4 {
        font-size: 14px;
    }
    
    .player-song p {
        font-size: 12px;
    }
    
    .player-controls button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .player-progress span {
        font-size: 12px;
        min-width: 35px;
    }
    
    .player-extra button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Extra Small Mobile - Below 360px */
@media (max-width: 360px) {
    .trending-header {
        padding: 15px;
    }
    
    .header-content h1 {
        font-size: 18px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat i {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .stat h3 {
        font-size: 18px;
    }
    
    .stat p {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .chart-song {
        flex-direction: column;
    }
    
    .chart-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .artist-card img {
        height: 120px;
    }
    
    .viral-item {
        padding: 10px;
    }
    
    .music-player {
        flex-direction: column;
        gap: 8px;
    }
}

/* Orientation Specific */
@media (max-height: 600px) and (orientation: landscape) {
    .trending-nav {
        padding: 10px 20px;
    }
    
    .trending-main {
        padding: 15px 20px;
    }
    
    .trending-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .chart-item {
        padding: 10px 15px;
    }
    
    .artist-card img {
        height: 120px;
    }
    
    .music-player {
        padding: 8px 15px;
    }
}

/* Print Styles */
@media print {
    .trending-nav,
    .music-player,
    .time-filters,
    .chart-actions,
    .follow-btn,
    .viral-play {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .trending-main {
        max-width: 100% !important;
        padding: 0 !important;
    }
}