/* Modern Ringtone Website CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: var(--gradient-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

header.sticky {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    margin-right: 12px;
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
}

.logo-sub {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.navbar {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.menuToggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar1, .bar2, .bar3 {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--text-dark);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 30px;
}

.home-container {
    flex: 1;
}

.first {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.first h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.first p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Card Grid */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card-item {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover img {
    transform: scale(1.05);
}

.card-item .content {
    padding: 25px;
}

.card-item span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.developer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.designer {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.editor {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.card-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Text Container */
.text-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    margin-top: 30px;
}

.h2, .h3, .h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 20px 0;
    padding: 15px 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

.text-container p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.text-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    margin: 20px auto;
    display: block;
}

/* Table Styles */
.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.post-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.post-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* List Styles */
ul {
    padding-left: 20px;
    margin: 20px 0;
}

ul li {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 16px;
}

/* Audio Player Styles */
.ringtone-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.audio-box {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.audio-box:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.play {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.play-button::before {
    content: '▶';
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.download-div {
    flex: 1;
    min-width: 0;
}

.download-div h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.download-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.song-category {
    flex-shrink: 0;
    margin-left: 10px;
}

.song-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.song-category a:hover {
    color: var(--secondary-color);
}

/* Sidebar */
aside {
    width: 300px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.ls-list h4 {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: center;
}

ul#ls-list {
    list-style: none;
    padding: 0;
}

ul#ls-list li {
    margin: 10px 0;
}

ul#ls-list li a {
    display: block;
    padding: 15px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

ul#ls-list li a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: white;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    margin-right: 12px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo-main {
    font-size: 24px;
    font-weight: 800;
}

.footer-logo-sub {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.disclaimer {
    margin-bottom: 20px;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
}

.disclaimer a {
    color: white;
    text-decoration: underline;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .menuToggle {
        display: flex !important;
        z-index: 1001;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--gradient-primary);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-medium);
        z-index: 999;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        display: none;
    }
    
    .navbar.active {
        transform: translateY(0);
        display: flex;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: 10px;
        margin: 5px 0;
        text-align: center;
        font-size: 18px;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    main {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    aside {
        width: 100%;
        position: static;
        margin-top: 0;
        order: 2;
    }
    
    .home-container {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-container {
        padding: 0 15px;
        height: 70px;
        width: 100%;
        max-width: 100vw;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 12px;
    }
    
    .search-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
        width: 100%;
        max-width: 100vw;
    }
    
    .navbar {
        top: 60px;
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        display: none;
    }
    
    .navbar.active {
        display: flex;
    }
    
    .logo-main {
        font-size: 18px;
    }
    
    .logo-sub {
        font-size: 11px;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .menuToggle {
        padding: 8px;
        position: relative;
        z-index: 1002;
    }
    
    .bar1, .bar2, .bar3 {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }
    
    .first {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .first h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .first p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .card-list {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .card-item {
        border-radius: 15px;
    }
    
    .card-item img {
        height: 180px;
    }
    
    .card-item .content {
        padding: 20px;
    }
    
    .card-item h3 {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .text-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .h2, .h3, .h4 {
        font-size: 20px;
        padding: 12px 20px;
        margin: 20px 0 15px 0;
    }
    
    .text-container p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .post-table {
        font-size: 14px;
    }
    
    .post-table td {
        padding: 12px 15px;
    }
    
    .audio-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
        width: 100%;
    }
    
    .play {
        order: 1;
    }
    
    .download-div {
        order: 2;
        width: 100%;
    }
    
    .song-category {
        order: 3;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .download-div h2 {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 13px;
        margin: 0 auto;
        display: flex;
    }
    
    .ringtone-container {
        gap: 15px;
        margin: 20px 0;
        width: 100%;
    }
    
    aside {
        padding: 20px;
        border-radius: 15px;
    }
    
    .ls-list h4 {
        font-size: 14px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    ul#ls-list li a {
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        height: 55px;
        width: 100%;
        min-width: 320px;
    }
    
    .navbar {
        top: 55px;
        display: none;
    }
    
    .navbar.active {
        display: flex;
    }
    
    .logo-main {
        font-size: 16px;
    }
    
    .logo-sub {
        font-size: 10px;
    }
    
    .logo img {
        width: 25px;
        height: 25px;
        margin-right: 6px;
    }
    
    .navbar {
        top: 55px;
        padding: 15px;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 16px;
        width: 100%;
    }
    
    .menuToggle {
        padding: 6px;
    }
    
    .bar1, .bar2, .bar3 {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }
    
    main {
        padding: 15px;
        gap: 15px;
    }
    
    .first {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .first h1 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .first p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .card-list {
        gap: 12px;
        margin: 15px 0;
    }
    
    .card-item {
        border-radius: 12px;
    }
    
    .card-item img {
        height: 160px;
    }
    
    .card-item .content {
        padding: 15px;
    }
    
    .card-item span {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .card-item h3 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .text-container {
        padding: 15px;
        margin-top: 15px;
        border-radius: 15px;
    }
    
    .h2, .h3, .h4 {
        font-size: 18px;
        padding: 10px 15px;
        margin: 15px 0 12px 0;
        border-radius: 0 8px 8px 0;
    }
    
    .text-container p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .text-container img {
        border-radius: 10px;
        margin: 15px auto;
    }
    
    .post-table {
        font-size: 13px;
        border-radius: 10px;
    }
    
    .post-table td {
        padding: 10px 12px;
    }
    
    .audio-box {
        padding: 12px;
        gap: 12px;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .play {
        order: 1;
    }
    
    .download-div {
        order: 2;
        width: 100%;
    }
    
    .song-category {
        order: 3;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
    }
    
    .play-button::before {
        font-size: 16px;
    }
    
    .download-div h2 {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.3;
        text-align: center;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 8px;
        margin: 0 auto;
        display: flex;
    }
    
    .download-button img {
        width: 14px;
        height: 14px;
    }
    
    .song-category a {
        font-size: 12px;
    }
    
    .ringtone-container {
        gap: 12px;
        margin: 15px 0;
        width: 100%;
    }
    
    aside {
        padding: 15px;
        border-radius: 12px;
    }
    
    .ls-list h4 {
        font-size: 13px;
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    ul#ls-list li a {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .footer-container {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-logo-main {
        font-size: 20px;
    }
    
    .footer-logo-sub {
        font-size: 12px;
    }
    
    .footer-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-info p {
        font-size: 14px;
    }
    
    .disclaimer p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .search-container {
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .search-close {
        top: 12px;
        right: 12px;
        font-size: 20px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Mobile menu animations */
.active .bar1 {
    transform: rotate(-45deg) translate(-3px, 3px);
    height: 3px;
}

.active .bar2 {
    opacity: 0;
}

.active .bar3 {
    transform: rotate(45deg) translate(-8px, -8px);
    height: 3px;
}

/* Additional mobile improvements */
@media (max-width: 320px) {
    .header-container {
        padding: 0 8px;
        height: 50px;
    }
    
    .logo-main {
        font-size: 14px;
    }
    
    .logo-sub {
        font-size: 9px;
    }
    
    .logo img {
        width: 22px;
        height: 22px;
        margin-right: 5px;
    }
    
    .first h1 {
        font-size: 16px;
    }
    
    .first p {
        font-size: 13px;
    }
    
    .card-item img {
        height: 140px;
    }
    
    .card-item h3 {
        font-size: 13px;
    }
    
    .h2, .h3, .h4 {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .text-container p {
        font-size: 13px;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .download-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .card-item:hover {
        transform: none;
    }
    
    .card-item:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .nav-link:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .download-button:hover {
        transform: none;
    }
    
    .download-button:active {
        transform: scale(0.95);
    }
    
    .play-button:hover {
        transform: none;
    }
    
    .play-button:active {
        transform: scale(0.9);
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .header-container {
        height: 50px;
    }
    
    .navbar {
        top: 50px;
    }
    
    .first h1 {
        font-size: 20px;
    }
    
    .card-item img {
        height: 120px;
    }
    
    .audio-box {
        flex-direction: row;
        text-align: left;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .card-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Additional responsive fixes */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo-text {
        display: flex;
    }
    
    .logo img {
        margin-right: 8px;
    }
}

/* Ensure header is always visible and responsive */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile header fixes */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px !important;
        height: 60px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-text {
        display: flex !important;
    }
    
    .logo img {
        margin-right: 8px !important;
    }
    
    .header-actions {
        flex-shrink: 0;
        gap: 10px;
    }
    
    .menuToggle {
        display: flex !important;
        z-index: 1001;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
        height: 50px;
    }
    
    .logo-text {
        display: flex !important;
    }
    
    .logo img {
        width: 20px;
        height: 20px;
        margin-right: 6px !important;
    }
    
    .logo-main {
        font-size: 14px !important;
    }
    
    .logo-sub {
        font-size: 10px !important;
    }
    
    .menuToggle {
        padding: 4px;
    }
    
    .bar1, .bar2, .bar3 {
        width: 18px;
        height: 2px;
        margin: 2px 0;
    }
    
    .navbar {
        top: 50px;
        padding: 10px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* Audio player responsive fixes */
@media (max-width: 600px) {
    .audio-box {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .play {
        order: 1 !important;
    }
    
    .download-div {
        order: 2 !important;
        width: 100% !important;
    }
    
    .song-category {
        order: 3 !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
    
    .download-button {
        margin: 0 auto !important;
        display: flex !important;
    }
}

/* Legacy styles for compatibility */
.h2h {
    font-size: 19px;
}

.player {
    position: relative;
    width: 350px;
    background: #f1f3f4;
    border-radius: 15px;
    display: block;
    margin: auto;
    border: 1px solid #e3e7ed;
    box-shadow: 0 15px 32px -3px rgba(0,0,0,.25);
}

.player .imgbx {
    position: relative;
    width: 100%;
    height: 350px;
}

.player .imgbx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player audio {
    width: 100%;
    outline: 0;
}

.download-btn {
    width: 100%;
    height: 40px !important;
    margin: 15px 0;
    outline: 0;
    border: none;
    display: flex;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    align-items: center;
    transition: .2s;
    color: #fff;
    background: var(--primary-color);
}

.download-btn:hover {
    background: #00f;
}

.download-btn.timer {
    color: #000;
    background: 0 0;
    transition: none;
    font-size: 1.6rem;
    pointer-events: none;
}

.download-btn.timer b {
    color: #4a98f7;
    padding: 0 8px;
}

.download-btn .icon {
    font-size: 2rem;
}

.download-btn .text {
    font-size: 18px;
    padding-left: 7px;
}

audio {
    width: 100%;
}

/* Legacy player styles */
#duration, .play2 {
    position: relative;
    float: left;
    transform: translate(-50%, -50%);
}

.player2 {
    width: 80%;
    height: 250px;
    text-align: center;
    background-image: linear-gradient(to right, #363e3c 0, #6fa2d5 100%);
}

.play2 {
    top: 50%;
    left: 50%;
    margin: 0 !important;
}

#duration {
    top: 86%;
    left: 34%;
    width: 110px;
    border: 1px dashed #ccc;
    border-radius: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,.24);
    color: #fff;
}

.play-button2 {
    width: 100px;
    height: 100px;
    filter: invert(1);
}

@media (max-width: 600px) {
    .player2 {
        width: 100%;
        height: 170px;
    }
    
    .play-button2 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    #duration {
        left: 31%;
    }
}

@media (max-width: 320px) {
    #duration {
        left: 0;
    }
}