/* Tamil Peoples Radio - Public Site Styles */
:root { --tpr-primary: #0d6efd; --tpr-dark: #212529; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Homepage */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 3rem 0;
    text-align: center;
}
.hero-title { color: #fff; font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.section-title { font-weight: 600; color: #1a1a2e; }
.channel-card-modern { display: block; transition: transform 0.2s; }
.channel-card-modern:hover { transform: translateY(-6px); }
.channel-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;
}
.channel-img-wrap { margin-bottom: 0.75rem; position: relative; overflow: hidden; border-radius: 12px; }
.channel-logo-modern { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.channel-hover-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 52px; height: 52px; border-radius: 50%; background: #fff;
    color: #ff6b35; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    pointer-events: none;
}
.channel-hover-play svg { flex-shrink: 0; }
.channel-img-wrap:hover .channel-hover-play,
.channel-logo-wrap:hover .channel-hover-play { opacity: 1; visibility: visible; }
.channel-hover-play-sm { width: 42px; height: 42px; }
.channel-name-modern { font-weight: 600; color: #333; font-size: 0.9rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-text { color: #555; line-height: 1.8; }

/* FM Sidebar */
.fm-sidebar-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}
.fm-sidebar-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #333; }
.fm-sidebar-row { display: flex; flex-direction: column; margin-bottom: 0.75rem; }
.fm-sidebar-label { font-size: 0.8rem; color: #6c757d; }
.fm-sidebar-value { font-size: 1rem; color: #1a1a2e; }

/* Star rating */
.channel-rating { display: flex; align-items: center; gap: 4px; }
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { font-size: 1.25rem; color: #ddd; transition: color 0.15s, transform 0.15s; cursor: pointer; }
.star-rating .star.filled { color: #ffc107; }
.star-rating .star:hover { color: #ffc107; transform: scale(2); }
.rating-avg { font-weight: 600; margin-left: 4px; }
.rating-count { font-size: 0.85rem; color: #6c757d; margin-left: 2px; }

/* Share buttons */
.share-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share-label { font-size: 0.9rem; color: #666; margin-right: 0.25rem; }
.share-btn {
    width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: transform 0.2s;
}
.share-btn svg { flex-shrink: 0; }
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-email { background: #6c757d; }
.share-rd { background: #ff4500; }
.share-copy { background: #495057; border: none; cursor: pointer; }

/* Play button - playing state animation */
.player-trigger.is-playing {
    animation: btnPlayingPulse 1.5s ease-in-out infinite;
}
@keyframes btnPlayingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
}

/* Hero search (home + search page) */
.hero-search {
    max-width: 560px;
    margin: 1.5rem auto 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-search .hero-search-input {
    flex: 1;
    min-width: 200px;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 1.1rem;
    border: none;
}
.hero-search .btn {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
}
.hero-search-page .hero-section {
    padding: 2rem 0;
}
.hero-search-glass {
    max-width: 680px;
    padding: 0.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 30px rgba(6, 16, 41, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    align-items: center;
    gap: 0.6rem;
}
.hero-search-field {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0 0.75rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-search-field:focus-within {
    border-color: rgba(13, 110, 253, 0.75);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.22);
    transform: translateY(-1px);
}
.hero-search-icon {
    color: #55739a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-search-icon svg {
    width: 18px;
    height: 18px;
}
.hero-search-glass .hero-search-input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    color: #10233f;
}
.hero-search-glass .hero-search-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}
.hero-search-glass .hero-search-input::placeholder {
    color: #6a7f9f;
}
.hero-search-btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #e4f0ff 100%);
    color: #123764;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(5, 18, 45, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero-search-btn-glass:hover,
.hero-search-btn-glass:focus {
    color: #0d2e57;
    background: linear-gradient(135deg, #ffffff 0%, #d7e9ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(5, 18, 45, 0.34);
}
@media (max-width: 575.98px) {
    .hero-search-glass {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .hero-search-field {
        min-width: 100%;
        width: 100%;
    }
    .hero-search-btn-glass {
        width: 100%;
    }
}
.channel-card-modern.hidden { display: none !important; }

/* Player - BIG FM style */
body.player-visible { padding-bottom: 90px; }
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #2d2d2d;
    border-top: 1px solid #444;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    animation: playerSlideUp 0.4s ease-out;
}
@keyframes playerSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.player-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
}
.player-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #3d3d3d;
    overflow: hidden;
    flex-shrink: 0;
}
.player-logo img { width: 100%; height: 100%; object-fit: cover; }
.player-btn-play, .player-btn-pause {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.player-btn-play:hover { background: #333; }
.player-btn-pause { background: #1a1a1a; color: #fff; }
.player-btn-pause:hover { background: #333; }
.player-btn-play svg, .player-btn-pause svg { width: 24px; height: 24px; }
.player-track { flex: 1; min-width: 0; }
.player-station-name { color: #fff; font-weight: 700; font-size: 1.1rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.player-wave-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.player-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}
.player-waveform span {
    width: 4px;
    height: 12px;
    background: #ff6b35;
    border-radius: 2px;
    animation: waveBar 0.7s ease-in-out infinite;
}
.player-waveform span:nth-child(1) { animation-delay: 0s; }
.player-waveform span:nth-child(2) { animation-delay: 0.1s; }
.player-waveform span:nth-child(3) { animation-delay: 0.2s; }
.player-waveform span:nth-child(4) { animation-delay: 0.3s; }
.player-waveform span:nth-child(5) { animation-delay: 0.4s; }
.player-waveform span:nth-child(6) { animation-delay: 0.5s; }
.player-waveform span:nth-child(7) { animation-delay: 0.6s; }
@keyframes waveBar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}
.player-bar.playing .player-waveform span { animation-play-state: running; }
.player-bar:not(.playing) .player-waveform span { animation-play-state: paused; transform: scaleY(0.5); }
.player-live { font-size: 0.7rem; color: #ff6b35; font-weight: 600; margin-left: 8px; }
.player-volume-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.player-volume-btn { background: transparent; border: none; color: #aaa; cursor: pointer; padding: 4px; }
.player-volume-btn:hover { color: #fff; }
.player-volume-btn svg { width: 22px; height: 22px; }
.player-volume { width: 70px; height: 6px; accent-color: #ff6b35; }
.footer { background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff !important; }
.channel-card { transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #eee; }
.channel-logo-wrap { border-radius: 8px; overflow: hidden; }
.channel-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.channel-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.channel-logo-main {
    width: 140px; height: 140px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.channel-description { line-height: 1.7; color: #444; }
