html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: "Segoe UI", "SamsungOne", Arial, sans-serif;
    overflow: hidden;
    cursor: none;
}

.hidden { display: none !important; }

.screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* ---------- Pairing ekran (1:1 kao Android QrLoginScreen.kt) ----------
 * Boje: HypersignBlack #0D0D0D, HypersignPrimary (teal) #0F7C7C.
 * Dimenzije: Compose dp/sp * 2 (Android TV FHD, 1dp = 2px). */

#screen-pairing {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: #0D0D0D;
    padding: 64px;
    box-sizing: border-box;
}

/* Veliki QR lijevo u bijelom zaobljenom okviru */
.pairing-qr-panel {
    width: 78vh;
    height: 78vh;
    padding: 48px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 64px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

#qr-container {
    width: 100%;
    height: 100%;
}

#qr-container img, #qr-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Info panel desno, lijevo poravnat */
.pairing-info {
    margin-left: 96px;
    text-align: left;
}

.pairing-title {
    font-size: 84px;
    font-weight: bold;
    color: #fff;
}

.pairing-subtitle {
    margin-top: 40px;
    font-size: 48px;
    line-height: 64px;
    color: #AAAAAA;
}

.pairing-code-label {
    margin-top: 112px;
    font-size: 40px;
    color: #AAAAAA;
}

.pairing-code {
    margin-top: 32px;
    font-size: 112px;
    font-weight: bold;
    letter-spacing: 16px;
    color: #0F7C7C;
}

.pairing-status {
    margin-top: 80px;
    font-size: 36px;
    color: #888888;
}

.pairing-url {
    margin-top: 112px;
    font-size: 40px;
    color: #0F7C7C;
}

/* ---------- Player ---------- */

#layout-root {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.hs-section {
    position: absolute;
    overflow: hidden;
    background: #000;
}

.hs-section video,
.hs-section img.hs-media {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    background: #000;
}

.hs-fade {
    -webkit-transition: opacity 0.35s ease;
    transition: opacity 0.35s ease;
}

.hs-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* Audio vizual */
.hs-audio-visual {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.hs-audio-visual .icon { font-size: 64px; }
.hs-audio-visual .name { font-size: 24px; font-weight: 500; margin-top: 16px; }
.hs-audio-visual .playing { font-size: 16px; color: #d4af37; margin-top: 8px; }

/* Ticker */
.hs-ticker {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hs-ticker .hs-ticker-text {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    white-space: nowrap;
    font-weight: bold;
    will-change: transform;
}

/* RSS */
.hs-rss {
    width: 100%;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}
.hs-rss .rss-image {
    max-width: 80%;
    max-height: 45%;
    object-fit: contain;
    margin-bottom: 16px;
}
.hs-rss .rss-title { font-size: 32px; font-weight: bold; }
.hs-rss .rss-desc { font-size: 20px; opacity: 0.8; margin-top: 16px; }
.hs-rss .rss-page { font-size: 16px; opacity: 0.5; margin-top: 24px; }

/* Fallback tekst */
.hs-fallback {
    width: 100%;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

/* ---------- Alert overlay ---------- */

#overlay-alert {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

#overlay-alert.blink {
    -webkit-animation: hsBlink 1s ease-in-out infinite alternate;
    animation: hsBlink 1s ease-in-out infinite alternate;
}

@-webkit-keyframes hsBlink { from { opacity: 1; } to { opacity: 0.3; } }
@keyframes hsBlink { from { opacity: 1; } to { opacity: 0.3; } }

.alert-content {
    text-align: center;
    padding: 48px;
    max-width: 80%;
}
.alert-content .alert-icon { font-size: 96px; margin-bottom: 24px; }
.alert-content .alert-title { font-size: 56px; font-weight: bold; margin-bottom: 24px; }
.alert-content .alert-message { font-size: 32px; opacity: 0.9; }

/* ---------- Notification overlay (HYP-179) ---------- */

#overlay-notification {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.55);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

.notification-band {
    position: relative;
    width: 100%;
    padding: 32px 0;
    overflow: hidden;
}
.notification-band .hs-ticker-text {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-weight: bold;
    will-change: transform;
}

/* ---------- Offline badge ---------- */

#offline-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1100;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 6px;
}
