.hha { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 9, 0.86); color: #F2F5F7; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.45; color-scheme: dark; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: hhafade 0.25s ease-out both; }
.hha *, .hha *::before, .hha *::after { box-sizing: border-box; }
.hha-ad { --surface: #11161D; --muted: #9AA3AE; --accent: #9db2f6; position: relative; display: flex; flex-direction: column; width: min(420px, 100%); height: 100%; padding: 18px 18px 20px; background: #07090D; overflow: hidden; }
@media (min-width: 460px) and (min-height: 600px) { .hha-ad { border-radius: 24px; height: min(680px, calc(100% - 32px)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); } }
.hha-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.hha-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: hhaprogress 5s linear forwards; }
[dir="rtl"] .hha-progress i { transform-origin: right; }
.hha-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.hha-badge { height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.14); color: #F2F5F7; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }
.hha-badge::after { content: "i"; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font: italic 700 10px/1 Georgia, serif; letter-spacing: 0; }
.hha-badge:hover, .hha-badge[aria-expanded="true"] { background: rgba(255, 255, 255, 0.24); }
.hha-badge:focus-visible { outline: 2px solid #F2F5F7; outline-offset: 3px; }
.hha-about { margin: 6px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 1.4; }
.hha-media { position: relative; flex: 1; min-height: 160px; margin: 10px 0 14px; border-radius: 18px; overflow: hidden; background: #000; }
.hha-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.hha-bottom { flex: none; }
.hha-names { display: flex; flex-direction: column; min-width: 0; }
.hha-timer, .hha-x { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hha-timer { border: 2px solid rgba(255, 255, 255, 0.3); }
.hha-x { border: none; background: rgba(255, 255, 255, 0.16); color: #F2F5F7; cursor: pointer; padding: 0; font: inherit; }
.hha-x:hover { background: rgba(255, 255, 255, 0.26); }
.hha-x:focus-visible, .hha-cta:focus-visible { outline: 2px solid #F2F5F7; outline-offset: 3px; }
.hha-title-row { display: flex; align-items: center; gap: 10px; }
.hha-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.hha-name { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; }
.hha-head { font-size: 14px; color: var(--muted); line-height: 1.35; animation: hharise 0.6s ease-out 0.2s both; }
.hha-cta { margin-top: 12px; min-height: 48px; border-radius: 24px; background: var(--accent); color: #07090D; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-decoration: none; animation: hhapulse 2.4s ease-in-out 1.2s infinite; }
.hha-cta:hover { color: #07090D; filter: brightness(1.08); }
@keyframes hhafade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hhaprogress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hharise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes hhapulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

@media (max-height: 520px) { .hha-ad { padding: 10px 16px 12px; } .hha-media { margin: 6px 0 8px; } .hha-cta { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .hha, .hha-head, .hha-cta { animation: none !important; }
}
