/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

:root {
    --bg-color: #000000;
    --heading-color: #ff0000;
    --text-color: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-weight: bold; /* Bold white text for everything */
    line-height: 1.6;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px; /* Mobilecentric focus */
    margin: 0 auto;
    text-align: center;
}

header {
    padding-bottom: 30px;
}

.logo {
    max-width: 250px; /* Resize as necessary */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1, h2 {
    color: var(--heading-color);
    font-weight: bold; /* Bold red text for headings */
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 40px;
}

section {
    margin-bottom: 40px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--heading-color);
    text-decoration: underline;
}

.player-container {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--heading-color);
    margin: 20px auto;
    max-width: 400px;
}

.request-container {
    margin: 20px auto;
    max-width: 400px;
}

#radio-player {
    width: 100%;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Makes standard player look better on black */
    margin-bottom: 15px;
}

.player-links {
    margin-top: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--heading-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #d40000;
    color: #fff;
}

.request-form {
    text-align: left;
    background: #111;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--heading-color);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--heading-color);
    text-transform: uppercase;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
}

input[type="text"]:focus {
    border-color: var(--heading-color);
    outline: none;
}

.btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    background-color: #000;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid var(--heading-color);
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #fff;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--heading-color);
    text-decoration: none;
    cursor: pointer;
}

/* Now Playing & History */
.now-playing-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    border: 2px solid var(--heading-color);
}

.track-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.track-item {
    padding: 12px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:last-child {
    border-bottom: none;
}

.track-info {
    flex: 1;
}

.track-time {
    color: #666;
    font-size: 0.85rem;
    margin-left: 10px;
}

.loader {
    color: var(--heading-color);
    font-style: italic;
}

footer {
    padding-top: 50px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile-centric responsiveness already built-in, 
   but ensuring full width for small screens */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 2rem;
    }
}
