/*
Theme Name: The Coast
Description: A modern hit music radio theme with a live player, song history and music news.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: the-coast
*/
:root {
    --navy: #07162d;
    --ink: #0b2039;
    --muted: #52657a;
    --teal: #55efd9;
    --mist: #eef7f9;
    --line: #cfdee6;
    --player-space: calc(84px + env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-bottom: var(--player-space); }
body { margin: 0; padding-bottom: var(--player-space); background: #fff; color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1688a3; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: 1rem; left: 1rem; background: white; padding: .6rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .custom-logo-link { width: clamp(145px, 18vw, 220px); display: block; flex-shrink: 0; }
.brand img, .custom-logo-link img { display: block; }
#coast-nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.5vw, 32px); justify-content: center; }
#coast-nav a { font-weight: 700; text-decoration: none; }
#coast-nav a:hover { color: #006b7e; }
.menu-toggle { display: none; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 8px; background: var(--teal); color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.button:hover, .round-play:hover { background: #86fbea; }
.header-play { background: var(--navy); color: white; }
.header-play:hover { background: #183959; }
.secondary { border-color: #aad2e0; background: transparent; color: white; }
.secondary:hover { background: #1e4358; }
.hero { background: radial-gradient(ellipse at 90% 100%, #087b83, transparent 54%), linear-gradient(115deg, #09172e 26%, #103759); color: white; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(250px, 355px); gap: clamp(24px, 6vw, 90px); align-items: center; padding-block: clamp(42px, 7vw, 98px); }
.eyebrow { color: #0a5b69; text-transform: uppercase; font-size: .75rem; font-weight: 850; letter-spacing: .14em; }
.hero .eyebrow, .radio-bar .eyebrow { color: var(--teal); }
.hero-brand { margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.65rem, 6.8vw, 6.4rem); line-height: .94; letter-spacing: -.065em; margin: 0; }
.hero h1 em { color: var(--teal); font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.now-card { padding: 22px; background: #102d47; border: 1px solid #52778b; border-radius: 18px; }
.now-card .eyebrow { margin: 0 0 12px; }
.on-air-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--teal); vertical-align: 1px; }
.cover { overflow: hidden; flex: none; background: #c9f2ef url(assets/logo.webp) center / 82% auto no-repeat; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-cover { aspect-ratio: 1; width: min(100%, 235px); border-radius: 12px; }
.now-card h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); margin: 14px 0 1px; overflow-wrap: anywhere; }
.now-card p { margin: 0; color: #d2e6ef; }
.now-card a { display: inline-block; margin-top: .6rem; color: var(--teal); }
.section { padding-block: clamp(34px, 5vw, 68px); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 20px; }
.track-list { margin: 0; padding: 0; list-style: none; border-radius: 12px; overflow: hidden; }
.track-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.track-list li:nth-child(even) { background: #f8fbfc; }
.track-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-info .cover { width: 48px; height: 48px; border-radius: 6px; }
.track-info strong, .track-info span { display: block; overflow-wrap: anywhere; }
.track-info span, .track-list time, .news time { color: var(--muted); font-size: .87rem; }
.news { background: var(--mist); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.news-card:first-child { grid-column: 1 / -1; display: flex; align-items: center; }
.news-image { display: block; }
.news-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card:first-child .news-image { flex: 0 0 45%; }
.news-copy { padding: 18px; }
.news-copy h3 { margin: .35rem 0 0; line-height: 1.25; }
.news-card:first-child h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-grid div { background: var(--mist); padding: 22px; border-radius: 12px; overflow-wrap: anywhere; }
.contact-grid h3 { margin: 0 0 5px; }
.site-footer, .radio-bar { background: var(--navy); color: #fff; }
.footer-inner { padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; }
.radio-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 90; padding: 0 0 env(safe-area-inset-bottom); border-top: 2px solid var(--teal); box-shadow: 0 -4px 25px #06152d38; }
.radio-inner { display: flex; align-items: center; min-height: 80px; gap: 12px; }
.round-play { width: 45px; height: 45px; flex: none; border: 0; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 900; }
.bar-cover { width: 46px; height: 46px; border-radius: 6px; }
.radio-copy { flex: 1; min-width: 0; }
.radio-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-copy [data-status] { white-space: normal; }
.radio-copy [data-artist] { color: #c5d6e5; font-size: .84rem; }
.volume { display: flex; align-items: center; gap: 7px; font-size: .78rem; }
.volume input { width: clamp(54px, 13vw, 128px); margin: 0; accent-color: var(--teal); }
.content { max-width: 850px; }
.entry { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { min-height: 70px; flex-wrap: wrap; gap: 0 12px; padding: 12px 0; }
    .menu-toggle { display: block; background: white; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
    #coast-nav { display: none; order: 3; width: 100%; padding-top: 12px; }
    #coast-nav.open { display: grid; justify-content: stretch; gap: 0; }
    #coast-nav a { padding: 8px 0; }
    .header-play { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
    .news-grid, .contact-grid { grid-template-columns: 1fr; }
    .news-card:first-child { display: block; }
    .volume { font-size: 0; }
    .bar-cover { display: none; }
    .track-list li { padding-inline: 9px; }
}
