:root {
  color-scheme: dark;
  --theme-bg: #111314;
  --theme-surface: #1a1d1f;
  --theme-raised: #222628;
  --theme-text: #f2f1ee;
  --theme-muted: #b6b9b8;
  --theme-border: #383d3f;
  --theme-field: #171a1c;
}

:root[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #f4f4f2;
  --theme-surface: #fff;
  --theme-raised: #f8f8f6;
  --theme-text: #17191a;
  --theme-muted: #68706e;
  --theme-border: #dedfdb;
  --theme-field: #fff;
  --black: #050505;
  --cream: #f4f4f2;
  --muted: #858585;
}

:root[data-theme="dark"] {
  --black: #f2f1ee;
  --cream: #111314;
  --muted: #a9adab;
}

html[data-theme] body {
  background: var(--theme-bg) !important;
  color: var(--theme-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #ffffff50;
  border-radius: 999px;
  background: #ffffff10;
  color: #fff;
  font: 700 10px Montserrat, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.theme-toggle:hover {
  border-color: #ff8a68;
  background: #ffffff20;
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid #ff8a68;
  outline-offset: 3px;
}

.theme-toggle-icon {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle-header {
  flex: none;
}

.theme-toggle-floating {
  position: fixed;
  z-index: 1000;
  top: 16px;
  right: 16px;
  border-color: #ffffff35;
  background: #17191c;
  box-shadow: 0 5px 18px #0004;
}

@media (max-width: 1300px) {
  .theme-toggle-header {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .theme-toggle-header .theme-toggle-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .theme-toggle-floating {
    top: 10px;
    right: 10px;
    height: 36px;
  }
}

@media print {
  .theme-toggle {
    display: none !important;
  }

  html[data-theme] body {
    background: #fff !important;
    color: #111;
  }
}

html[data-theme="dark"] .player-section,
html[data-theme="dark"] .home-news,
html[data-theme="dark"] .quick-cards,
html[data-theme="dark"] .schedule-section,
html[data-theme="dark"] .inner-main,
html[data-theme="dark"] .event-discovery,
html[data-theme="dark"] .event-detail-main,
html[data-theme="dark"] .event-map-section,
html[data-theme="dark"] .terms-page,
html[data-theme="dark"] .terms-main,
html[data-theme="dark"] .ads-page,
html[data-theme="dark"] .history-page {
  background-color: var(--theme-bg) !important;
  color: var(--theme-text);
}

html[data-theme="dark"] .player-card,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .contact-box,
html[data-theme="dark"] .contact-detail,
html[data-theme="dark"] .order-form,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .event-no-results,
html[data-theme="dark"] .ticket-panel,
html[data-theme="dark"] .terms-card,
html[data-theme="dark"] .terms-disclaimer,
html[data-theme="dark"] .ads-search,
html[data-theme="dark"] .ad-card,
html[data-theme="dark"] .ad-form,
html[data-theme="dark"] .ad-detail,
html[data-theme="dark"] .ad-contact-card,
html[data-theme="dark"] .checkout,
html[data-theme="dark"] .payment,
html[data-theme="dark"] .bank-options,
html[data-theme="dark"] .qr-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .phone-verification,
html[data-theme="dark"] .qpay-result {
  border-color: var(--theme-border) !important;
  background: var(--theme-surface) !important;
  color: var(--theme-text);
}

html[data-theme="dark"] .schedule-item,
html[data-theme="dark"] .event-facts,
html[data-theme="dark"] .event-facts article,
html[data-theme="dark"] .event-card-copy > div,
html[data-theme="dark"] .terms-content p[lang="en"],
html[data-theme="dark"] .my-ad-list,
html[data-theme="dark"] .my-ad-list article {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .schedule-item p,
html[data-theme="dark"] .schedule-item .time,
html[data-theme="dark"] .schedule-item > b,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .quick-card em,
html[data-theme="dark"] .news-intro > p,
html[data-theme="dark"] .order-intro > p:not(.eyebrow),
html[data-theme="dark"] .contact-location p,
html[data-theme="dark"] .contact-intro > p:not(.eyebrow),
html[data-theme="dark"] .event-section-heading > p,
html[data-theme="dark"] .event-card-copy > div,
html[data-theme="dark"] .event-map-section p:not(.event-label),
html[data-theme="dark"] .event-description > p:last-child,
html[data-theme="dark"] .terms-content p,
html[data-theme="dark"] .terms-content p[lang="en"],
html[data-theme="dark"] .terms-disclaimer p,
html[data-theme="dark"] .ads-search label,
html[data-theme="dark"] .ads-results-head > span,
html[data-theme="dark"] .ad-card-copy > small,
html[data-theme="dark"] .ad-form > label,
html[data-theme="dark"] .ad-fields-row label,
html[data-theme="dark"] .ad-description,
html[data-theme="dark"] .ad-detail-location,
html[data-theme="dark"] .ad-contact-card > span,
html[data-theme="dark"] .ad-contact-card a,
html[data-theme="dark"] .ad-form-heading > p:last-child,
html[data-theme="dark"] .login-card > p,
html[data-theme="dark"] .phone-verification p,
html[data-theme="dark"] .payment-summary span,
html[data-theme="dark"] .payment-summary strong,
html[data-theme="dark"] .bank-heading h2,
html[data-theme="dark"] .bank-card,
html[data-theme="dark"] .bank-name,
html[data-theme="dark"] .bank-card-copy small,
html[data-theme="dark"] .bank-help,
html[data-theme="dark"] .payment-note {
  color: var(--theme-muted);
}

html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .quick-card strong,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .news-intro h2,
html[data-theme="dark"] .order-intro h2,
html[data-theme="dark"] .contact-intro h2,
html[data-theme="dark"] .event-section-heading h2,
html[data-theme="dark"] .event-card h3,
html[data-theme="dark"] .event-card-copy > div strong,
html[data-theme="dark"] .event-map-section h2,
html[data-theme="dark"] .terms-content h2,
html[data-theme="dark"] .ads-results-head h2,
html[data-theme="dark"] .ad-card-copy > strong,
html[data-theme="dark"] .ad-detail-copy h1,
html[data-theme="dark"] .login-card h1,
html[data-theme="dark"] .phone-verification h1 {
  color: var(--theme-text);
}

html[data-theme="dark"] .watch-link,
html[data-theme="dark"] .order-pricing,
html[data-theme="dark"] .service-packages button,
html[data-theme="dark"] .google-login,
html[data-theme="dark"] .terms-number,
html[data-theme="dark"] .contact-icon,
html[data-theme="dark"] .ads-search input,
html[data-theme="dark"] .ads-search select,
html[data-theme="dark"] .ad-form input,
html[data-theme="dark"] .ad-form select,
html[data-theme="dark"] .ad-form textarea,
html[data-theme="dark"] .ad-upload,
html[data-theme="dark"] .ads-pagination a,
html[data-theme="dark"] .my-ad-list form button,
html[data-theme="dark"] .payment,
html[data-theme="dark"] .bank-card,
html[data-theme="dark"] .qr-card,
html[data-theme="dark"] .phone-cost-note,
html[data-theme="dark"] .phone-instructions {
  border-color: var(--theme-border);
  background: var(--theme-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: var(--theme-border) !important;
  background-color: var(--theme-field) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .ticket-option,
html[data-theme="dark"] .ticket-option span,
html[data-theme="dark"] .ticket-order-total strong,
html[data-theme="dark"] .terms-language-note,
html[data-theme="dark"] .ads-pagination a:not(.active),
html[data-theme="dark"] .ads-empty h3,
html[data-theme="dark"] .ad-back-link,
html[data-theme="dark"] .phone-instructions,
html[data-theme="dark"] .google-login {
  color: var(--theme-text);
}

html[data-theme="dark"] .ticket-order-total,
html[data-theme="dark"] .ticket-option strong,
html[data-theme="dark"] .divider {
  color: var(--theme-muted);
}

html[data-theme="dark"] .terms-disclaimer strong,
html[data-theme="dark"] .terms-disclaimer p,
html[data-theme="dark"] .ad-status-note,
html[data-theme="dark"] .ads-empty {
  color: var(--theme-muted);
}

html[data-theme="dark"] .ad-status-note {
  border: 1px solid var(--theme-border);
  background: var(--theme-raised);
}

html[data-theme="dark"] .contact-icon {
  background: var(--theme-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .history-content {
  background: #151718;
}

html[data-theme="dark"] .history-status,
html[data-theme="dark"] .history-event-more summary,
html[data-theme="dark"] .history-period-context .history-event-category,
html[data-theme="dark"] .history-birthday-result > span {
  color: #d3b678;
}

html[data-theme="dark"] .history-status.is-error {
  color: #ff9a86;
}

html[data-theme="dark"] .history-section-heading h2,
html[data-theme="dark"] .history-event-card h3,
html[data-theme="dark"] .history-period-context h3 {
  color: var(--theme-text);
}

html[data-theme="dark"] .history-kicker,
html[data-theme="dark"] .history-section-heading > p,
html[data-theme="dark"] .history-event-year,
html[data-theme="dark"] .history-event-description,
html[data-theme="dark"] .history-event-more > p,
html[data-theme="dark"] .history-period-context > p:not(.history-event-category),
html[data-theme="dark"] .history-birthday-result p {
  color: var(--theme-muted);
}

html[data-theme="dark"] .history-event-card,
html[data-theme="dark"] .history-birthday-result,
html[data-theme="dark"] .history-period-context,
html[data-theme="dark"] .history-load-more,
html[data-theme="dark"] .selected-seat-card {
  border-color: var(--theme-border);
  background: var(--theme-surface);
}

html[data-theme="dark"] .history-load-more {
  color: var(--theme-text);
}

html[data-theme="dark"] .selected-seat-card {
  color: var(--theme-text);
}

html[data-theme="dark"] .selected-seat-card small {
  color: var(--theme-muted);
}

html[data-theme="dark"] .history-event::before {
  border-color: var(--theme-bg);
}

html[data-theme="dark"] .event-map-section {
  background: var(--theme-surface) !important;
}

html[data-theme="dark"] .seat-picker {
  border-color: var(--theme-border);
  background: var(--theme-bg);
  color: var(--theme-text);
}

html[data-theme="dark"] .seat-picker-top,
html[data-theme="dark"] .seat-summary {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .seat-picker-top,
html[data-theme="dark"] .seat-summary,
html[data-theme="dark"] .seat-summary strong,
html[data-theme="dark"] .seat-picker-top h2 {
  color: var(--theme-text);
}

html[data-theme="dark"] .arena {
  background: #171a1d;
}

html[data-theme="dark"] .arena:before {
  border-color: #596064;
  background: radial-gradient(circle, #252a2d 0 44%, #343a3e 44.4% 45%, #252a2d 45.5% 63%, #343a3e 63.4% 64%, #252a2d 64.5%);
}

html[data-theme="dark"] .event-session {
  background: #292e32;
  color: var(--theme-text);
}

html[data-theme="light"] .horoscope-body {
  background: #f4f4f2;
  color: #202526;
}

html[data-theme="light"] .horoscope-title {
  border-color: #d3d5d2;
}

html[data-theme="light"] .horoscope-tabs,
html[data-theme="light"] .reading-facts,
html[data-theme="light"] .sign-reading-head,
html[data-theme="light"] .sign-reading,
html[data-theme="light"] .day-reading {
  border-color: #d8dad7;
}

html[data-theme="light"] .horoscope-tabs button,
html[data-theme="light"] .horoscope-tabs button:hover,
html[data-theme="light"] .horoscope-tabs button.is-active,
html[data-theme="light"] .calendar-day,
html[data-theme="light"] .calendar-heading h2,
html[data-theme="light"] .reading-date,
html[data-theme="light"] .day-reading h2,
html[data-theme="light"] .reading-facts strong,
html[data-theme="light"] .reading-copy h3,
html[data-theme="light"] .weekly-head h2,
html[data-theme="light"] .tradition-panel h2,
html[data-theme="light"] .sign-reading h3 {
  color: #202526;
}

html[data-theme="light"] .calendar-grid,
html[data-theme="light"] .calendar-day,
html[data-theme="light"] .calendar-empty,
html[data-theme="light"] .forecast-week-picker > button,
html[data-theme="light"] .forecast-day,
html[data-theme="light"] .sign-choice,
html[data-theme="light"] .sign-category,
html[data-theme="light"] .eastern-year-card,
html[data-theme="light"] .eastern-reading,
html[data-theme="light"] .tradition-note,
html[data-theme="light"] .lucky-hours {
  border-color: #d8dad7;
  background: #fff;
  color: #202526;
}

html[data-theme="light"] .calendar-grid {
  border-color: #d8dad7;
}

html[data-theme="light"] .calendar-day:hover {
  background: #f0f3f3;
}

html[data-theme="light"] .calendar-day.is-selected {
  background: #e6f5f8;
}

html[data-theme="light"] .forecast-day:hover,
html[data-theme="light"] .forecast-day.is-selected,
html[data-theme="light"] .sign-choice.is-selected,
html[data-theme="light"] .eastern-year-card:hover,
html[data-theme="light"] .eastern-year-card.is-selected {
  background: #e8f6f8;
}

html[data-theme="light"] .calendar-mark {
  background: #eaf3f5;
  color: #287c91;
}

html[data-theme="light"] .calendar-mark--combined,
html[data-theme="light"] .calendar-mark--dashnyam,
html[data-theme="light"] .calendar-mark--baljinyam {
  background: #f5f0e2;
  color: #8b6a23;
}

html[data-theme="light"] .calendar-mark--modon_homhoi {
  background: #f7e9eb;
  color: #a44f59;
}

html[data-theme="light"] .calendar-mark--tersuud {
  background: #f6eee4;
  color: #98612c;
}

html[data-theme="light"] .calendar-mark--haircut {
  background: #eaf3f5;
  color: #287c91;
}

html[data-theme="light"] .sign-category.is-featured,
html[data-theme="light"] .lucky-hours {
  background: #eef7f8;
}

html[data-theme="dark"] .payment-summary strong,
html[data-theme="dark"] .bank-heading h2,
html[data-theme="dark"] .bank-name,
html[data-theme="dark"] .checkout p:not(.eyebrow),
html[data-theme="dark"] .payment-status,
html[data-theme="dark"] .bank-desktop-note {
  color: var(--theme-text);
}

html[data-theme="dark"] .payment-status.error {
  color: #ff9a86;
}

html[data-theme="dark"] .bank-desktop-note {
  border: 1px solid var(--theme-border);
  background: var(--theme-raised);
}

html[data-theme="light"] .calendar-weekday,
html[data-theme="light"] .calendar-legend,
html[data-theme="light"] .horoscope-disclaimer,
html[data-theme="light"] .reading-kicker,
html[data-theme="light"] .reading-facts span,
html[data-theme="light"] .reading-copy,
html[data-theme="light"] .weekly-head > span,
html[data-theme="light"] .weekly-head > p,
html[data-theme="light"] .forecast-day,
html[data-theme="light"] .sign-choice,
html[data-theme="light"] .sign-choice small,
html[data-theme="light"] .sign-category p,
html[data-theme="light"] .eastern-reading p:last-child,
html[data-theme="light"] .tradition-panel,
html[data-theme="light"] .tradition-note p {
  color: #606967;
}

html[data-theme="light"] .sign-category h4,
html[data-theme="light"] .forecast-day strong {
  color: #202526;
}
