/* Tablet styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        margin-bottom: 1.2rem;
    }
    
    .mixtape-graphics img {
        max-width: 180px;
    }
    
    p {
        margin-top: 1.2rem;
        text-align: center; /* Center on tablets */
    }
    
    .cassette-container {
        max-width: 500px;
    }

    .cassette-tape {
        padding: 18px;
    }

    .player-deck {
        padding: 18px;
    }

    .cassette-label {
        font-size: 0.65rem;
    }

    .label-line {
        font-size: 0.8rem;
    }
    
    .control-button {
        width: 45px;
        height: 35px;
        font-size: 14px;
    }

    /* Track search responsive */
    .track-search {
        margin: 1.5rem auto 1.2rem auto;
        max-width: 350px;
    }

    .search-label {
        font-size: 1.1rem;
    }

    .search-input-container {
        flex-direction: row;
        gap: 8px;
    }

    #hunter-id-input {
        width: 180px;
        font-size: 0.9rem;
    }

    #search-btn {
        width: 50px;
        height: 40px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .track-search {
        margin: .1rem auto;
        max-width: 300px;
    }

    .search-label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    #hunter-id-input {
        width: 160px;
        font-size: 0.85rem;
        padding: 6px 10px;
        height: 35px;
    }

    #search-btn {
        width: 55px;
        height: 35px;
        padding: 6px 10px;
    }

    .search-message {
        font-size: 0.8rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    body {
        padding: 10px;
        justify-content: flex-start;
        padding-top: 30px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .mixtape-graphics {
        gap: 15px;
        margin: 1rem 0;
    }
    
    .mixtape-graphics img {
        max-width: 150px;
    }
    
    p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        margin-top: 1rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .cassette-container {
        max-width: 400px;
    }

    .cassette-tape {
        padding: 15px;
        aspect-ratio: 3.2/1.9;
    }

    .player-deck {
        padding: 15px;
    }

    .cassette-body {
        padding: 10px;
    }

    .cassette-label {
        padding: 5px 7px;
        font-size: 0.9rem;
        height: 42px;
    }

    .label-line {
        font-size: 0.75rem;
    }

    .label-compact {
        font-size: 0.65rem;
    }

    /* Adjust line positions for mobile */
    .cassette-label::before {
        top: 20px;
        box-shadow: 0 16px 0 #ccc, 0 32px 0 #ccc;
    }

    .reel {
        width: 50px;
        height: 50px;
    }

    .tape-window {
        width: 60px;
        height: 14px;
        margin: 0 15px;
    }

    .cassette-main {
        padding: 14px;
    }

    .cassette-center {
        padding: 10px;
        width: 80%;
        margin: -20px auto 0 auto;
    }
    
    .control-button {
        width: 40px;
        height: 32px;
        font-size: 12px;
    }
    
    .controls {
        gap: 10px;
    }
}

/* Very small mobile devices */
@media (max-width: 320px) {
    body {
        padding: 8px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .mixtape-graphics {
        gap: 10px;
    }
    
    .mixtape-graphics img {
        max-width: 120px;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    .cassette-container {
        max-width: 320px;
    }

    .cassette-tape {
        padding: 12px;
        aspect-ratio: 3.2/2.0;
    }

    .player-deck {
        padding: 12px;
    }

    .cassette-label {
        padding: 5px 6px;
        font-size: 0.65rem;
        height: 38px;
    }

    .label-line {
        font-size: 0.7rem;
    }

    .label-compact {
        font-size: 0.55rem;
    }

    /* Adjust line positions for small mobile */
    .cassette-label::before {
        top: 16px;
        box-shadow: 0 12px 0 #ccc, 0 24px 0 #ccc;
    }

    .reel {
        width: 36px;
        height: 36px;
    }

    .tape-window {
        width: 45px;
        height: 10px;
        margin: 0 10px;
    }

    .cassette-main {
        padding: 10px;
    }

    .cassette-center {
        padding: 8px;
        width: 85%;
        margin: -15px auto 0 auto;
    }
    
    .control-button {
        width: 35px;
        height: 28px;
        font-size: 10px;
    }
}
