/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        margin-left: 0; /* Remove side menu offset */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu in mobile mode */
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        z-index: 200; /* Ensure clickable */
    }

    .close-menu {
        display: block; /* Show close menu button in mobile mode */
        z-index: 200; /* Ensure clickable */
    }

    .logo {
        align-self: flex-start;
    }

    .logo img {
        width: 80px; /* Adjusted for mobile */
    }

    .now-playing {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        width: 100%;
    }

    .now-playing-text {
        flex-grow: 1;
        text-align: left;
    }

    .now-playing-text h2 {
        font-size: 0.9rem;
    }

    .now-playing-text p {
        font-size: 0.8rem;
    }

    .rating-buttons {
        display: none; /* Hide like and dislike buttons in mobile */
    }

    .auth-container {
        display: none;
    }

    .side-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 80vh; /* Match initial site */
        z-index: 200;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease; /* Smooth slide */
        box-shadow: 2px 0 5px rgba(0,0,0,0.2); /* Match initial site */
    }

    .side-menu.active {
        transform: translateX(0); /* Slide in when active */
    }

    .menu-auth-container {
        display: block;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5); /* Match initial site */
        z-index: 199; /* Below side menu */
        display: none;
        transition: opacity 0.3s ease; /* Smooth fade */
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    main {
        margin: 80px auto; /* Center content, account for header */
    }

    .card1 {
        width: 144px; /* 120px * 1.2 = 20% bigger */
        height: 216px; /* 180px * 1.2 = 20% bigger */
    }

    .card1 img {
        width: 72px; /* 60px * 1.2 = 20% bigger */
        height: 72px;
    }

    .media-player-container iframe {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.3rem;
        padding: 0.3rem 0.5rem;
    }

    .hamburger-menu {
        display: block;
        right: 0.3rem;
        top: 0.3rem;
        z-index: 200; /* Ensure clickable */
    }

    .close-menu {
        display: block; /* Show close menu button in mobile mode */
        z-index: 200; /* Ensure clickable */
    }

    .logo img {
        width: 60px; /* Adjusted for smaller mobile */
    }

    .now-playing-text h2 {
        font-size: 0.8rem;
    }

    .now-playing-text p {
        font-size: 0.7rem;
    }

    .card1 {
        width: 120px; /* 100px * 1.2 = 20% bigger */
        height: 192px; /* 160px * 1.2 = 20% bigger */
    }

    .card1 img {
        width: 60px; /* 50px * 1.2 = 20% bigger */
        height: 60px;
    }

    .media-player-container iframe {
        height: 250px;
    }
}