/* static/css/style.css — ULTIMATE RESPONSIVE MYINSTANTS CLONE 2025 - MOBILE OPTIMIZED */
/* Final cleaned, optimized, and fully responsive version with enhanced mobile support */
/* Reduced text sizes and improved spacing for mobile devices */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --bg: #0d0d1a;
    --card: #16162a;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --border: #2a2a3a;
    --shadow: rgba(0, 0, 0, 0.6);
    --accent-blue: #4FC3F7;
    --accent-light-blue: #81D4FA;
    --glow-green: #00ff88;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER - MOBILE OPTIMIZED ==================== */
.header {
    background: rgba(17, 17, 30, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    line-height: 1;
}

/* Search Bar - Mobile Optimized */
.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-height: 46px;
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: #1e1e2e;
    color: white;
    font-size: 0.95rem;
}

.search-bar input:focus {
    outline: none;
    background: #25253a;
}

.search-bar button {
    padding: 0 22px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Navigation Links - Mobile Optimized */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active,
.nav-links a.active:hover {
    background: var(--primary);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ==================== HERO SECTION - MOBILE OPTIMIZED ==================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 107, 53, 0.6),
        3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000;
    -webkit-text-stroke: 1.5px black;
    paint-order: stroke fill;
}

.hero .tagline {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ==================== CATEGORIES BAR - MOBILE OPTIMIZED ==================== */
.categories-bar {
    padding: 1.8rem 0;
    background: linear-gradient(to bottom, rgba(13,13,26,0.9), var(--bg));
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.categories-bar h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.cat-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.cat-tag {
    background: #1e1e2e;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid transparent;
}

.cat-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
    border-color: #fff;
}

/* ==================== SOUND GRID - MOBILE OPTIMIZED ==================== */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.2rem;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.instant-button {
    width: 100%;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1e);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 2px 8px rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
}

.instant-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.3);
}

.button-wrapper {
    padding: 15px 12px 12px;
    text-align: center;
    position: relative;
}

.play-circle {
    position: relative;
    width: 65px;
    height: 65px;
    margin: 0 auto 10px;
    background: url('/static/images/play-button.svg') center center no-repeat;
    background-size: 65%;
    cursor: pointer;
}

.play-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle-bg {
    fill: none;
    stroke: #333;
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke: var(--glow-green);
    stroke-width: 5;

    stroke-dasharray: 282.74;
    stroke-dashoffset: 282.74;

    stroke-linecap: butt; /* important */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}


.triangle {
    fill: var(--accent-blue);
    transition: fill 0.3s;
}

.button-text {
    text-align: center;
    padding: 6px 10px 3px;
    line-height: 1.3;
}

.title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-light-blue);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.duration {
    display: block;
    font-size: 0.82rem;
    color: var(--accent-blue);
    opacity: 0.9;
}

.play-trigger {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom, var(--primary), #f7931e);
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 0 16px 16px;
    transition: 0.3s;
}

.play-trigger:hover {
    background: linear-gradient(to bottom, var(--primary-dark), #e67e00);
}

.play-trigger:active {
    transform: translateY(2px);
}

/* Playing State */
.instant-button.playing .circle-progress {
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear;
    animation: dash 4s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -228; }
}

.instant-button.playing .triangle {
    fill: var(--glow-green);
}

.instant-button.playing .play-circle {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 12px #00ff8830); }
    to { filter: drop-shadow(0 0 28px var(--glow-green)); }
}

/* ==================== PAGINATION - MOBILE OPTIMIZED ==================== */
.pagination {
    text-align: center;
    padding: 1.5rem 0;
    background: rgba(20,20,40,0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
}

.page-btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 4px;
    background: #1e1e2e;
    color: var(--accent-light-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,107,53,0.4);
}

.page-btn.current {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(255,107,53,0.6);
}

.page-btn.disabled {
    color: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.dots {
    color: #888;
    padding: 0 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ==================== FOOTER - MOBILE OPTIMIZED ==================== */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* ==================== STATIC PAGES - MOBILE OPTIMIZED ==================== */
.static-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.8rem;
    background: var(--card);
    border-radius: 16px;
    line-height: 1.7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.static-page h1 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.static-page h2 {
    margin: 1.5rem 0 0.8rem;
    color: #ff8b55;
    font-size: 1.4rem;
}

.static-page p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ==================== SINGLE SOUND PAGE - MOBILE OPTIMIZED ==================== */
.instant-page {
    padding-bottom: 3rem;
}

/* Compact Hero Section */
.sound-hero {
    padding: 2rem 0 1.5rem;
    text-align: center;
    background: var(--card);
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.hero-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 3px solid var(--primary);
}

.sound-info {
    text-align: center;
    width: 100%;
}

.sound-info h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.sound-info .desc {
    font-size: 1rem;
    color: var(--accent-light-blue);
    margin: 0.6rem auto;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
}

.duration {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 0.8rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Main Player Section */
.player-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    text-align: center;
}

/* Action Buttons - Mobile Optimized */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.btn-primary,
.btn-download,
.btn-share {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 130px;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-download {
    background: transparent;
    color: var(--accent-light-blue);
    border: 2px solid var(--primary);
}

.btn-download:hover {
    background: var(--primary);
    color: white;
}

.btn-share {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-blue);
}

.btn-share:hover {
    background: var(--accent-blue);
    color: #000;
}

/* Embed Box */
.embed-box {
    max-width: 700px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: var(--card);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.embed-box h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.embed-box textarea {
    width: 100%;
    height: 90px;
    padding: 1rem;
    background: #1e1e2e;
    color: var(--accent-light-blue);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: none;
}

/* Related Sounds */
.related-sounds h2 {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 2rem 0 1.5rem;
    font-weight: 800;
}

.view-all-wrapper {
    text-align: center;
    margin: 3rem 0;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.no-sounds {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 3rem 1rem;
}

/* ==================== ENHANCED MAIN AUDIO PLAYER - MOBILE OPTIMIZED ==================== */
.main-player {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    background: #1a1a2e !important;
    height: 52px;
}

.main-player::-webkit-media-controls-panel {
    background-color: #1a1a2e !important;
    color: white !important;
    border-radius: 18px;
    padding: 0 6px;
}

.main-player::-webkit-media-controls-enclosure {
    border-radius: 18px;
    overflow: hidden;
    background: transparent !important;
}

.main-player::-webkit-media-controls-play-button {
    background-color: var(--primary) !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    margin-left: 6px !important;
}

.main-player::-webkit-media-controls-current-time-display,
.main-player::-webkit-media-controls-time-remaining-display {
    color: var(--accent-light-blue) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 0 6px;
}

.main-player::-webkit-media-controls-timeline-container {
    background-color: rgba(40, 40, 60, 0.6) !important;
    border-radius: 10px;
    height: 7px !important;
    margin: 0 8px;
}

.main-player::-webkit-media-controls-timeline {
    background-color: #2d2d44 !important;
    border-radius: 10px;
    height: 7px !important;
}

.main-player::-webkit-media-controls-timeline::-webkit-media-slider-thumb {
    background-color: var(--primary) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.8) !important;
}

/* ==================== ARTICLE SECTION - MOBILE OPTIMIZED ==================== */
.article-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, rgba(13,13,26,1) 0%, rgba(22,22,42,1) 100%);
    border-top: 1px solid var(--border);
}

.article-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 0 12px rgba(255,107,53,0.4);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1.2rem;
    color: var(--accent-blue);
}

.article-content ul {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.article-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    margin: 2rem auto;
    display: block;
    border: 2px solid var(--primary);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-bar {
        display: none;
        width: 100%;
        margin-top: 8px;
        animation: slideDown 0.25s ease;
    }
    .search-bar.show {
        display: flex;
    }

    
    .search-bar input {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .search-bar button {
        padding: 0 20px;
        font-size: 0.9rem;
    }
    
    .nav-links {
        order: 3;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        -webkit-text-stroke: 1px black;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    /* Sound Grid - 4 columns on tablet */
    .sound-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .play-circle {
        width: 55px;
        height: 55px;
        background-size: 60%;
    }
    
    .title {
        font-size: 1.00rem;
    }
    
    .duration {
        font-size: 0.78rem;
    }
    
    .play-trigger {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .sound-info h1 {
        font-size: 1.6rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-primary,
    .btn-download,
    .btn-share {
        width: 100%;
        max-width: 280px;
        min-width: 0;
        padding: 10px 20px;
    }
    
    .related-sounds h2 {
        font-size: 1.4rem;
    }
    
    .static-page {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .static-page h1 {
        font-size: 1.6rem;
    }
    
    .static-page h2 {
        font-size: 1.2rem;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .nav-links {
        display: none !important;           /* ← yeh sabse zaroori line */
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
        padding: 1rem 0;
        background: rgba(30, 30, 50, 0.98);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.6);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        border-top: 1px solid #333;
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.9rem 1.5rem;
        width: 85%;
        text-align: center;
        border-radius: 10px;
        background: rgba(255, 107, 53, 0.12);
        transition: all 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--primary);
        color: white;
    }

    /* Header ko relative banao taake absolute positioning sahi kaam kare */
    .header {
        position: relative;
    }
    body {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .hero {
        height: 45vh;
        min-height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        -webkit-text-stroke: 0.8px black;
    }
    
    .hero .tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .categories-bar {
        padding: 1.5rem 0;
    }
    
    .categories-bar h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .cat-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Sound Grid - 3 columns on very small screens for better fit */
    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 1rem 0;
    }
    
    .instant-button {
        border-radius: 14px;
    }
    
    .button-wrapper {
        padding: 12px 10px 10px;
    }
    
    .play-circle {
        width: 50px;
        height: 50px;
    }
    
    .circle-progress {
        stroke-width: 4;
        stroke-dasharray: 282.74;
        stroke-dashoffset: 282.74;
    }
    
    @keyframes dash {
        to { stroke-dashoffset: -228; }
    }
    
    .title {
        font-size: 1.0rem;
    }
    
    .duration {
        font-size: 0.75rem;
    }
    
    .play-trigger {
        padding: 8px;
        font-size: 0.85rem;
        border-radius: 0 0 14px 14px;
    }
    
    .hero-img {
        width: 120px;
        height: 120px;
    }
    
    .sound-info h1 {
        font-size: 1.4rem;
    }
    
    .sound-info .desc {
        font-size: 0.9rem;
    }
    
    .category-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
    
    .main-player {
        height: 48px;
        margin: 1.5rem auto;
    }
    
    .main-player::-webkit-media-controls-play-button {
        width: 34px !important;
        height: 34px !important;
    }
    
    .main-player::-webkit-media-controls-current-time-display,
    .main-player::-webkit-media-controls-time-remaining-display {
        font-size: 12px !important;
    }
    
    .page-btn {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 0.85rem;
        margin: 0 3px;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .article-content {
        font-size: 0.9rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Screens (360px and below) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero .tagline {
        font-size: 0.85rem;
    }
    
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    
    .cat-tags {
        gap: 0.6rem;
    }
    
    .cat-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }
    
    .sound-info h1 {
        font-size: 1.2rem;
    }
    
    .sound-info .desc {
        font-size: 0.85rem;
    }
    
    .btn-primary,
    .btn-download,
    .btn-share {
        font-size: 0.9rem;
        padding: 9px 18px;
    }
}

/* Landscape Orientation Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 70vh;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .sound-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High DPI Screens Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .play-circle {
        background-size: 70% !important;
    }
    
    .instant-button {
        border-width: 0.5px;
    }
}

/* MOBILE CATEGORY HEADER */

.cat-mobile-header{
    display:none;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.cat-mobile-header .left{
    display:flex;
    align-items:center;
    gap:10px;
}

.hamburger{
    width:22px;
    cursor:pointer;
}

.hamburger span{
    display:block;
    height:3px;
    background:white;
    margin:4px 0;
    border-radius:2px;
}

.search-icon {
        width: 22px;
        height: 22px;
        cursor: pointer;
}

/* Hidden search */
#catSearch{
    width:0;
    opacity:0;
    transition:0.25s;
    padding:6px;
    border-radius:8px;
    border:none;
    margin-left:8px;
}

#catSearch.show{
    width:140px;
    opacity:1;
}

/* MOBILE BEHAVIOR */
@media(max-width:480px){

    .categories-bar h3{
        display:none;
    }

    .cat-mobile-header{
        display:flex;
    }

    .cat-tags{
        display:none;
    }

    .cat-tags.show{
        display:flex;
    }

}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.ad-center-wrapper {
    text-align: center;           /* sabse simple center trick */
    margin: 2rem auto;            /* upar-neeche space + horizontal center */
    max-width: 100%;              /* mobile pe overflow na ho */
    padding: 1rem 0;              /* thoda breathing room */
}

.ad-center-wrapper iframe {
    display: block;               /* important – iframe ko block banao */
    margin: 0 auto;               /* auto margins se center */
    border: none;                 /* extra border remove karo agar dikhe */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
}
