@media screen {
    main {
        max-width: 90vw;
        margin: 0 auto;
    }

    .subtitle {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    .search-container {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .search-box {
        display: flex;
        max-width: 500px;
        width: 100%;
    }

    #username {
        flex: 1;
        padding: 0.8rem 1rem;
        background-color: #1e1e1e;
        border: 2px solid #333;
        border-right: none;
        border-radius: 8px 0 0 8px;
        color: white;
        font-size: 1rem;
        outline: none;
        transition: border-color 0.3s;
    }

    #username:focus {
        border-color: #bb86fc;
    }

    #search-btn {
        padding: 0 1.5rem;
        background-color: #bb86fc;
        color: black;
        border: none;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        transition: background-color 0.3s;
    }

    #search-btn:hover {
        background-color: #a370d9;
    }

    .loading {
        text-align: center;
        margin: 2rem 0;
        display: none;
    }

    .spinner {
        border: 4px solid #222;
        border-radius: 50%;
        border-top: 4px solid #bb86fc;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 1rem;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .error {
        color: #ff6b6b;
        background-color: #222;
        padding: 1rem;
        border-radius: 8px;
        margin: 2rem 0;
        text-align: center;
        display: none;
    }

    .section-title {
        word-wrap: break-word;
        overflow: hidden;
        font-size: 1.3rem;
        color: #bb86fc;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #333;
    }

    .general-container {
        display: none;
        background-color: #1e1e1e;
        border-radius: 8px;
        overflow: hidden;
        width: 90vw;
    }

    .general-mal {
        padding: 1rem;
    }

    .profile-container {
        display: none;
        background-color: #1e1e1e;
        border-radius: 8px;
        overflow: hidden;
        width: 90vw;
    }

    .general-stats {
        padding: 1rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }

    .stat-card {
        background-color: #2c2c2e;
        padding: 0.5rem;
        border-radius: 8px;
        border: 1px solid #333;
    }

    .stat-card-title {
        font-size: 0.8rem;
        word-wrap: break-word;
        color: #a0a0a0;
        margin-bottom: 0.5rem;
    }

    .stat-card-value {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .all-anime-data, .all-manga-data {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .grid-one {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .grid-two {
        display: grid;
        grid-template-columns: repeat(1, auto);
        gap: 1rem;
    }

    canvas {
        max-width: 100%;
    }
}