html,
body {
    height: 100%;
    margin: 0;
    background: linear-gradient(rgba(174, 58, 115, 0.8), rgba(174, 58, 115, 0.8)),
        url('station.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Ensures background covers page on scroll */

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    box-sizing: border-box;
}

.logo-icon {
    padding: 20px;
}

.now-playing-text {
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.programme-name {
    font-weight: bold;
    text-shadow: 1px 1px 10px #ccc;
}

.programme-box {
    background-color: rgba(255, 255, 255, 0.1);
    width: 70%;
    color: #fff;
    border-radius: 8px;
    padding: 0px 5px 20px;
    margin: 15px auto;
    outline: none;
}

.status-text {
    color: #fff;
    font-size: 20px;
}

/* --- Button Styling --- */
.play-pause-button {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e0e5ec;
    box-shadow: 5px 5px 8px #a3b1c6, -5px -5px 8px #ffffff;
    transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
    position: relative;
}

.play-pause-button:active {
    transform: scale(0.95);
    box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
}

.play-pause-icon {
    width: 48px;
    height: 48px;
    stroke: #555;
    stroke-width: 2;
    transition: opacity 0.2s;
    position: absolute;
}

.play-pause-icon.hidden {
    opacity: 0;
    pointer-events: none;
}

/* CONTACT FORM */
.contact-form {
    width: 70%;
    margin: 20px auto;
}
.map,
.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.centre-text {
    text-align: center;
}

.contact-text {
    display: block;
    width: 100%;
    font-size: 15px;
    color: #fff;
    text-align: left;
    margin-bottom: 5px;
}

.input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    outline: none;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.textarea {
    height: 120px;
    resize: vertical;
    font-family: inherit;
}

.button {
    background-color: rgb(128, 174, 167);
    width: 100%;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.button:hover {
    opacity: 0.9;
}

.button:active {
    opacity: 0.8;
}

/* TAB NAVIGATION CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.page {
    display: none;
    padding-bottom: 80px;
}

.page.active {
    display: block;
}

.page h1 {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.page h4 {
    color: #fff;
    padding: 0px 0px 5px;
}

.page p {
    color: #fff;
    line-height: 1.6;
}

.page a {
    color: aquamarine;
}

.tab-bar {
    background-color: white;
    border-top: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-button:active {
    opacity: 0.7;
}

.tab-icon {
    width: 24px;
    height: 24px;
    stroke: #9ca3af;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.tab-button.active .tab-icon {
    stroke: rgba(174, 58, 115, 0.8);
}

.tab-label {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 0.2s;
}

.tab-button.active .tab-label {
    color: rgba(174, 58, 115, 0.8);
}

/* MINI PLAYER CSS */

.mini-player {
    position: fixed;
    bottom: 64px;
    /* Height of tab-bar */
    width: 100%;
    height: 40px;
    background-color: rgb(128, 174, 167);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
}

.mini-player.hidden {
    display: none;
}

.mini-player-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.mini-pause-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    text-align: center;
    border-radius: 8px;
    padding: 16px 24px;
    position: fixed;
    z-index: 20;
    left: 50%;
    transform: translateX(-50%);
    bottom: 124px;
    font-size: 17px;
    border: 2px solid rgb(128, 174, 167);
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 114px;
        opacity: 0;
    }

    to {
        bottom: 124px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 114px;
        opacity: 0;
    }

    to {
        bottom: 124px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 124px;
        opacity: 1;
    }

    to {
        bottom: 114px;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 124px;
        opacity: 1;
    }

    to {
        bottom: 114px;
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .programme-box, .contact-form {
        width: 100%;
    }

}