/*
Theme Name: PW247 Broadcast V52.3 Signal Recovery
Version: 52.3
*/
:root { --yellow: #ffcc00; --red: #ff0000; }
* { box-sizing: border-box; }
body { 
    background: #080808 !important;
    background-image: linear-gradient(45deg, #111 25%, transparent 25%), linear-gradient(-45deg, #111 25%, transparent 25%) !important;
    background-size: 60px 60px !important;
    color: #fff; font-family: 'Arial Black', sans-serif; margin: 0; padding-top: 155px !important; padding-bottom: 110px !important;
}

/* --- HEADER --- */
#top-frame { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 999999; background: #000; height: 155px; border-bottom: 1px solid var(--yellow); }
.ticker-wrap { display: flex; align-items: center; background: #000; height: 35px; border-bottom: 2px solid var(--yellow); overflow: hidden; position: relative; }
.ticker-badge { background: var(--yellow); color: #000; padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: 900; font-style: italic; z-index: 100; position: relative; }
.ticker-move { display: inline-block; white-space: nowrap; animation: ticker-move 30s linear infinite; }
@keyframes ticker-move { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.logo-row { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; background: linear-gradient(180deg, #222, #000); height: 75px; }
.logo-row img { max-height: 50px !important; width: auto !important; }

/* NAVIGATION */
#nav-row { background: #000; height: 45px; border-top: 1px solid #333; display: flex; justify-content: center; align-items: center; }
.direct-nav { list-style: none; margin: 0; padding: 0; display: flex !important; }
.direct-nav a { color: #fff !important; text-decoration: none; font-weight: 900; font-style: italic; text-transform: uppercase; padding: 0 20px; font-size: 12px; line-height: 45px; display: block; }
.direct-nav li ul.sub-menu { position: absolute; top: 45px; left: 0; background: #000; border: 1px solid var(--yellow); min-width: 240px; display: none; list-style: none; padding: 0; z-index: 1000; }
.direct-nav li:hover ul.sub-menu { display: block; }

/* --- THE IMAGE FIX (V52.3) --- */
.mag-box-unit { background: #111; border: 1px solid #222; padding: 10px; margin-bottom: 15px; display: block; }
.img-lock-container { width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; position: relative; border-bottom: 2px solid #222; }
.locked-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.fallback-logo { object-fit: contain !important; opacity: 0.4 !important; padding: 20px; }
.no-signal-box { display: flex; align-items: center; justify-content: center; font-size: 10px; color: #333; font-weight: 900; }

/* --- FOOTER --- */
#bottom-frame { position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; height: 110px !important; background: linear-gradient(0deg, #000, #222) !important; border-top: 4px solid var(--yellow) !important; z-index: 999999 !important; display: flex !important; flex-direction: column !important; }
.footer-main { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; }
.signal-box { width: 33%; display: flex; align-items: center; gap: 10px; color: var(--yellow); font-weight: 900; font-style: italic; font-size: 10px; }
.dot { width: 10px; height: 10px; background: #f00; border-radius: 50%; box-shadow: 0 0 12px #f00; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.85); } }
.voltage-btn { background: #0a0a0a !important; border: 1px solid var(--yellow) !important; color: var(--yellow) !important; padding: 8px 25px; font-weight: 900; font-style: italic; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); cursor: pointer; }
.pro-logo { font-size: 18px; font-weight: 900; font-style: italic; color: #fff; }
.pro-logo span { color: var(--yellow); }
