.twitch-viewership-stats {
    background: #ffffff;
    color: #000;
    font-family: 'Arial', sans-serif;
    max-width: 800px; /* Allows shrinkage on smaller screens */
    width: 100%; /* Utilizes available width on small screens */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    text-align: center;
}

.metric__data .number {
    font-size: 40px; /* Smaller font size for smaller screens */
    font-weight: bold;
    padding-bottom:10px;
    font-family: "Bebas Neue", sans-serif;
}

.twitch-viewership-stats h2 {
    margin-bottom: 10px;
}

player-twitch__p {
    margin-top:10px;
}

.twitch-viewership-stats p {
    margin: 5px 0;
    font-size: 16px; /* Adjusted for better readability on small screens */
}

.twitch-metric__datas {
    display: flex;
    flex-wrap: wrap; /* Ensures metric__datas wrap on smaller screens */
    justify-content: space-around;
    margin-top: 40px;
}

.metric__data {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 150px; /* Minimum width of 150px per metric__data */
    margin: 10px; /* Adds spacing around each metric__data */
}

.metric__data .number {
    font-size: 38px; /* Smaller font size for smaller screens */
    font-weight: bold;
}

.metric__data .label {
    font-size: 18px;
    color: #555;
}

.metric__data .details {
    text-decoration: none;
    font-size: 14px;
    color: #0073aa;
}

.last-updated {
    font-size: 14px;
    color: #666;
    margin-top: 20px !important;
}

.twitch-stats__header {
    background-color: #ff4500;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.twitch-stats__header .logo_img {
    height: 50px;
    margin-right: 20px; /* Adjust based on visual requirement */
}

.twitch-stats__header h2 span {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
}

.twitch-stats__header h2 a {
    color: #ffffff;
    background-color: #a642ff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    margin-left: 10px;
}

.twitch-stats__header h2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #ffffff;
}

.player-twitch__p {
    margin-left: 10px; /* Space after game title */
    font-size: 18px; /* Larger font for visibility */
    color: #ffffff; /* White color for readability */
    white-space: nowrap; /* Prevents breaking into new line */
}

/* Media Queries for very small devices */
@media (max-width: 600px) {
    .twitch-viewership-stats {
        padding: 15px;
    }
	
	.twitch-stats__header h2 {
        flex-direction: column; /* Stacks elements vertically on small screens */
    }
	
	.player-twitch__p {
        margin-top: 10px; /* Adds vertical space on smaller screens */
    }
	
	    .twitch-stats__header .logo_img {
        margin-bottom: 10px;
    }
	
	    .twitch-stats__header h2 span, .twitch-stats__header h2 a {
        font-size: 16px;
    }

    .twitch-viewership-stats p,
    .last-updated {
        font-size: 14px;
    }

    .metric__data .number {
        font-size: 34px;
    }

    .metric__data .label {
        font-size: 16px;
    }

    .metric__data .details {
        font-size: 12px;
    }
}