.kfc-consent, .kfc-settings, .kfc-placeholder {
  --kfc-panel: #1e2022;
  --kfc-field: #27292b;
  --kfc-red: #b10000;
  color: #fff;
}
.kfc-consent[hidden], .kfc-placeholder[hidden], [data-kfc-enable][hidden] { display: none !important; }
.kfc-consent {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 9998;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  max-width: 1030px;
  margin-inline: auto;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #ffffff36;
  border-top: 3px solid var(--kfc-red);
  border-radius: 16px;
  background: var(--kfc-panel);
  box-shadow: 0 12px 40px #0007;
  animation: kfc-appear .2s ease-out both;
}
.kfc-consent h2, .kfc-settings h2 { margin: 0 0 .45rem; color: #fff; font-size: clamp(18px, 3vw, 24px); line-height: 1.2; font-weight: 650; }
.kfc-consent p, .kfc-settings p, .kfc-placeholder p { margin: 0; line-height: 1.5; font-size: 14px; color: #f0f0f0; }
.kfc-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.kfc-button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #fff9;
  border-radius: 8px;
  background: #27292b;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-transform: uppercase;
}
.kfc-button:hover, .kfc-button:focus-visible { background: #b10000; color: #fff; }
.kfc-button:focus-visible, .kfc-settings a:focus-visible, .kfc-close:focus-visible,
.kfc-footer-settings:focus-visible, .kfc-player-settings:focus-visible, .kfc-slider-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kfc-consent a, .kfc-settings a, .kfc-placeholder a, .kfc-form-notice a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.kfc-policy-slot:not(:empty) { margin-top: 8px; }

.kfc-settings {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(530px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid #ffffff40;
  border-radius: 16px;
  background: var(--kfc-panel);
}
.kfc-settings[open] { animation: kfc-appear .2s ease-out both; }
.kfc-settings::backdrop { background: #000a; }
.kfc-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kfc-close { flex: 0 0 36px; border: 1px solid #ffffff40; border-radius: 8px; background: var(--kfc-field); color: #fff; font: inherit; font-size: 24px; cursor: pointer; }
.kfc-services { display: grid; gap: 7px; margin-block: 14px; }
.kfc-services label { display: flex; align-items: start; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--kfc-field); cursor: pointer; }
.kfc-services input { appearance: auto; position: static; flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 4px 0 0; opacity: 1; visibility: visible; accent-color: var(--kfc-red); }
.kfc-services small { display: block; font-size: 12px; line-height: 1.4; color: #eee; }
.kfc-settings .kfc-actions { margin-top: 14px; }

.kfc-embed { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #1e2022; }
.kfc-embed > iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.kf-player > .kfc-embed, .kf-map-frame > .kfc-embed { position: absolute; inset: 0; }
.kfc-placeholder { position: absolute; inset: 0; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(5px, 1vw, 12px); overflow: auto; padding: clamp(8px, 3vw, 24px); text-align: center; }
.kfc-placeholder > strong { color: #fff; font-size: clamp(14px, 2vw, 22px); line-height: 1.15; }
.kfc-placeholder > a { font-size: 12px; }
.kfc-placeholder > .kfc-poster { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.kfc-placeholder:has(> .kfc-poster)::before { position: absolute; inset: 0; z-index: -1; content: ''; background: #151617c2; }
.kf-map-frame .kfc-placeholder > strong::before { display: block; margin-bottom: 5px; color: #fff; content: '⌖'; font-size: 26px; }
.kfc-form-notice { margin-block: .85rem 0; font-size: .82rem; line-height: 1.45; }
.kfc-footer-settings, .kfc-player-settings, .kfc-slider-pause { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.kfc-player-settings { position: absolute; top: 50%; right: calc(100% + 10px); transform: translateY(-50%); width: max-content; max-width: 145px; z-index: 3; color: #fff; font-size: 11px; text-align: right; }
.kfc-slider-pause { position: absolute; z-index: 6; right: 16px; bottom: 12px; padding: 5px; color: #fff; font-size: 11px; text-shadow: 0 1px 5px #000; }
.kfc-reopen { position: fixed; z-index: 9997; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 6px; background: #27292b; color: #fff; font-size: 12px; }
@keyframes kfc-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) { .kfc-consent { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .kfc-consent { gap: 12px; }
  .kfc-consent .kfc-actions > button { flex: 1 1 44%; white-space: normal; }
  .kfc-consent .kfc-actions > button:last-child { flex-basis: 100%; }
  .kfc-placeholder p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .kfc-consent, .kfc-settings[open] { animation: none; } }
