:root{
    --bg:#ffffff;
    --page-bg:#f6f6f6;
    --text:#0b0b0b;
    --muted:#666;
    --card-radius:12px;
    --color-logo: rgb(226, 124, 16);
    --gap:22px;
}
:root {
    --bg: #ffffff;
    --page-bg: #f6f6f6;
    --text: #0b0b0b;
    --muted: #666;
    --card-radius: 12px;
    --gap: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--page-bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
}

header {
    background: var(--bg);
    border-bottom: 2px solid var(--color-logo);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.logo .logo-title{
    font-weight: 700;
    transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
    position: relative;
    opacity: 1;
}

.logo .logo-title::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--color-logo);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}  

.logo:hover .logo-title{
    transform: translateY(0px);
    opacity: 0.78; /* reduce opacity on hover like menu links */    color: var(--color-logo); /* tint title text with logo color */}

.logo:hover .logo-title::after{
    transform: scaleX(1);
}

.logo-img {
    display: block;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 120px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 15px; /* rounded top-bar logo */
}

nav {
    margin-left: auto;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
    font-weight: 700; /* bold */
    position: relative;
    opacity: 1;
    transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

/* subtle underline that grows on hover */
nav a::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--color-logo);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
} 

nav a:hover{
    transform: translateY(-3px); /* hover flow */
    opacity: 0.9; /* slight opacity change */
    color: var(--color-logo); /* tint text with logo color */
}

nav a:hover::after{
    transform: scaleX(1);
}  

/* Burger menu button (hidden by default, shown on mobile) */
.menu-btn {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text);
}
.menu-btn:focus {
    outline: 2px solid rgba(0,0,0,0.08);
}

/* Ensure mobile menu and backdrop are hidden by default (prevent duplication on desktop) */
.mobile-menu,
.mobile-backdrop {
    display: none;
}

/* Mobile menu styles are defined in the mobile media query below */

.wrap {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--gap);
}

/* Cards */
.card {
    background: var(--bg);
    border-top: 10px solid var(--color-logo);
    border-radius: var(--card-radius);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    padding: 14px;
}

/* Left column */
.live-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* border-top: 10px solid rgb(124, 131, 223); */
}

.live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f7f7f7;
    color: var(--muted);
    font-weight: 600;
}

.live-badge {
    background: #a30606;
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.video-wrap {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* keep a 16:9 ratio by default and avoid forced large min-heights */
    aspect-ratio: 16 / 9;
    min-height: 0;
}

video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    /* cover the container so it fills the frame on desktop/portrait */
    object-fit: cover;
} 

@media (max-width: 760px) {
    /* prevent the player from overflowing the viewport on small screens */
    .video-wrap {
        max-height: 62vh; /* leave room for header/footer */
        aspect-ratio: 16 / 9;
        border-radius: 0;
        min-height: 0;
    }
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
}

.meta .title {
    font-weight: 700;
}

.meta .sub {
    color: var(--muted);
    font-size: 13px;
}

/* Right column */
.now-playing .thumb {
    width: 100%;
    height: 140px;
    background: #ddd;
    border-radius: 8px;
    object-fit: cover;
}

.now-playing .title {
    font-weight: 700;
    margin-top: 12px;
}

.host {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 12px;
    font-size: 14px;
}

/* Contact form styles */
.contact-card{ max-width:820px; padding: 18px; }
.contact-form{ margin-top:10px }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:8px }
.form-row label{ font-weight:600; font-size:13px }
.form-row input, .form-row textarea{
    padding:10px 12px; border-radius:8px; border:1px solid rgba(0,0,0,0.08); background:#fff; font-size:14px; color:var(--text);
}
.form-row input:focus, .form-row textarea:focus{ outline:none; box-shadow:0 6px 14px rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.12) }
.form-actions{ display:flex; gap:12px; align-items:center; margin-top:8px }
.form-msg{ font-size:13px }

@media (max-width:760px){ .form-grid{ grid-template-columns: 1fr } }

/* Brand button uses the primary logo color (same as Play) */
.btn.brand{
    background: var(--color-logo);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(226,124,16,0.12);
}
.btn.brand:hover{ opacity:0.95; transform: translateY(-1px); }
.btn.brand:active{ transform: translateY(1px); }

.weather {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.weather .temp {
    font-size: 20px;
    font-weight: 700;
}

.weather .desc {
    color: var(--muted);
    font-size: 13px;
}

.weather .meta {
    color: var(--muted);
    font-size: 12px;
}

.weather-input {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.weather-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.weather-input button {
    padding: 8px 10px;
    border-radius: 8px;
    border: 0;
    background: var(--color-logo);
    color: #fff;
    cursor: pointer;
}
/* Manual city input removed — weather is automatic via IP/geolocation */

.forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.forecast .day {
    background: #fafafa;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
}

.forecast .day .dname {
    font-weight: 700;
    margin-bottom: 6px;
}

.forecast .day .icon {
    font-size: 18px;
}

.forecast .day .tmax {
    font-weight: 700;
}

@media (max-width: 760px) {
    .forecast {
        grid-template-columns: repeat(3, 1fr);
    }
}

.share-btn {
    background: var(--color-logo);
    border: 1px solid rgba(0,0,0,0.08);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin: 5px 0px;
    transition: opacity 160ms ease, transform 140ms ease, box-shadow 160ms ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.share-btn:hover {
    opacity: 0.92; /* slightly dim on hover */
    transform: translateY(-2px);
}

.share-btn:active {
    opacity: 0.82; /* further dim on click */
    transform: translateY(0);
}

.share-btn:focus {
    outline: 3px solid rgba(244,123,0,0.18);
    outline-offset: 2px;
}

.up-next {
    margin-top: 12px;
}

.up-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pill {
    background: #f0f0f0;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 980px) {
    .wrap {
        grid-template-columns: 1fr 320px;
        padding: 0 14px;
    }
}

@media (max-width: 760px) {
    .wrap {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    /* show burger button on mobile */
    .menu-btn {
        display: inline-flex;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
    }

    .now-playing .thumb {
        height: 160px;
    }

    /* Keep the player within the page flow on mobile */
    .video-wrap {
        max-height: 62vh; /* leave room for header/footer */
        aspect-ratio: 16 / 9;
        border-radius: 0;
        min-height: 0;
    }

    .video-wrap video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* mobile sliding panel menu + backdrop */
    .mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.36);
        opacity: 0;
        visibility: hidden;
        transition: opacity 260ms ease, visibility 0s linear 260ms;
        z-index: 28;
        pointer-events: none;
        display: block; /* enable on mobile */
    }
    .mobile-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78vw;
        max-width: 320px;
        background: var(--bg);
        box-shadow: -8px 0 30px rgba(10,10,10,0.12);
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        z-index: 29;
        transform: translateX(100%);
        transition: transform 320ms ease;
        visibility: visible;
    }

    .mobile-menu .mobile-menu-header {
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding-bottom:6px;
        border-bottom:1px solid #f0f0f0;
    }

    .mobile-menu .mobile-close{
        background:transparent;
        border:0;
        font-size:18px;
        cursor:pointer;
        padding:6px;
        line-height:1;
    }

    .mobile-menu-nav{
        display:flex;
        flex-direction:column;
        gap:6px;
        margin-top:10px;
    }

    .mobile-menu a{
        padding:12px 8px 12px 18px; /* space for left line */
        text-decoration:none;
        color:var(--text);
        font-weight:700; /* bold */
        border-radius:6px;
        position: relative;
        transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
        cursor: pointer;
        opacity: 1;
    }

    /* left logo-colored line that appears on hover */
    .mobile-menu a::before{
        content: "";
        position: absolute;
        left: 8px;
        top: 12px;
        bottom: 12px;
        width: 4px;
        background: var(--color-logo);
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 180ms ease;
        border-radius: 2px;
    }

    .mobile-menu a:hover{
        background:#f7f7f7;
        transform: translateX(-6px); /* hover flow */
        opacity: 0.82; /* reduce text opacity on hover */
        color: var(--color-logo);
    }

    .mobile-menu a:hover::before{ transform: scaleY(1); }

    .mobile-menu.show{ transform: translateX(0); }
}

/* Mobile landscape: avoid cropping — use contain and let video size within viewport */
@media (max-width: 760px) and (orientation: landscape) {
    .video-wrap {
        aspect-ratio: auto;
        height: auto;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        padding: 0 6px;
    }

    .video-wrap video {
        position: static; /* keep video in document flow */
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 56px); /* leave a small space for header/footer */
        object-fit: contain; /* prevent cropping */
    }

    /* allow page to scroll if needed */
    html, body {
        overflow: auto;
        height: auto;
    }
}

/* Mobile landscape: avoid cropping — use contain and let video size within viewport */
@media (orientation: landscape) and (max-width: 980px) {
    /* hide header to allow more vertical room for the player */
    header {
        display: none;
    }

    .wrap {
        padding: 0 6px;
        margin: 0;
    }

    .video-wrap {
        aspect-ratio: auto;
        height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
    }

    .video-wrap video {
        position: static;
        width: auto;
        max-width: 100vw;
        height: auto;
        max-height: 100vh;
        object-fit: contain; /* prevent cropping */
    }

    /* ensure page can still scroll if content exceeds viewport */
    html, body {
        overflow: auto;
        height: auto;
    }
}

/* Radio player styles */
.radio-card {
    max-width: 760px;
    /* margin: 12px auto 40px auto; */
    padding: 28px;
    text-align: center;
}

.radio-header .radio-logo{
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 6px auto;
    display:block;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 240ms ease;
}

/* spinning animation for the radio logo while playing */
.radio-logo.spinning{
    animation: spin 3s linear infinite;
}

@keyframes spin{
    from{ transform: rotate(0deg); }
    to{ transform: rotate(360deg); }
}

.radio-title{
    font-size: 26px;
    margin: 8px 0 4px 0;
    font-weight: 800;
}
.radio-sub{
    color: var(--muted);
    font-size: 14px;
}

.player {
    margin-top: 18px;
}

.controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 18px;
    margin-bottom: 16px;
}

.play-btn{
    width:64px;
    height:64px;
    border-radius:999px;
    background: var(--color-logo);
    border: 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    cursor:pointer;
    transition: transform 160ms ease, opacity 150ms ease;
}
.play-btn:active{ transform: translateY(1px); }
.play-btn[aria-pressed="true"]{ box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* play hint removed — UI simplified */

.small-btn{
    width:40px;
    height:40px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,0.06);
    background: #fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

/* Volume control */
.volume-control{
    display:flex;
    align-items:center;
    gap:8px;
    position:relative;
}

/* wrapper for the slider; used to collapse/expand on click */
.volume-wrap{
    display:flex;
    align-items:center;
    overflow:hidden;
    transition: max-width .22s ease, opacity .18s ease, visibility .18s ease;
    max-width:0;
    opacity:0;
    visibility:hidden;
}

.volume-wrap.show{
    max-width:200px;
    opacity:1;
    visibility:visible;
}

.volume-slider{
    -webkit-appearance: none;
    appearance: none;
    width:120px;
    height:6px;
    background: linear-gradient(90deg, rgba(244,123,0,0.95) 0%, rgba(244,123,0,0.6) 100%);
    border-radius:6px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    border: 2px solid rgba(0,0,0,0.07);
}

.volume-slider::-moz-range-thumb{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    border: 2px solid rgba(0,0,0,0.07);
}

/* smaller slider on mobile */
@media (max-width:760px){
    .volume-wrap.show{ max-width:120px; opacity:1; visibility:visible }
    .volume-slider{ width:90px }
}

/* live-dot animation */
.live-dot{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#e53935; /* red */
    margin-right:8px;
    vertical-align:middle;
    opacity:0;
    transition: opacity .16s ease, transform .16s ease;
}

.live-dot.show{
    opacity:1;
    transform: scale(1);
    animation: live-blink 1s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(229,57,53,0.6);
}

@keyframes live-blink{
    0% { opacity:1; transform: scale(1); }
    40% { opacity:0.25; transform: scale(1.2); }
    80% { opacity:1; transform: scale(1); }
    100% { opacity:1; transform: scale(1); }
}
.progress-wrap{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top: 4px;
}

/* small visual indicator shown instead of text 'Live' */
.live-dot{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#e53935; /* red */
    margin-right:8px;
    vertical-align:middle;
    opacity:0;
    transition: opacity .16s ease, transform .16s ease;
}

.live-dot.show{ opacity:1; transform: scale(1); }

.progress{
    flex:1;
    height:10px;
    background: linear-gradient(90deg,#eee 0%, #f6f6f6 100%);
    border-radius: 6px;
    overflow:hidden;
    position:relative;
}

.progress .progress-stripe{
    position:absolute;
    inset:0;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.06) 25%, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.03) 50%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.06) 75%, rgba(0,0,0,0.03) 75%);
    background-size: 40px 40px;
    animation: stripe 1.8s linear infinite;
}

/* the filled part of the progress bar (actual play progress) */
.progress .progress-fill{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:0%;
    background: linear-gradient(90deg, rgba(244,123,0,0.95) 0%, rgba(244,123,0,0.85) 100%);
    border-radius: 6px;
    transition: width 300ms linear;
    z-index: 1;
} 

@keyframes fillpulse{
    0% { box-shadow: 0 0 8px rgba(244,123,0,0.08); transform: translateY(0); }
    50% { box-shadow: 0 0 20px rgba(244,123,0,0.12); transform: translateY(-1px); }
    100% { box-shadow: 0 0 8px rgba(244,123,0,0.08); transform: translateY(0); }
}

.track-info{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:8px;
}

.track-meta{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.track-meta #trackTitle{
    font-weight:700;
}

.track-meta #trackArtist{
    color:var(--muted);
    font-size:13px;
}

.time-info{
    color:var(--muted);
    font-size:13px;
}
@keyframes stripe{ from{ transform: translateX(0) } to{ transform: translateX(-40px) } }

.progress-wrap .left, .progress-wrap .right{
    width:72px;
    font-size:13px;
    color:var(--muted);
}

.radio-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
    justify-content:center;
}

.btn.outline{ background: transparent; border:1px solid rgba(0,0,0,0.08); color: var(--text); padding:10px 16px; border-radius:8px }

.btn.outline.success{ border-color: rgba(0,128,64,0.15); color: #198754 }

.btn.outline:active{ transform: translateY(1px) }

/* responsive tweaks */
@media (max-width: 760px){
    .radio-card{ padding: 18px; }
    .play-btn{ width:56px;height:56px }
    .progress-wrap .left, .progress-wrap .right{ width:56px; font-size:12px }
}

/* Footer */
.site-footer {
    background: #0c0c0c;
    color: #e9e9e9;
    padding: 24px;
    font-size: 15px;
}

.site-footer .container-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px 280px;
    gap: 30px;
    align-items: start;
}

.site-footer h5 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 18px;
}

.site-footer p {
    color: #cfcfcf;
    line-height: 1.6;
    max-width: 420px;
}

.socials {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.socials a {
    color: #cfcfcf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    margin: 10px 0;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfcfcf;
    margin: 12px 0;
}

.contact-item svg {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 10px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bdbdbd;
    font-size: 14px;
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
}

.footer-bottom .right {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 860px) {
    .site-footer .container-footer {
        grid-template-columns: 1fr;
    }

    /* Fix footer bottom bar to viewport bottom on mobile and center content */
    .footer-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(12, 12, 12, 0.98);
        padding: 12px 16px;
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
        z-index: 60;

        /* hidden by default on small screens; shown when user reaches page bottom */
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 320ms ease, opacity 320ms ease, visibility 0s linear 320ms;
    }

    .footer-bottom.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .footer-bottom .left,
    .footer-bottom .right {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    /* Prevent page content from being hidden behind the fixed footer (space reserved even when hidden) */
    body {
        padding-bottom: 92px; /* adjust if you change footer height */
    }
}
