/* ============================================
   SHARED/PLATFORM.CSS — ff14events Platform
   Structural and functional CSS for all block types.
   Events only need to provide :root color tokens
   and any event-specific overrides in their own CSS.
   ============================================ */

/* ── Default CSS variable fallbacks ────────────────────────────
   Events override these in their own :root block (loaded after
   this file). Safe neutral values ensure new events get a usable
   baseline without defining every variable upfront. */
:root {
  --tat-primary:         #6b7280;
  --tat-accent:          #9ca3af;
  --tat-bg:              #0d0d0d;
  --tat-surface:         #141414;
  --tat-surface2:        #1e1e1e;
  --tat-text:            #f0f0f0;
  --tat-text-muted:      #888;
  --tat-border-color:    #6b7280;
  --tat-border-style:    solid;
  --tat-border-color-2:  #9333ea;
  --tat-border-width-2:  3px;
  --tat-border-radius-2: 12px;
  --tat-border-style-2:  solid;
  --tat-border-color-3:  #22c55e;
  --tat-border-width-3:  1px;
  --tat-border-radius-3: 8px;
  --tat-border-style-3:  solid;
  --tat-border-width:    2px;
  --tat-border-radius:   8px;
  --tat-font-family:     system-ui, sans-serif;
  --tat-nav-height:      64px;
  --tat-glow:            none;
  --tat-glow-accent:     none;
  --tat-transition:      0.2s ease;
  --tat-hero-radius:     12px;
  --tat-card-radius:     10px;
}

/* ── Block-level layout wrapper ── */
.tat-block-outer { display: block; width: 100%; }
.tat-gap-compact { margin-top: -1.75rem; } /* 2.5rem gap → ~0.75rem */
.tat-gap-none    { margin-top: -2.5rem;  } /* 2.5rem gap → 0        */
.tat-bw--full          { max-width: 100%; margin-left: 0; margin-right: 0; }
.tat-bw--center-wide   { max-width: 960px; margin-left: auto; margin-right: auto; }
.tat-bw--center-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.tat-bw--left          { max-width: 640px; margin-left: 0; margin-right: auto; }
.tat-bw--right         { max-width: 640px; margin-left: auto; margin-right: 0; }
.tat-bw--custom        { align-self: center !important; width: var(--bw-pct, 80%) !important; max-width: var(--bw-pct, 80%) !important; }

/* ── Decorative divider image ── */
.tat-divider-image { display: block; width: 100%; line-height: 0; pointer-events: none; }
.tat-divider-img   { width: 100%; height: auto; display: block; }

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--tat-bg);
  background-image: var(--tat-bg-image, none);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  color: var(--tat-text);
  font-family: var(--tat-font-family);
  font-size: 16px;
  font-weight: var(--tat-font-weight, 400);
  line-height: 1.6;
  min-height: 100vh;
}

h1 {
  font-family: var(--tat-h1-font-family, var(--tat-font-family));
  font-size: var(--tat-h1-font-size, 2em);
  font-weight: var(--tat-h1-font-weight, 700);
}

h2 {
  font-family: var(--tat-h2-font-family, var(--tat-font-family));
  font-size: var(--tat-h2-font-size, 1.5em);
  font-weight: var(--tat-h2-font-weight, 700);
}

h3 {
  font-family: var(--tat-h3-font-family, var(--tat-font-family));
  font-size: var(--tat-h3-font-size, 1.25em);
  font-weight: var(--tat-h3-font-weight, 700);
}

h4 {
  font-family: var(--tat-h4-font-family, var(--tat-font-family));
  font-size: var(--tat-h4-font-size, 1.1em);
  font-weight: var(--tat-h4-font-weight, 600);
}

h5 {
  font-family: var(--tat-h5-font-family, var(--tat-font-family));
  font-size: var(--tat-h5-font-size, 1em);
  font-weight: var(--tat-h5-font-weight, 600);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tat-primary);
  text-decoration: none;
  transition: color var(--tat-transition), text-shadow var(--tat-transition);
}

a:hover {
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.tat-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--tat-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.4s ease;
}

.tat-loading-screen.tat-loading-hidden {
  opacity: 0;
  pointer-events: none;
}

.tat-loading-label {
  color: var(--tat-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.tat-spinner {
  width: 52px;
  height: 52px;
  border: var(--tat-border-width) solid color-mix(in srgb, var(--tat-primary) 25%, transparent);
  border-top-color: var(--tat-primary);
  border-radius: 50%;
  animation: tat-spin 0.8s linear infinite;
  box-shadow: var(--tat-glow);
}

.tat-spinner--sm {
  width: 28px;
  height: 28px;
  border-width: 2px;
}

@keyframes tat-spin {
  to { transform: rotate(360deg); }
}

.tat-page-loading {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

/* ============================================
   NAV
   ============================================ */

#tat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--tat-nav-bg, var(--tat-surface));
  border-bottom: var(--tat-nav-border-width, var(--tat-border-width)) var(--tat-nav-border-style, var(--tat-border-style, solid)) var(--tat-nav-border-color, var(--tat-border-color));
  box-shadow: var(--tat-nav-shadow, 0 2px 16px rgba(0, 0, 0, 0.3));
}

.tat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--tat-nav-height);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tat-nav-logo {
  font-size: var(--tat-nav-logo-size, 1.2rem);
  font-weight: var(--tat-nav-logo-weight, bold);
  color: var(--tat-nav-logo-color, var(--tat-primary));
  text-shadow: var(--tat-glow);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
}

.tat-nav-logo:hover {
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
}

.tat-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0.85rem;
  border: var(--tat-border-width) solid transparent;
  border-radius: 999px;
  color: var(--tat-nav-link-color, var(--tat-text));
  font-size: var(--tat-nav-link-size, 0.9rem);
  font-family: inherit;
  font-weight: var(--tat-nav-link-weight, 500);
  transition:
    color var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition),
    box-shadow var(--tat-transition);
  white-space: nowrap;
  background: none;
}

.tat-nav-link:hover {
  color: var(--tat-primary);
  border-color: var(--tat-primary);
  box-shadow: var(--tat-glow);
  text-shadow: none;
}

.tat-nav-link.tat-nav-active {
  color: var(--tat-bg);
  background-color: var(--tat-primary);
  border-color: var(--tat-primary);
  box-shadow: var(--tat-glow);
}

.tat-dropdown-arrow {
  font-size: 0.7em;
  transition: transform var(--tat-transition);
}
.tat-dropdown.dropdown-open .tat-dropdown-arrow {
  transform: rotate(180deg);
}

.tat-dropdown {
  position: relative;
}

.tat-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 0.4rem 0;
  box-shadow: var(--tat-glow), 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}

.tat-dropdown.dropdown-open .tat-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.tat-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--tat-text);
  font-size: 0.9rem;
  transition: background-color var(--tat-transition), color var(--tat-transition);
}

.tat-dropdown-item:hover,
.tat-dropdown-item.tat-nav-active {
  background-color: var(--tat-primary);
  color: var(--tat-bg);
}

/* Round the top corners of the first item and bottom of the last —
   replaces the overflow:hidden clipping that would block the flyout */
.tat-dropdown-menu > .tat-dropdown-item:first-child,
.tat-subdropdown-menu > .tat-dropdown-item:first-child,
.tat-dropdown-menu > .tat-subdropdown:first-child .tat-subdropdown-header .tat-dropdown-item {
  border-top-left-radius: var(--tat-border-radius);
  border-top-right-radius: var(--tat-border-radius);
}

.tat-dropdown-menu > .tat-dropdown-item:last-child,
.tat-subdropdown-menu > .tat-dropdown-item:last-child,
.tat-dropdown-menu > .tat-subdropdown:last-child .tat-subdropdown-header .tat-dropdown-item {
  border-bottom-left-radius: var(--tat-border-radius);
  border-bottom-right-radius: var(--tat-border-radius);
}

.tat-subdropdown {
  position: relative;
}

.tat-subdropdown-header {
  display: flex;
  align-items: center;
}

.tat-subdropdown-header .tat-dropdown-item {
  flex: 1;
}

.tat-subdropdown-label {
  cursor: default;
}

.tat-subdropdown-toggle {
  flex-shrink: 0;
  padding: 0.5rem 0.6rem;
  background: none;
  border: none;
  color: var(--tat-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--tat-transition);
}

.tat-subdropdown-toggle:hover {
  color: var(--tat-primary);
}

.tat-subdropdown-arrow {
  font-size: 0.7em;
  transition: transform var(--tat-transition);
}

.tat-subdropdown.subdropdown-open .tat-subdropdown-arrow {
  transform: rotate(90deg);
}

.tat-subdropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 180px;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 0.4rem 0;
  box-shadow: var(--tat-glow), 0 8px 24px rgba(0,0,0,0.5);
  z-index: 201;
  visibility: hidden;
  opacity: 0;
  /* delay only on the HIDE direction — gives mouse time to reach flyout */
  transition: opacity 0.12s, visibility 0.12s;
  transition-delay: 0.22s;
}

.tat-subdropdown.subdropdown-open .tat-subdropdown-menu,
.tat-subdropdown:hover .tat-subdropdown-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.tat-subdropdown:hover .tat-subdropdown-arrow {
  transform: rotate(90deg);
}

.tat-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.tat-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--tat-primary);
  border-radius: 2px;
  transition: background-color var(--tat-transition);
}

.tat-hamburger:hover span {
  background-color: var(--tat-accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

#tat-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tat-block-heading {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tat-table-block > .tat-block-heading,
.tat-schedule-group > .tat-block-heading {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.tat-table-block > .tat-block-subtitle,
.tat-schedule-group > .tat-block-subtitle {
  text-align: center;
}

.tat-block-subtitle {
  color: var(--tat-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tat-empty-state {
  color: var(--tat-text-muted);
  font-style: italic;
  padding: 1rem 0;
}

.tat-not-found,
.tat-error-screen {
  text-align: center;
  padding: 4rem 1rem;
}

.tat-not-found h2,
.tat-error-screen h2 {
  color: var(--tat-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tat-not-found p,
.tat-error-screen p {
  color: var(--tat-text-muted);
  margin-bottom: 1.5rem;
}

.tat-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: var(--tat-border-width) solid var(--tat-primary);
  border-radius: 999px;
  color: var(--tat-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color var(--tat-transition),
    color var(--tat-transition),
    box-shadow var(--tat-transition);
}

.tat-btn:hover {
  background-color: var(--tat-primary);
  color: var(--tat-bg);
  box-shadow: var(--tat-glow);
}

/* ============================================
   HERO IMAGE
   ============================================ */

.tat-hero-image {
  width: 100%;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-hero-radius);
  overflow: hidden;
  box-shadow:
    var(--tat-glow),
    0 0 0 var(--tat-border-width) var(--tat-surface),
    0 0 0 calc(var(--tat-border-width) * 2 + 2px) var(--tat-border-color),
    0 8px 32px rgba(0, 0, 0, 0.7);
  background-color: var(--tat-surface);
  position: relative;
}

.tat-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.tat-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: none;
}

.tat-hero-overlay-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.15;
}

.tat-hero-overlay-sub {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============================================
   TEXT BLOCK
   ============================================ */

.tat-text-block {
  line-height: 1.75;
  background-color: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tat-text-block.tat-no-border {
  padding: 0;
}

.tat-text-block h2 {
  font-family: var(--tat-h2-font-family, var(--tat-font-family));
  font-size: var(--tat-h2-font-size, 1.5rem);
  font-weight: var(--tat-h2-font-weight, 700);
  color: var(--tat-primary);
  text-shadow: var(--tat-glow);
  margin: 1.5rem 0 0.5rem;
}

.tat-text-block h3 {
  font-family: var(--tat-h3-font-family, var(--tat-font-family));
  font-size: var(--tat-h3-font-size, 1.2rem);
  font-weight: var(--tat-h3-font-weight, 700);
  color: var(--tat-primary);
  margin: 1.25rem 0 0.4rem;
}

.tat-text-block h4 {
  font-family: var(--tat-h4-font-family, var(--tat-font-family));
  font-size: var(--tat-h4-font-size, 1rem);
  font-weight: var(--tat-h4-font-weight, 600);
  color: var(--tat-accent);
  margin: 1rem 0 0.3rem;
}

.tat-text-block h5 {
  font-family: var(--tat-h5-font-family, var(--tat-font-family));
  font-size: var(--tat-h5-font-size, 0.9rem);
  font-weight: var(--tat-h5-font-weight, 600);
  color: var(--tat-accent);
  margin: 0.85rem 0 0.25rem;
}

.tat-text-block p {
  margin-bottom: 0.85rem;
}

.tat-text-block ul,
.tat-text-block ol {
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.tat-text-block li {
  margin-bottom: 0.25rem;
}

.tat-text-block a {
  color: var(--tat-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tat-text-block a:hover {
  color: var(--tat-accent);
}

.tat-text-block code {
  font-family: 'Courier New', monospace;
  background: var(--tat-surface2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.tat-text-block blockquote {
  border-left: 4px solid var(--tat-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--tat-text-muted);
  font-style: italic;
}

.tat-text-block hr {
  border: none;
  border-top: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  margin: 1.5rem 0;
  opacity: 0.4;
}

/* ============================================
   TABLE BLOCK
   ============================================ */

.tat-table-block {
  width: 100%;
  background-color: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tat-table-scroll {
  overflow-x: auto;
  border: var(--tat-border-width) solid color-mix(in srgb, var(--tat-border-color) 35%, transparent);
  border-radius: calc(var(--tat-border-radius) - 4px);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
  background-color: var(--tat-surface2);
}

.tat-table-block table,
.tat-event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.tat-table-block th,
.tat-event-table th {
  background-color: color-mix(in srgb, var(--tat-primary) 12%, transparent);
  color: var(--tat-accent);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-bottom: 2px var(--tat-border-style, solid) var(--tat-border-color);
  text-shadow: var(--tat-glow-accent);
}

.tat-table-block td,
.tat-event-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--tat-border-color) 15%, transparent);
  color: var(--tat-text);
  vertical-align: middle;
}

.tat-table-block tbody tr:nth-child(even),
.tat-event-table tbody tr:nth-child(even) {
  background-color: var(--tat-surface);
}

.tat-table-block tbody tr:last-child td,
.tat-event-table tbody tr:last-child td {
  border-bottom: none;
}


.tat-event-table tr.tat-event-live td {
  background-color: color-mix(in srgb, var(--tat-accent) 8%, transparent);
}

/* ============================================
   PARTICIPANT GRID
   ============================================ */

.tat-participant-grid {
  width: 100%;
}

.tat-participant-grid > .tat-block-heading {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tat-participant-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.tat-block-heading + .tat-participant-grid-inner {
  margin-top: 1rem;
}

.tat-participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem 1rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  color: var(--tat-text);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition),
    transform var(--tat-transition);
}

a.tat-participant-card:hover,
.tat-participant-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
  color: var(--tat-text);
  transform: translateY(-2px);
}

.tat-participant-logo-wrap {
  position: relative;
  display: inline-block;
}

.tat-participant-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--tat-border-width) solid var(--tat-primary);
  display: block;
  box-shadow: var(--tat-glow);
}

.tat-participant-initial {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) solid var(--tat-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--tat-primary);
  font-weight: bold;
  box-shadow: var(--tat-glow);
}

/* Logo shape variants */
.tat-participant-logo.tat-logo-soft,
.tat-participant-initial.tat-logo-soft {
  border-radius: 0.75rem;
}
.tat-participant-logo.tat-logo-square,
.tat-participant-initial.tat-logo-square {
  border-radius: 0.25rem;
}

/* Logo glow/border toggle */
.tat-participant-logo.tat-logo-no-border {
  border: none;
  box-shadow: none;
}

.tat-participant-name {
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.3;
  text-align: center;
  color: var(--tat-text);
}

.tat-participant-plot { font-size: 0.78rem; color: var(--tat-accent); margin-top: 0.25rem; }
.tat-participant-bio-snippet { font-size: 0.75rem; color: var(--tat-text-muted); margin-top: 0.2rem; line-height: 1.3; }

.tat-here-now-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: #22c55e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ============================================
   EVENT LIST
   ============================================ */

.tat-event-list {
  width: 100%;
}

.tat-event-list--cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tat-event-list--cards > .tat-block-heading {
  margin-bottom: 0.75rem;
}

.tat-event-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: calc(var(--tat-card-radius) - 2px) calc(var(--tat-card-radius) - 2px) 0 0;
  margin: -1.1rem -1.4rem 0.85rem;
  width: calc(100% + 2.8rem);
  display: block;
}

.tat-event-card {
  padding: 1.1rem 1.4rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  margin-top: 0.75rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition);
}

.tat-event-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
}

.tat-event-card--live {
  border-color: var(--tat-accent);
  box-shadow: var(--tat-glow-accent);
  background-color: color-mix(in srgb, var(--tat-accent) 5%, transparent);
}

.tat-event-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--tat-text);
}

.tat-event-time,
.tat-event-location {
  font-size: 0.87rem;
  color: var(--tat-text-muted);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.tat-event-desc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--tat-text-muted);
  line-height: 1.55;
}

.tat-live-badge {
  display: inline-block;
  background-color: var(--tat-accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-left: 0.4em;
  box-shadow: var(--tat-glow-accent);
}

/* ============================================
   SCHEDULE GROUP
   ============================================ */

.tat-schedule-group {
  width: 100%;
}

.tat-schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tat-block-heading + .tat-schedule-slots {
  margin-top: 1rem;
}

.tat-schedule-slot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition);
}

.tat-schedule-slot:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
}

.tat-slot-logo-wrap {
  flex-shrink: 0;
}

.tat-slot-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--tat-border-width) solid var(--tat-primary);
  box-shadow: var(--tat-glow);
}

.tat-slot-initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) solid var(--tat-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--tat-primary);
  font-weight: bold;
  box-shadow: var(--tat-glow);
}

.tat-slot-info {
  flex: 1;
  min-width: 0;
}

.tat-slot-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tat-slot-time {
  font-size: 0.88rem;
  color: var(--tat-accent);
  margin-top: 0.2rem;
}

.tat-slot-location {
  font-size: 0.82rem;
  color: var(--tat-text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#tat-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  min-width: 220px;
  max-width: 360px;
  padding: 0.75rem 1.1rem;
  border-radius: var(--tat-border-radius);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  background-color: var(--tat-surface2);
  color: var(--tat-text);
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#tat-toast.tat-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#tat-toast.tat-toast-info {
  border-color: var(--tat-primary);
}

#tat-toast.tat-toast-success {
  border-color: #22c55e;
  color: #86efac;
}

#tat-toast.tat-toast-error {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 700px) {
  .tat-hamburger {
    display: flex;
  }

  .tat-nav-links {
    display: none;
    position: absolute;
    top: var(--tat-nav-height);
    left: 0;
    right: 0;
    background-color: var(--tat-surface);
    border-bottom: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 150;
  }

  .tat-nav-links.nav-open {
    display: flex;
  }

  .tat-nav-link {
    border-radius: 8px;
    justify-content: flex-start;
    padding: 0.55rem 0.85rem;
    width: 100%;
  }

  .tat-dropdown {
    width: 100%;
  }

  .tat-dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: none;
    border-radius: 0;
  }

  .tat-dropdown .tat-dropdown-menu {
    display: flex;
  }

  .tat-dropdown-toggle {
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .tat-dropdown-arrow {
    margin-left: auto;
  }

  .tat-subdropdown-toggle {
    display: none;
  }

  .tat-subdropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    transition: none;
    transition-delay: 0s;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: none;
    border-radius: 0;
  }

  .tat-participant-grid-inner {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .tat-text-block,
  .tat-table-block {
    padding: 1.1rem 1rem;
  }

  .tat-schedule-slot {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  .tat-slot-name {
    font-size: 0.95rem;
  }

  #tat-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-width: unset;
    max-width: unset;
  }

  #tat-main {
    padding: 1.5rem 1rem 3rem;
    gap: 1.75rem;
  }

  .tat-block-heading {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .tat-schedule-slot {
    flex-wrap: wrap;
  }

  .tat-event-card {
    padding: 0.85rem 1rem;
  }
}

/* ============================================
   IMAGE + TEXT BLOCK
   ============================================ */

.tat-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.tat-image-text--right .tat-image-text__img {
  order: 2;
}

.tat-image-text--right .tat-image-text__body {
  order: 1;
}

.tat-image-text--w20 { grid-template-columns: 1fr 4fr; }
.tat-image-text--w30 { grid-template-columns: 3fr 7fr; }
.tat-image-text--w40 { grid-template-columns: 2fr 3fr; }
.tat-image-text--w50 { grid-template-columns: 1fr 1fr; }
.tat-image-text--w60 { grid-template-columns: 3fr 2fr; }

.tat-image-text__img img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.tat-image-text--border-image .tat-image-text__img img {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
}

.tat-image-text--border-whole {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1rem;
}

.tat-image-text--border-text .tat-image-text__body {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1rem;
}

.tat-image-text__body {
  font-size: 1rem;
  line-height: 1.7;
}

.tat-image-text__body h1,
.tat-image-text__body h2,
.tat-image-text__body h3 {
  color: var(--tat-primary);
  margin-top: 0;
}

@media (max-width: 680px) {
  .tat-image-text {
    grid-template-columns: 1fr;
  }
  .tat-image-text--right .tat-image-text__img,
  .tat-image-text--right .tat-image-text__body {
    order: unset;
  }
}

/* ============================================
   CALLOUT BLOCK
   ============================================ */

.tat-callout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: color-mix(in srgb, var(--tat-primary) 8%, transparent);
  border-left: 4px solid var(--tat-primary);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tat-callout__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.tat-callout__body {
  flex: 1;
  min-width: 0;
}

.tat-callout__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tat-primary);
}

.tat-callout__content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.tat-callout__content p:last-child { margin-bottom: 0; }

/* ============================================
   VIDEO BLOCK
   ============================================ */

.tat-video-block {
  width: 100%;
  background-color: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.tat-video-heading {
  margin: 0 0 0.75rem 0;
  font-family: var(--tat-h2-font-family, var(--tat-font-family));
  font-size: var(--tat-h2-font-size, 1.5rem);
  font-weight: var(--tat-h2-font-weight, 700);
  color: var(--tat-heading-color, var(--tat-text));
  text-align: center;
}

.tat-video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.tat-video-responsive iframe,
.tat-video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tat-video-caption {
  margin: 0.6rem 0 0 0;
  font-size: 0.85rem;
  color: var(--tat-muted, #888);
  text-align: center;
}

.tat-video-error {
  padding: 1rem;
  text-align: center;
  color: var(--tat-muted, #888);
  font-size: 0.9rem;
}

/* ============================================
   PERFORMER FEATURE BLOCK
   ============================================ */

.tat-performer-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--tat-glow), 0 0 16px rgba(0,0,0,0.2);
}

.tat-pf-logo-wrap {
  flex-shrink: 0;
}

.tat-pf-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tat-primary);
}

.tat-pf-initial {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tat-primary);
  color: #000;
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px solid var(--tat-primary);
}

.tat-pf-info {
  flex: 1;
  min-width: 0;
}

.tat-pf-name {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tat-primary);
}

.tat-pf-time,
.tat-pf-venue {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--tat-text-muted);
}

.tat-pf-time i,
.tat-pf-venue i {
  width: 1.1em;
  color: var(--tat-primary);
}

.tat-pf-desc {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.tat-pf-desc p:last-child { margin-bottom: 0; }

.tat-pf-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  background: #6441a5;
  color: #fff;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.tat-pf-watch-btn:hover {
  background: #7b52c5;
  color: #fff;
}

@media (max-width: 520px) {
  .tat-performer-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tat-pf-watch-btn {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   LIVE NOW BLOCK
   ============================================ */

.tat-live-now { margin-bottom: 2rem; }

.tat-ln-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tat-ln-card {
  display: flex;
  flex-direction: column;
  background: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 0.6rem;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tat-ln-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tat-glow), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.tat-ln-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tat-ln-thumb {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.tat-ln-live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #e91916;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.tat-ln-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tat-ln-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tat-ln-avatar {
  width: 36px;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 2px var(--tat-border-style, solid) var(--tat-border-color);
}

.tat-ln-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tat-primary);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
}

.tat-ln-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tat-ln-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tat-primary);
}

.tat-ln-title {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--tat-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tat-ln-viewers {
  font-size: 0.78rem;
  color: var(--tat-text-muted);
}

.tat-ln-viewers i { margin-right: 0.25rem; }

.tat-ln-rd-link {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.tat-ln-rd-link:hover { opacity: 1; }

.tat-ln-rd-logo {
  height: 22px !important;
  width: auto;
  display: block;
}

.tat-ln-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tat-ln-social {
  color: var(--tat-text-muted);
  font-size: 0.95rem;
  transition: color 0.15s;
  line-height: 1;
}

.tat-ln-social:hover { color: var(--tat-primary); }

.tat-ln-grid--scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tat-border-color) transparent;
}
.tat-ln-grid--scroll .tat-ln-card {
  flex: 0 0 260px;
}

.tat-ln-grid--compact {
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tat-ln-grid--compact .tat-ln-avatar { width: 28px; height: 28px !important; }
.tat-ln-grid--compact .tat-ln-info { padding: 0.5rem; gap: 0.2rem; }
.tat-ln-grid--compact .tat-ln-name { font-size: 0.82rem; }
.tat-ln-grid--compact .tat-ln-title { font-size: 0.72rem; }
.tat-ln-grid--compact .tat-ln-viewers { font-size: 0.7rem; }
.tat-ln-grid--compact.tat-ln-grid--scroll .tat-ln-card { flex-basis: 200px; }

.tat-ln-grid--spacious {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.tat-ln-grid--spacious .tat-ln-avatar { width: 52px; height: 52px !important; }
.tat-ln-grid--spacious .tat-ln-info { padding: 1.1rem; gap: 0.5rem; }
.tat-ln-grid--spacious .tat-ln-name { font-size: 1.1rem; }
.tat-ln-grid--spacious .tat-ln-title { font-size: 0.9rem; }
.tat-ln-grid--spacious .tat-ln-viewers { font-size: 0.85rem; }
.tat-ln-grid--spacious.tat-ln-grid--scroll .tat-ln-card { flex-basis: 320px; }

.tat-ln-card--no-thumb .tat-ln-avatar { width: 56px; height: 56px !important; font-size: 1.5rem; }
.tat-ln-grid--compact .tat-ln-card--no-thumb .tat-ln-avatar { width: 40px; height: 40px !important; font-size: 1.1rem; }
.tat-ln-grid--spacious .tat-ln-card--no-thumb .tat-ln-avatar { width: 72px; height: 72px !important; font-size: 2rem; }
.tat-ln-top-badge { margin-bottom: 0.25rem; }

@keyframes tat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.tat-ln-live-badge--pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.tat-ln-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: tat-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.tat-ln-view-more {
  display: block;
  margin: 1rem auto 0;
  background: transparent;
  border: 1px var(--tat-border-style, solid) var(--tat-border-color);
  color: var(--tat-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.tat-ln-view-more:hover {
  background: var(--tat-primary);
  color: #000;
}

.tat-ln-hidden { display: none !important; }

/* ============================================
   BORDER VARIANT HELPERS
   ============================================ */

.tat-border-2 {
  --tat-border-color:  var(--tat-border-color-2);
  --tat-border-width:  var(--tat-border-width-2);
  --tat-border-radius: var(--tat-border-radius-2);
  --tat-border-style:  var(--tat-border-style-2);
}

.tat-border-3 {
  --tat-border-color:  var(--tat-border-color-3);
  --tat-border-width:  var(--tat-border-width-3);
  --tat-border-radius: var(--tat-border-radius-3);
  --tat-border-style:  var(--tat-border-style-3);
}

.tat-no-border {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Block decoration wrapper */
.tat-block-wrap {
  position: relative;
  isolation: isolate;
}

/* Border frame overlay — renders on top of "mid" decorations, below "above" ones */
.tat-block-border-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
}

.tat-deco {
  pointer-events: none;
  display: block;
  max-width: none;
  height: auto;
  width: auto;
}

/* ============================================
   EMBED PLAYER BLOCK
   ============================================ */

.tat-embed-player-block {}

.tat-embed-shell {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0e0e10;
}

.tat-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 160px;
  color: var(--tat-text-muted);
  font-size: 0.95rem;
}

.tat-embed-active {
  flex-direction: column;
}

.tat-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: var(--tat-surface);
  border-bottom: 2px var(--tat-border-style, solid) var(--tat-border-color);
  gap: 1rem;
}

.tat-embed-channel-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tat-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tat-embed-twitch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.65em;
  border-radius: 4px;
  background: rgba(145, 71, 255, 0.15);
  color: #bf8fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tat-embed-twitch-link:hover {
  background: #9147ff;
  color: #fff;
}

.tat-embed-close {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0.75rem;
  border: 2px var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 999px;
  color: var(--tat-primary);
  font-size: 0.85rem;
  font-family: inherit;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.tat-embed-close:hover {
  background: var(--tat-primary);
  color: #000;
}

.tat-embed-body {
  display: flex;
  height: 520px;
}

.tat-embed-stream-wrap {
  flex: 1 1 70%;
  min-width: 0;
}

.tat-embed-stream-wrap iframe {
  width: 100%;
  height: 100% !important;
  display: block;
}

.tat-embed-chat-wrap {
  flex: 0 0 300px;
  border-left: 2px var(--tat-border-style, solid) var(--tat-border-color);
  background: #18181b;
}

.tat-embed-chat-wrap iframe {
  width: 100%;
  height: 100% !important;
  display: block;
}

@media (max-width: 700px) {
  .tat-embed-body {
    flex-direction: column;
    height: auto;
  }
  .tat-embed-stream-wrap {
    height: 220px;
  }
  .tat-embed-chat-wrap {
    flex: none;
    height: 300px;
    border-left: none;
    border-top: 2px var(--tat-border-style, solid) var(--tat-border-color);
  }
}

/* ============================================
   SECTION BLOCK
   ============================================ */

.tat-section {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  background: color-mix(in srgb, var(--section-bg-color, var(--tat-surface)) calc(var(--section-bg-opacity, 100) * 1%), transparent);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tat-section.tat-border-2 {
  border-color: var(--tat-border-color-2);
  border-width: var(--tat-border-width-2);
  border-radius: var(--tat-border-radius-2);
  border-style: var(--tat-border-style-2);
}

.tat-section.tat-border-3 {
  border-color: var(--tat-border-color-3);
  border-width: var(--tat-border-width-3);
  border-radius: var(--tat-border-radius-3);
  border-style: var(--tat-border-style-3);
}

.tat-section-header-slot,
.tat-section-footer-slot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tat-section-cols {
  display: flex;
  gap: 1.5rem;
}

.tat-section-cols--1-col {
  flex-direction: column;
}

.tat-section-cols--2-col {
  flex-direction: row;
  align-items: flex-start;
}

.tat-section-cols--3-col {
  flex-direction: row;
  align-items: flex-start;
}

.tat-section-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .tat-section-cols--2-col,
  .tat-section-cols--3-col {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  /* Lineup list: reset alternating on mobile, collapse 2-col, shrink avatar */
  .tat-lu-list .tat-lu-row,
  .tat-lu-list .tat-lu-row:nth-child(even) {
    flex-direction: row;
  }
  .tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-row-info {
    align-items: flex-start;
    text-align: left;
  }
  .tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-name-row {
    flex-direction: row;
  }
  .tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-socials {
    justify-content: flex-start;
  }
  .tat-lu-list--2col .tat-lu-row {
    flex: 1 1 100%;
  }
  .tat-lu-list .tat-lu-avatar {
    width: 72px;
    height: 72px;
  }
}

/* ============================================
   NAV MENU BLOCK
   ============================================ */

.tat-nav-menu-block {
  padding: 1.25rem 1.5rem;
}

.tat-nm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
}

.tat-nm-item {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  color: var(--tat-primary);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.tat-nm-item:hover {
  background: var(--tat-primary);
  color: #000;
}

.tat-nm-child {
  font-size: 0.9em;
  opacity: 0.85;
}

.tat-nm-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tat-nm-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tat-text-muted);
  padding: 0 0.2rem;
}

.tat-nm-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tat-nm--grid .tat-nm-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.tat-nm--grid .tat-nm-item {
  text-align: center;
}

.tat-nm-empty {
  color: var(--tat-text-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .tat-nm--pills .tat-nm-links {
    flex-direction: column;
    align-items: stretch;
  }
  .tat-nm--pills .tat-nm-item {
    text-align: center;
  }
}

/* ============================================
   PARTICIPANT MODAL
   ============================================ */

.tat-pmodal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.tat-pmodal-backdrop.tat-pmodal-open { display: flex; }

.tat-pmodal-box {
  background: var(--tat-modal-bg, var(--tat-bg));
  border-width: var(--tat-modal-border-width, var(--tat-border-width, 1px));
  border-style: var(--tat-modal-border-style, var(--tat-border-style, solid));
  border-color: var(--tat-modal-border-color, var(--tat-border-color, #2e2e2e));
  border-radius: var(--tat-modal-border-radius, var(--tat-border-radius, 8px));
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 1.75rem;
  position: relative;
}

.tat-pmodal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; color: var(--tat-primary);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.tat-pmodal-close:hover { color: #fff; }

.tat-pmodal-header {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem;
}
.tat-pmodal-header .tat-participant-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tat-pmodal-header .tat-participant-initial { width: 80px; height: 80px; font-size: 2rem; }
.tat-pmodal-title-group h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.tat-pmodal-type-badge {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--tat-accent);
  border: 1px solid var(--tat-accent); border-radius: 3px; padding: 0.15rem 0.5rem;
}

.tat-pmodal-plots, .tat-pmodal-bio { margin-bottom: 1.1rem; }
.tat-pmodal-plots h4, .tat-pmodal-bio h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tat-text-muted); margin: 0 0 0.5rem;
}
.tat-pmodal-plot { font-size: 0.9rem; margin-bottom: 0.3rem; }
.tat-pmodal-plot--link { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tat-pmodal-plot--link:hover { color: var(--tat-accent); }
.tat-pmodal-bio p { margin: 0; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }
.tat-pmodal-actions { margin-top: 1.25rem; }

.tat-emodal-box { max-width: 560px; }
.tat-emodal-live { display: inline-block; margin-bottom: 0.75rem; }
.tat-emodal-thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; display: block; }
.tat-emodal-title { margin: 0 0 0.5rem; font-size: 1.3rem; }
.tat-emodal-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tat-emodal-meta { font-size: 0.9rem; color: var(--tat-text-muted); margin-bottom: 0.4rem; }
.tat-emodal-meta i { margin-right: 0.35rem; }
.tat-emodal-desc { margin-top: 0.85rem; font-size: 0.92rem; line-height: 1.6; }

/* ============================================
   COUNTDOWN BLOCK
   ============================================ */

.tat-countdown {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  background: var(--tat-surface);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}

.tat-countdown.tat-border-2 {
  border-color: var(--tat-border-color-2);
  border-width: var(--tat-border-width-2);
  border-radius: var(--tat-border-radius-2);
  border-style: var(--tat-border-style-2);
}

.tat-countdown.tat-border-3 {
  border-color: var(--tat-border-color-3);
  border-width: var(--tat-border-width-3);
  border-radius: var(--tat-border-radius-3);
  border-style: var(--tat-border-style-3);
}

.tat-countdown.tat-no-border { border: none; background: transparent; }

.tat-cd-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tat-cd-color, var(--tat-primary));
  margin-bottom: 0.4rem;
  text-shadow: var(--tat-glow);
}

.tat-cd-sublabel {
  font-size: 1.15rem;
  color: var(--tat-cd-color, var(--tat-primary));
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.tat-cd-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.tat-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.tat-cd-num {
  font-size: var(--tat-cd-num-size, clamp(2.8rem, 8vw, 5rem));
  font-weight: 900;
  line-height: 1;
  color: var(--tat-cd-color, var(--tat-primary));
  text-shadow: var(--tat-glow);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tat-cd-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tat-cd-color, var(--tat-primary));
  margin-top: 0.4rem;
}

.tat-cd-sep {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  color: var(--tat-cd-color, var(--tat-primary));
  line-height: 1;
  padding: 0 0.25rem;
  align-self: flex-start;
  margin-top: 0.05em;
}

@media (max-width: 480px) {
  .tat-cd-unit { min-width: 3rem; }
  .tat-cd-sep { padding: 0 0.1rem; }
}

/* ============================================
   PERFORMER LINEUP — schedule-group rows
   ============================================ */

.tat-slot-lineup {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.tat-slot-lineup-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.1rem 0;
  color: var(--tat-text-muted);
}

.tat-slot-lineup-slot {
  font-size: 0.72rem;
  color: var(--tat-primary);
  opacity: 0.85;
}

.tat-lineup-row--live {
  background: color-mix(in srgb, var(--tat-primary) 10%, transparent);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  margin: 0 -0.4rem;
}

.tat-lineup-row--clickable {
  cursor: pointer;
  transition: background 0.12s;
}

.tat-lineup-row--clickable:hover {
  background: color-mix(in srgb, var(--tat-primary) 22%, transparent);
}

.tat-lineup-live-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  background: var(--tat-primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.tat-lineup-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(145, 71, 255, 0.5);
  text-underline-offset: 2px;
}

.tat-lineup-link:hover {
  color: #9147ff;
  text-decoration-color: #9147ff;
}

.tat-lineup-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.tat-lineup-avatar--init {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--tat-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Time input — clock icon color fix for dark themes */
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
  cursor: pointer;
}

input[type="time"].form-control::-webkit-calendar-picker-indicator:hover {
  filter: invert(60%) sepia(100%) saturate(500%) hue-rotate(15deg);
}

/* ============================================
   SOCIAL LINKS BLOCK
   ============================================ */

.tat-block--social-links {
  padding: 1.5rem 1rem;
}

.tat-block--social-links > .tat-block-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tat-social-empty {
  text-align: center;
  color: var(--tat-text-muted);
  font-style: italic;
}

.tat-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tat-social-links--center { justify-content: center; }
.tat-social-links--left   { justify-content: flex-start; }
.tat-social-links--right  { justify-content: flex-end; }

.tat-social-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.tat-social-bubble:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.tat-social-links--no-labels .tat-social-bubble--sm { width: 40px;  height: 40px;  font-size: 1rem;    }
.tat-social-links--no-labels .tat-social-bubble--md { width: 54px;  height: 54px;  font-size: 1.35rem; }
.tat-social-links--no-labels .tat-social-bubble--lg { width: 70px;  height: 70px;  font-size: 1.7rem;  }

.tat-social-links--labels .tat-social-bubble {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  flex-direction: row;
  gap: 0.5rem;
  height: auto;
  width: auto;
}

.tat-social-links--labels .tat-social-bubble--sm { font-size: 0.9rem;  }
.tat-social-links--labels .tat-social-bubble--md { font-size: 1rem;    }
.tat-social-links--labels .tat-social-bubble--lg { font-size: 1.15rem; }

.tat-social-links--no-labels .tat-social-label { display: none; }
.tat-social-links--labels    .tat-social-label {
  display: inline;
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tat-social-bubble--twitter:hover   { border-color: #e0e0e0; color: #e0e0e0; }
.tat-social-bubble--discord:hover   { border-color: #5865f2; color: #5865f2; }
.tat-social-bubble--twitch:hover    { border-color: #9147ff; color: #9147ff; }
.tat-social-bubble--bluesky:hover   { border-color: #0085ff; color: #0085ff; }
.tat-social-bubble--instagram:hover { border-color: #e1306c; color: #e1306c; }
.tat-social-bubble--youtube:hover   { border-color: #ff4040; color: #ff4040; }
.tat-social-bubble--facebook:hover  { border-color: #1877f2; color: #1877f2; }
.tat-social-bubble--tiktok:hover    { border-color: #ff0050; color: #ff0050; }
.tat-social-bubble--mastodon:hover  { border-color: #6364ff; color: #6364ff; }
.tat-social-bubble--threads:hover   { border-color: #ccc;    color: #ccc;    }
.tat-social-bubble--website:hover   { border-color: var(--tat-primary); color: var(--tat-primary); }

/* ============================================
   IMAGE UPLOAD FIELDS (admin preview)
   ============================================ */

.tat-upload-row    { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.tat-upload-btn    { font-size: 0.85rem; }
.tat-upload-progress { font-size: 0.8rem; color: var(--tat-text-muted); }
.tat-img-preview   { max-width: 120px; max-height: 80px; object-fit: contain; border-radius: 4px; margin-top: 0.4rem; display: none; }
.tat-img--fit      { object-fit: contain !important; background: rgba(0, 0, 0, 0.18); }

/* ============================================
   VENUE LIST BLOCK
   ============================================ */

.tat-vl-list {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--tat-border-width, 1px) var(--tat-border-style, solid) var(--tat-border-color, rgba(255,255,255,0.12));
  border-radius: var(--tat-border-radius, 8px);
  overflow: hidden;
}

/* Column separators — right border on every item except the last in each row */
.tat-vl-list[data-cols="2"] .tat-vl-row:nth-child(odd)      { border-right: 1px solid rgba(255,255,255,0.06); }
.tat-vl-list[data-cols="3"] .tat-vl-row:not(:nth-child(3n)) { border-right: 1px solid rgba(255,255,255,0.06); }
.tat-vl-list[data-cols="4"] .tat-vl-row:not(:nth-child(4n)) { border-right: 1px solid rgba(255,255,255,0.06); }

.tat-vl-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.tat-vl-row[onclick] { cursor: pointer; }
.tat-vl-row[onclick]:hover { background: rgba(255,255,255,0.04); }
.tat-vl-row:last-child { border-bottom: none; }

.tat-vl-row-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tat-vl-plot {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tat-primary);
  min-width: 4.5rem;
  flex-shrink: 0;
}

.tat-vl-row .tat-vl-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tat-text, #e8e8e8);
  flex: 1;
}

.tat-vl-events {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-left: 5.1rem;
}

.tat-vl-event-chip {
  font-size: 0.72rem;
  color: var(--tat-text-muted);
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

.tat-vl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tat-vl-card {
  border: var(--tat-border-width, 1px) var(--tat-border-style, solid) var(--tat-border-color, rgba(255,255,255,0.12));
  border-radius: var(--tat-border-radius, 8px);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tat-vl-card[onclick]:hover {
  border-color: var(--tat-primary);
  box-shadow: var(--tat-glow);
  cursor: pointer;
}

.tat-vl-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.tat-vl-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tat-vl-card .tat-vl-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tat-text, #e8e8e8);
}

.tat-vl-card .tat-vl-events { padding-left: 0; flex-direction: column; }

.tat-vl-event-row {
  font-size: 0.78rem;
  color: var(--tat-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tat-vl-designer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--tat-text-muted);
  margin-top: 0.3rem;
}

.tat-vl-designer-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.tat-vl-designer i {
  font-size: 0.72rem;
  color: var(--tat-primary);
}

.tat-vl-group-label {
  margin: 0.5rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tat-text-muted, rgba(255,255,255,0.45));
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================
   EVENT FEATURE BLOCK
   ============================================ */

.tat-event-feature {
  border: var(--tat-border-width, 1px) var(--tat-border-style, solid) var(--tat-border-color, rgba(255,255,255,0.12));
  border-radius: var(--tat-border-radius, 8px);
  overflow: hidden;
}

.tat-ef-hero {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.tat-ef-body {
  padding: 1.5rem;
}

.tat-ef-body--compact {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.tat-ef-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.tat-ef-body-text { flex: 1; }

.tat-ef-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tat-text, #e8e8e8);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.tat-ef-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.tat-ef-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--tat-text-muted);
  margin-bottom: 0.25rem;
}

.tat-ef-meta i {
  color: var(--tat-primary);
  margin-right: 0.3rem;
}

.tat-ef-desc {
  padding: 0.25rem 1.5rem 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tat-text, #e8e8e8);
}
.tat-ef-desc p { margin: 0 0 0.5rem; }
.tat-ef-desc p:last-child { margin-bottom: 0; }

.tat-ef-lineup {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
}

.tat-ef-lineup-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tat-text-muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tat-ef-lineup-label i { color: var(--tat-primary); }

.tat-ef-lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

.tat-ef-performer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
}

a.tat-ef-performer:hover {
  background: rgba(255,255,255,0.05);
}

a.tat-ef-performer:hover .tat-ef-perf-name { color: var(--tat-primary); }

.tat-ef-perf-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tat-border-color, rgba(255,255,255,0.15));
  transition: border-color 0.15s;
}

a.tat-ef-performer:hover .tat-ef-perf-avatar { border-color: var(--tat-primary); }

.tat-ef-perf-avatar--init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--tat-primary);
}

.tat-ef-perf-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tat-text, #e8e8e8);
  line-height: 1.2;
  transition: color 0.15s;
}

.tat-ef-perf-slot {
  font-size: 0.75rem;
  color: var(--tat-text-muted);
  line-height: 1;
}

/* ── Bubble list lineup ── */
.tat-ef-bubble-list {
  display: flex;
  flex-direction: column;
}

.tat-ef-bubble-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 6px;
}

.tat-ef-bubble-row:last-child { border-bottom: none; }

a.tat-ef-bubble-row:hover { background: rgba(255, 255, 255, 0.04); }
a.tat-ef-bubble-row:hover .tat-ef-perf-name { color: var(--tat-primary); }

.tat-ef-bubble-row--flip { flex-direction: row-reverse; text-align: right; }

.tat-ef-bubble-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--tat-border-color, rgba(255, 255, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

a.tat-ef-bubble-row:hover .tat-ef-bubble-avatar { border-color: var(--tat-primary); }

.tat-ef-bubble-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (max-width: 480px) {
  .tat-ef-body--compact { flex-direction: column; }
  .tat-ef-thumb { width: 100%; height: 180px; }
  .tat-ef-lineup-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .tat-ef-bubble-avatar { width: 48px; height: 48px; }
}

/* ============================================
   IMAGE CAROUSEL BLOCK
   ============================================ */

.tat-carousel {
  position: relative;
  border-radius: var(--tat-border-radius, 12px);
  overflow: hidden;
}

.tat-carousel--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
}

.tat-carousel__track-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: var(--tat-border-radius, 12px);
}

.tat-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tat-carousel__slide {
  width: 100%;
  flex-shrink: 0;
}

.tat-carousel__slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.tat-carousel--16-9 .tat-carousel__slide img { aspect-ratio: 16 / 9; }
.tat-carousel--4-3  .tat-carousel__slide img { aspect-ratio: 4 / 3; }
.tat-carousel--square .tat-carousel__slide img { aspect-ratio: 1; }
.tat-carousel--auto   .tat-carousel__slide img { aspect-ratio: auto; }
.tat-carousel--custom .tat-carousel__slide img { aspect-ratio: var(--ca-w, 16) / var(--ca-h, 9); }

.tat-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  transition: background 0.2s, opacity 0.2s;
  font-size: 0.85rem;
}

.tat-carousel__btn:hover {
  background: rgba(0,0,0,0.82);
}

.tat-carousel__btn--prev { left: 0.6rem; }
.tat-carousel__btn--next { right: 0.6rem; }

.tat-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0 0.1rem;
}

.tat-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.tat-carousel__dot--active {
  background: var(--tat-primary, #ff8c00);
  transform: scale(1.25);
}

.tat-carousel__caption {
  text-align: center;
  font-size: 0.84rem;
  color: var(--tat-text-muted, #999);
  padding: 0.45rem 1rem 0.1rem;
  line-height: 1.4;
}

/* ── LINEUP BLOCK ── */

.tat-lineup-block {
  padding: 1.25rem 1rem;
}

.tat-lu-header {
  margin-bottom: 1.25rem;
}

.tat-lu-event-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tat-text, #fff);
  margin: 0 0 0.5rem;
}

.tat-lu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 1.05rem;
  color: var(--tat-text-muted, #aaa);
}

.tat-lu-meta i { color: var(--tat-primary); }

/* Grid layout */
.tat-lu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem 1rem;
}

.tat-lu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem 1rem;
  border: none;
  border-radius: var(--tat-card-radius, var(--tat-border-radius));
  background: color-mix(in srgb, var(--lu-row-bg-color, #ffffff) calc(var(--lu-row-bg-opacity, 4) * 1%), transparent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition),
    transform var(--tat-transition);
}

.tat-lu-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  transform: translateY(-2px);
}

.tat-lu-card.tat-lu-entry--bordered,
.tat-lu-row.tat-lu-entry--bordered {
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
}

.tat-lu-card.tat-lu-entry--bordered {
  padding: 1.25rem 0.75rem 1rem;
}

.tat-lu-card.tat-lu-entry--b2,
.tat-lu-row.tat-lu-entry--b2 {
  border-color: var(--tat-border-color-2);
  border-width: var(--tat-border-width-2);
  border-style: var(--tat-border-style-2, solid);
  border-radius: var(--tat-border-radius-2);
}

.tat-lu-card.tat-lu-entry--b3,
.tat-lu-row.tat-lu-entry--b3 {
  border-color: var(--tat-border-color-3);
  border-width: var(--tat-border-width-3);
  border-style: var(--tat-border-style-3, solid);
  border-radius: var(--tat-border-radius-3);
}

/* List layout */
.tat-lu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tat-lu-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--lu-row-bg-color, #ffffff) calc(var(--lu-row-bg-opacity, 4) * 1%), transparent);
}

/* Alternating: even rows flip image to right */
.tat-lu-list .tat-lu-row:nth-child(even) {
  flex-direction: row-reverse;
}
.tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-row-info {
  align-items: flex-end;
  text-align: right;
}
.tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-name-row {
  flex-direction: row-reverse;
}
.tat-lu-list .tat-lu-row:nth-child(even) .tat-lu-socials {
  justify-content: flex-end;
}

/* 2-column list */
.tat-lu-list--2col {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}
.tat-lu-list--2col .tat-lu-row {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 260px;
}

.tat-lu-row-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

/* Name + socials on one line */
.tat-lu-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.tat-lu-list .tat-lu-name-row {
  flex-wrap: nowrap;
  overflow: hidden;
}

.tat-lu-name-row .tat-lu-socials {
  margin-top: 0;
}

/* Avatar */
.tat-lu-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--tat-primary, #f90);
}

.tat-lu-list .tat-lu-avatar {
  width: 110px;
  height: 110px;
}

.tat-lu-grid .tat-lu-avatar {
  width: 90px;
  height: 90px;
}

/* Avatar shape variants */
.tat-lu-avatar--soft  { border-radius: 1rem; }
.tat-lu-avatar--square { border-radius: 0.25rem; }
.tat-lu-avatar--noglow { border: none; box-shadow: none; }

.tat-lu-avatar--init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tat-primary, #f90);
  background: rgba(255,255,255,0.06);
}

/* Name */
.tat-lu-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tat-text, #fff);
  text-decoration: none;
  word-break: break-word;
}

a.tat-lu-name:hover { color: var(--tat-primary, #f90); }

/* Grid view: slightly bigger name */
.tat-lu-grid .tat-lu-name {
  font-size: 0.95rem;
}

/* List view: bigger text, no wrap */
.tat-lu-list .tat-lu-name {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tat-lu-list .tat-lu-slot {
  font-size: 0.88rem;
}

.tat-lu-list .tat-lu-social {
  width: 32px;
  height: 32px;
  font-size: 0.92rem;
}

/* Slot time */
.tat-lu-slot {
  font-size: 0.78rem;
  color: var(--tat-text-muted, #aaa);
}

.tat-lu-slot i { color: var(--tat-primary); margin-right: 0.2em; }

/* Socials */
.tat-lu-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.15rem;
}

.tat-lu-list .tat-lu-socials { justify-content: flex-start; }

.tat-lu-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--tat-text-muted, #aaa);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.tat-lu-social:hover {
  color: var(--tat-primary, #f90);
  border-color: var(--tat-primary, #f90);
}

.tat-lu-social--rd {
  width: auto;
  padding: 0 0.4rem;
}

.tat-lu-rd-logo {
  height: 14px;
  width: auto;
  display: block;
}

/* ============================================
   VENUE / EVENT POPUP MODAL (map-style)
   ============================================ */

.tat-mmodal-box {
  max-width: 560px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
}

.tat-pmodal-box.tat-mmodal-box .tat-pmodal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
  top: 0.5rem;
  right: 0.75rem;
}

.tat-pmodal-box.tat-mmodal-box .tat-pmodal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.tat-mmodal-plot-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tat-map-accent, var(--tat-primary));
  padding: 1.1rem 1.5rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tat-mmodal-venue {
  padding-bottom: 0.75rem;
}

.tat-mmodal-hero {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.tat-mmodal-hero-carousel {
  width: 100%;
  max-height: 380px;
}

.tat-mmodal-hero-carousel .tat-carousel__track-wrap {
  height: 100%;
}

.tat-mmodal-hero-carousel .tat-carousel__slide {
  height: 100%;
}

.tat-mmodal-hero-carousel .tat-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.tat-mmodal-venue-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.5rem 0.5rem;
}

.tat-mmodal-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tat-border-color);
}

.tat-mmodal-venue-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tat-mmodal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tat-map-accent, var(--tat-primary));
  margin: 0;
  line-height: 1.2;
}

.tat-mmodal-meta {
  font-size: 0.82rem;
  color: var(--tat-text-muted);
  padding: 0.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tat-mmodal-meta i {
  color: var(--tat-map-accent, var(--tat-primary));
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.tat-mmodal-desc {
  padding: 0.65rem 1.5rem 0.25rem;
  font-size: 0.88rem;
  color: var(--tat-text);
  line-height: 1.65;
}

.tat-mmodal-desc p { margin: 0 0 0.5rem; }
.tat-mmodal-desc p:last-child { margin-bottom: 0; }

.tat-mmodal-events {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.tat-mmodal-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tat-text-muted);
  padding: 0.85rem 1.5rem 0.35rem;
  margin: 0;
}

.tat-mmodal-event-card {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tat-mmodal-event-card:first-child {
  border-top: none;
}

.tat-mmodal-event-thumb {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  display: block;
}

.tat-mmodal-event-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tat-text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.tat-mmodal-lineup {
  margin: 0.5rem 0;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--tat-primary);
  border-radius: 0 4px 4px 0;
}

.tat-mmodal-lineup-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tat-primary);
  margin-bottom: 0.4rem;
}

.tat-mmodal-lineup-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  color: var(--tat-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tat-mmodal-lineup-row:last-child { border-bottom: none; }

.tat-mmodal-lineup-name { font-weight: 600; }

.tat-mmodal-lineup-slot {
  font-size: 0.75rem;
  color: var(--tat-text-muted);
  white-space: nowrap;
}

.tat-mmodal-more-info {
  padding: 0.5rem 0 0.25rem;
}

.tat-mmodal-more-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tat-map-accent, var(--tat-primary));
  text-decoration: none;
  border: 1px solid var(--tat-map-accent, var(--tat-primary));
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.tat-mmodal-more-info a:hover {
  background: var(--tat-map-accent, var(--tat-primary));
  color: #000;
}

.tat-mmodal-designer-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.tat-mmodal-designer i {
  font-size: 0.8rem;
}

/* ── Apartment list modal ── */
button.tat-map-landmark {
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.tat-map-landmark--apartments {
  cursor: pointer;
}

.tat-mmodal-apt-header {
  padding: 1.2rem 1.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tat-map-accent, var(--tat-primary));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tat-apt-list {
  overflow-y: auto;
}

.tat-apt-list-item {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
  font: inherit;
  color: inherit;
}

.tat-apt-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tat-apt-list-item:last-child {
  border-bottom: none;
}

.tat-apt-list-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tat-text);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tat-apt-list-designer {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--tat-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tat-apt-list-designer-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.tat-apt-list-addr {
  font-size: 0.78rem;
  color: var(--tat-text-muted);
}

/* Designer inline on apt venue title line */
.tat-apt-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tat-apt-designer-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--tat-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.tat-apt-designer-inline .tat-mmodal-designer-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.tat-mmodal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tat-map-accent, var(--tat-primary));
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  transition: background 0.12s;
}

.tat-mmodal-back:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Venues-tab group labels */
.venues-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adm-muted);
  margin: 1.5rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─────────────────────────────────────────────
   TICKET QUEUE BLOCK
   ───────────────────────────────────────────── */
.tat-queue {
  max-width: 560px;
  margin: 2rem auto;
}

.tat-queue-loading,
.tat-queue-error {
  text-align: center;
  padding: 2rem;
  color: var(--tat-text-muted);
  font-size: 0.9rem;
}

.tat-queue-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tat-queue-head h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tat-text);
  margin: 0 0 0.75rem;
}

.tat-queue-serving {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tat-surface);
  border: 1px solid var(--tat-border-color);
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--tat-text-muted);
}

.tat-queue-serving strong {
  color: var(--tat-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.tat-queue-closed-banner {
  background: var(--tat-surface);
  border: 1px solid var(--tat-border-color);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  color: var(--tat-text-muted);
}

.tat-queue-closed-banner i {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.tat-queue-form-card {
  background: var(--tat-surface);
  border: 1px solid var(--tat-border-color);
  border-radius: 12px;
  padding: 1.75rem;
}

.tat-queue-field {
  margin-bottom: 1.1rem;
}

.tat-queue-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tat-text-muted);
  margin-bottom: 0.4rem;
}

.tat-queue-input,
.tat-queue-select {
  width: 100%;
  padding: 0.62rem 0.9rem;
  background: var(--tat-bg);
  border: 1px solid var(--tat-border-color);
  border-radius: 8px;
  color: var(--tat-text);
  font-size: 0.95rem;
  box-sizing: border-box;
  appearance: auto;
}

.tat-queue-input:focus,
.tat-queue-select:focus {
  outline: none;
  border-color: var(--tat-accent);
}

.tat-queue-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--tat-accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
}

.tat-queue-submit:hover {
  opacity: 0.88;
}

.tat-queue-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tat-queue-cooldown {
  text-align: center;
  font-size: 0.8rem;
  color: var(--tat-text-muted);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Ticket stub — post-claim view */
.tat-queue-stub {
  background: var(--tat-surface);
  border: 1px solid var(--tat-border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.tat-queue-stub-head {
  background: var(--tat-accent);
  color: #000;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tat-queue-stub-num {
  font-size: 5rem;
  font-weight: 900;
  font-family: 'Cinzel', 'Georgia', serif;
  color: var(--tat-accent);
  line-height: 1;
  padding: 1.25rem 0 0.5rem;
}

.tat-queue-stub-name {
  font-size: 1rem;
  color: var(--tat-text);
  font-weight: 600;
  padding-bottom: 0.25rem;
}

.tat-queue-stub-meta {
  font-size: 0.82rem;
  color: var(--tat-text-muted);
  padding-bottom: 1.1rem;
}

.tat-queue-stub-status {
  background: var(--tat-surface2, var(--tat-bg));
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--tat-border-color);
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.tat-queue-stub-stat {
  text-align: center;
}

.tat-queue-stub-stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tat-text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.tat-queue-stub-stat .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tat-text);
}

.tat-queue-stub-wait {
  font-size: 0.8rem;
  color: var(--tat-text-muted);
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--tat-border-color);
}

.tat-queue-stub-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--tat-border-color);
}

.tat-queue-reset-btn {
  background: none;
  border: 1px solid var(--tat-border-color);
  border-radius: 6px;
  color: var(--tat-text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.tat-queue-reset-btn:hover {
  border-color: var(--tat-accent);
  color: var(--tat-text);
}

.tat-queue-blurb {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--tat-muted, #aaa);
  line-height: 1.5;
}

/* ── Admin: Access Management ─────────────────────────────── */
.access-section {
  background: var(--adm-card, rgba(255,255,255,0.04));
  border: 1px solid var(--adm-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.access-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.access-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.access-role-desc {
  font-size: 0.85rem;
  color: var(--adm-text-muted, #888);
}
.access-section-note {
  font-size: 0.82rem;
  color: var(--adm-text-muted, #888);
  font-style: italic;
  margin: 0.25rem 0 0.75rem;
}
.access-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.access-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--adm-bg, rgba(0,0,0,0.2));
  border: 1px solid var(--adm-border, rgba(255,255,255,0.06));
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}
.access-username {
  font-size: 0.9rem;
  font-weight: 500;
}
.access-empty {
  font-size: 0.88rem;
  color: var(--adm-text-muted, #888);
  padding: 0.25rem 0;
}
.access-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}
.access-add-row .form-control {
  flex: 1;
  max-width: 240px;
}

/* ============================================
   SEARCH BLOCK
   ============================================ */
.tat-search { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.tat-search-bar { position: relative; display: flex; align-items: center; }
.tat-search-icon { position: absolute; left: 0.85rem; color: var(--tat-text-muted, #888); font-size: 0.95rem; pointer-events: none; }
.tat-search-input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--tat-bg, #111); color: var(--tat-fg, #eee);
  border: 1px solid var(--tat-border-color, rgba(255,255,255,0.12));
  border-radius: 6px; font-size: 1rem; outline: none;
  transition: border-color 0.15s;
}
.tat-search-input:focus { border-color: var(--tat-accent, #fff); }
.tat-search-results {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 500;
  background: var(--tat-bg, #111);
  border: 1px solid var(--tat-border-color, rgba(255,255,255,0.12));
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  max-height: 420px; overflow-y: auto;
}
.tat-search-results--open { display: block; }
.tat-search-group-label {
  padding: 0.45rem 0.85rem 0.2rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--tat-accent, #888);
  border-top: 1px solid var(--tat-border-color, rgba(255,255,255,0.08));
}
.tat-search-group-label:first-child { border-top: none; }
.tat-search-item {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.5rem 0.85rem; cursor: pointer;
  transition: background 0.1s;
}
.tat-search-item:hover, .tat-search-item:focus { background: var(--tat-primary, rgba(255,255,255,0.06)); outline: none; }
.tat-search-item-icon { color: var(--tat-text-muted, #666); font-size: 0.8rem; flex-shrink: 0; width: 1em; }
.tat-search-item-name { font-size: 0.92rem; flex: 1; }
.tat-search-meta { font-size: 0.75rem; color: var(--tat-text-muted, #888); white-space: nowrap; }
.tat-search-empty { padding: 0.75rem 0.85rem; font-size: 0.88rem; color: var(--tat-text-muted, #888); font-style: italic; }

/* ============================================
   MENU BLOCK
   ============================================ */

.tat-menu {
  width: 100%;
  box-sizing: border-box;
}

.tat-menu-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mnu-heading-color, var(--tat-text, #fff));
  background: var(--mnu-heading-bg, transparent);
  margin: 0 0 1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}

.tat-menu-sections {
  background: color-mix(in srgb, var(--mnu-bg-color, #000000) calc(var(--mnu-bg-opacity, 0) * 1%), transparent);
}

.tat-menu-section {
  border: var(--tat-border-width, 1px) var(--tat-border-style, solid) var(--tat-border-color, rgba(255,255,255,0.15));
  border-radius: var(--tat-border-radius, 0.5rem);
  overflow: hidden;
  margin-bottom: var(--mnu-section-gap, 1.25rem);
}

.tat-menu-section:last-child {
  margin-bottom: 0;
}

.tat-menu-section--b2 {
  border-color: var(--tat-border-color-2);
  border-width: var(--tat-border-width-2);
  border-style: var(--tat-border-style-2, solid);
  border-radius: var(--tat-border-radius-2);
}

.tat-menu-section--b3 {
  border-color: var(--tat-border-color-3);
  border-width: var(--tat-border-width-3);
  border-style: var(--tat-border-style-3, solid);
  border-radius: var(--tat-border-radius-3);
}

.tat-menu-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mnu-title-color, var(--tat-text-muted, #aaa));
  padding: 0.6rem 1.5rem;
  background: var(--mnu-title-bg, rgba(255,255,255,0.04));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tat-menu-items {
  display: flex;
  flex-direction: column;
}

.tat-menu-item {
  display: grid;
  grid-template-columns: var(--mnu-name-width, auto) 1fr;
  gap: 0 1.25rem;
  padding: 0.8rem 1.5rem;
  align-items: center;
  position: relative;
  cursor: default;
}

.tat-menu-items--has-img .tat-menu-item {
  grid-template-columns: 52px auto 1fr;
}

.tat-menu-item + .tat-menu-item {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tat-menu-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

.tat-menu-item-img-placeholder {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.tat-menu-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tat-text, #fff);
  min-width: 0;
}

.tat-menu-item-desc {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--tat-text-muted, #ccc);
  min-width: 0;
}

/* Tooltip */
.tat-menu-item--has-tooltip:hover {
  background: rgba(255,255,255,0.03);
}

.tat-menu-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 6px);
  background: var(--tat-surface2, #1e1e1e);
  border: 1px solid var(--tat-border-color, rgba(255,255,255,0.15));
  border-radius: var(--tat-border-radius, 0.5rem);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--tat-text, #fff);
  z-index: 20;
  max-width: 280px;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.tat-menu-item--has-tooltip:hover .tat-menu-tooltip {
  display: block;
}

@media (max-width: 600px) {
  .tat-menu-item {
    grid-template-columns: 1fr !important;
    gap: 0.25rem;
  }
  .tat-menu-items--has-img .tat-menu-item {
    grid-template-columns: 1fr !important;
  }
  .tat-menu-item-img,
  .tat-menu-item-img-placeholder {
    display: none;
  }
}

