/* ==========================================================================
   Click Media | TV & Radio Plugging page
   Loads after app.css, contact.css and paid-ads.css. Prefix: cm-tv-
   ========================================================================== */

/* ---------- Hero ---------- */
.cm-tv-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: calc(var(--cm-header-h) + 36px) 0 60px; }
.cm-tv-hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 80% 30%, rgba(255, 176, 32, .14), transparent 70%), radial-gradient(700px 400px at 10% 90%, rgba(139, 92, 246, .12), transparent 70%); }
.cm-tv-hero__wave { position: absolute; right: 18%; top: 44%; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(255, 176, 32, .35); transform: translate(50%, -50%) scale(.4); opacity: 0; animation: cm-tv-wave 4.5s ease-out infinite; }
.cm-tv-hero__wave--2 { animation-delay: 1.5s; }
.cm-tv-hero__wave--3 { animation-delay: 3s; }
.cm-tv-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; align-items: center; }
.cm-tv-hero__grid > * { min-width: 0; }
.cm-tv-onair { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; margin-bottom: 20px; background: var(--cm-ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.cm-tv-onair span { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .25); animation: cm-pulse 1.6s infinite; }
.cm-tv-hero__title { font-size: clamp(40px, 9vw, 70px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.cm-tv-hero__lead { font-size: clamp(17px, 2.4vw, 19px); max-width: 560px; margin-bottom: 28px; }
.cm-tv-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.cm-tv-hero__ctas .cm-btn { flex: 1 1 auto; }
.cm-tv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.cm-tv-stats li { padding: 14px; border-radius: 16px; background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-tv-stats strong { display: block; font-family: var(--cm-display); font-size: clamp(22px, 4.6vw, 28px); color: var(--cm-ink); line-height: 1.1; }
.cm-tv-stats span { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--cm-muted); line-height: 1.3; }

/* ---------- Radio / TV unit ---------- */
.cm-tv-unit { position: relative; max-width: 460px; width: 100%; margin: 0 auto; padding: 18px; border-radius: 32px; background: linear-gradient(160deg, #2A2540, #15122A); box-shadow: var(--cm-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cm-tv-unit__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.cm-tv-unit__switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .6); transition: color .3s; }
.cm-tv-unit__switch button.is-active { color: var(--cm-ink); }
.cm-tv-unit__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--cm-sun); transition: transform .5s var(--cm-ease); }
.cm-tv-unit[data-mode="tv"] .cm-tv-unit__pill { transform: translateX(100%); background: #fff; }

.cm-tv-radio, .cm-tv-screen { transition: opacity .5s var(--cm-ease), transform .5s var(--cm-ease); }
.cm-tv-unit[data-mode="radio"] .cm-tv-screen, .cm-tv-unit[data-mode="tv"] .cm-tv-radio { display: none; }
.cm-tv-unit[data-mode] .cm-tv-radio, .cm-tv-unit[data-mode] .cm-tv-screen { animation: cm-tv-in .5s var(--cm-ease); }

/* Radio face */
.cm-tv-radio { padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #F5EEDC, #E8DCC0); color: #3A2E1A; }
.cm-tv-radio__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cm-tv-radio__light { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 10px #FF3B30; }
.cm-tv-unit.is-paused .cm-tv-radio__light { background: #8C7E66; box-shadow: none; }
.cm-tv-radio__brand { font-family: var(--cm-display); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.cm-tv-radio__freq { margin-left: auto; padding: 4px 10px; border-radius: 8px; background: #1B1508; color: #FFB020; font-family: 'Courier New', monospace; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-shadow: 0 0 8px rgba(255, 176, 32, .6); }
.cm-tv-radio__dial { position: relative; height: 54px; border-radius: 12px; background: #1B1508; overflow: hidden; margin-bottom: 14px; }
.cm-tv-radio__scale { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 12px 8px; color: rgba(255, 176, 32, .75); font-size: 10px; font-weight: 700; font-family: 'Courier New', monospace; }
.cm-tv-radio__scale::before { content: ''; position: absolute; left: 12px; right: 12px; top: 14px; height: 12px; background: repeating-linear-gradient(90deg, rgba(255, 176, 32, .55) 0 1px, transparent 1px 8px); }
.cm-tv-radio__needle { position: absolute; top: 6px; bottom: 6px; left: 50%; width: 3px; border-radius: 2px; background: #FF3B30; box-shadow: 0 0 8px #FF3B30; transition: left 1s var(--cm-ease); }
.cm-tv-radio__now { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(58, 46, 26, .08); margin-bottom: 14px; }
.cm-tv-radio__now small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cm-tv-radio__now strong { display: block; font-family: var(--cm-display); font-size: 17px; }
.cm-tv-eq { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.cm-tv-eq span { width: 5px; border-radius: 3px; background: linear-gradient(#FF4D6D, #FFB020); animation: cm-tv-eq 1s ease-in-out infinite alternate; }
.cm-tv-eq span:nth-child(2) { animation-delay: -.2s; animation-duration: .8s; }
.cm-tv-eq span:nth-child(3) { animation-delay: -.5s; animation-duration: 1.1s; }
.cm-tv-eq span:nth-child(4) { animation-delay: -.3s; animation-duration: .7s; }
.cm-tv-eq span:nth-child(5) { animation-delay: -.7s; animation-duration: .9s; }
.cm-tv-eq span:nth-child(6) { animation-delay: -.1s; animation-duration: 1.2s; }
.cm-tv-eq span:nth-child(7) { animation-delay: -.6s; animation-duration: .85s; }
.cm-tv-unit.is-paused .cm-tv-eq span, .cm-tv-unit.is-paused .cm-tv-screen__static { animation-play-state: paused; }
.cm-tv-radio__grill { height: 46px; border-radius: 12px; background: radial-gradient(circle, rgba(58, 46, 26, .45) 1.6px, transparent 2px) 0 0 / 10px 10px; }

/* TV face */
.cm-tv-screen { display: grid; justify-items: center; }
.cm-tv-screen__display { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #000; border: 6px solid #0B0918; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.cm-tv-screen__display img { width: 100%; height: 100%; object-fit: cover; }
.cm-tv-screen__static {
    position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: screen;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
    animation: cm-tv-scan 6s linear infinite;
}
.cm-tv-screen__live { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cm-tv-screen__live span { width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; animation: cm-pulse 1.6s infinite; }
.cm-tv-screen__lower { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: 13px; }
.cm-tv-screen.is-switching .cm-tv-screen__display::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 40%, #fff 0 1px, #000 1px 3px); animation: cm-tv-noise .35s steps(3) 1 forwards; }
.cm-tv-screen__stand { width: 34%; height: 14px; margin-top: 8px; border-radius: 0 0 12px 12px; background: #0B0918; }

.cm-tv-unit__controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cm-tv-unit__btn, .cm-tv-unit__play { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background .25s, transform .3s var(--cm-ease); }
.cm-tv-unit__play { width: 54px; height: 54px; background: var(--cm-sun); color: var(--cm-ink); font-size: 18px; }
.cm-tv-unit__btn:hover, .cm-tv-unit__play:hover { transform: scale(1.06); }
.cm-tv-unit__station { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; }

/* ---------- Channel ticker ---------- */
.cm-tv-ticker { padding: 16px 0; background: var(--cm-ink); }
.cm-tv-ticker__track { gap: 34px; animation-duration: 36s; }
.cm-tv-ticker__track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--cm-display); font-weight: 700; font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, .85); }
.cm-tv-ticker__track i { color: var(--cm-sun); font-size: .8em; }

/* ---------- Service sections ---------- */
.cm-tv-service__grid { display: grid; gap: 34px; align-items: center; }
.cm-tv-service__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--cm-sun-soft); color: #C27C00; font-size: 22px; margin-bottom: 16px; }
.cm-tv-service h2 { font-size: clamp(28px, 5.4vw, 44px); }
.cm-tv-service__copy > p:not(.cm-eyebrow) { font-size: 17px; }
.cm-tv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cm-tv-tags span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); font-weight: 700; font-size: 14px; color: var(--cm-ink); }
.cm-tv-tags i { color: #C27C00; }

.cm-tv-steps { position: relative; display: grid; gap: 12px; }
.cm-tv-steps::before { content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--cm-sun), var(--cm-coral)); opacity: .5; }
.cm-tv-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px 18px 16px; border-radius: 20px; background: var(--cm-surface); box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line); transition: transform .4s var(--cm-ease); }
.cm-tv-steps li:hover { transform: translateX(4px); }
.cm-tv-steps li > span { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; }
.cm-tv-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cm-sun); color: var(--cm-ink); font-weight: 800; font-size: 12.5px; box-shadow: 0 0 0 6px var(--cm-surface); margin-left: 0; }
.cm-tv-steps strong { display: block; color: var(--cm-ink); font-size: 17px; }
.cm-tv-steps small { display: block; font-size: 14.5px; color: var(--cm-ink-2); line-height: 1.5; }

/* TV section (dark) */
.cm-tv-service--tv .cm-container { position: relative; }
.cm-tv-service--tv .cm-tv-service__grid { width: calc(100% - var(--cm-gutter) * 2); max-width: calc(1240px - var(--cm-gutter) * 2); padding: 40px 24px; border-radius: var(--cm-r-xl); background: #15122A; color: rgba(255, 255, 255, .78); }
.cm-tv-service--tv h2 { color: #fff; }
.cm-tv-service--tv .cm-tv-service__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.cm-tv-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.cm-tv-channels li { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.cm-tv-channels li:hover { background: var(--cm-sun); color: var(--cm-ink); }
.cm-tv-steps--light li { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cm-tv-steps--light li > span { box-shadow: 0 0 0 6px #1C1834; }
.cm-tv-steps--light strong { color: #fff; }
.cm-tv-steps--light small { color: rgba(255, 255, 255, .7); }

/* ---------- Release cross-sell ---------- */
.cm-tv-release__grid { display: grid; gap: 14px; }
.cm-tv-release__card { display: block; padding: 26px; border-radius: var(--cm-r-lg); background: var(--cm-surface); box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line); transition: transform .5s var(--cm-ease), box-shadow .5s var(--cm-ease); }
.cm-tv-release__card:hover { transform: translateY(-6px); box-shadow: var(--cm-shadow); }
.cm-tv-release__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; font-size: 20px; margin-bottom: 18px; }
.cm-tv-release__icon--tt { background: #111; box-shadow: -3px -3px 0 #25F4EE, 3px 3px 0 #FE2C55; }
.cm-tv-release__icon--x { background: #0F1419; }
.cm-tv-release__icon--yt { background: #FF0000; }
.cm-tv-release__card h3 { font-size: 20px; margin-bottom: 6px; }
.cm-tv-release__card p { font-size: 15px; }
.cm-tv-release__card .cm-link { font-size: 14px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
    .cm-tv-hero__ctas .cm-btn { flex: 0 0 auto; }
    .cm-tv-release__grid { grid-template-columns: repeat(3, 1fr); }
    .cm-tv-service--tv .cm-tv-service__grid { padding: 56px 44px; }
    .cm-tv-unit { padding: 22px; }
}

@media (min-width: 900px) {
    .cm-tv-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; }
    .cm-tv-service__grid { grid-template-columns: 1fr 1fr; gap: 70px; }
    .cm-tv-service--tv .cm-tv-service__grid { padding: 70px 64px; }
}

/* ---------- Keyframes ---------- */
@keyframes cm-tv-wave { 0% { transform: translate(50%, -50%) scale(.4); opacity: .9; } 100% { transform: translate(50%, -50%) scale(3.2); opacity: 0; } }
@keyframes cm-tv-eq { from { height: 20%; } to { height: 100%; } }
@keyframes cm-tv-scan { from { background-position: 0 0; } to { background-position: 0 100px; } }
@keyframes cm-tv-noise { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cm-tv-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .cm-tv-hero__wave { display: none; }
}
