/* Ortak iskelet — renk/font token’ları tema paketinden (body style / themes/*.css) gelir.
   Aşağıdakiler yalnızca tema yüklenmeden önceki güvenli varsayılanlardır. */
:root {
  --bg: #1a0a0f;
  --bg-soft: #2a1218;
  --surface: #160a0f;
  --surface-elevated: #221016;
  --ink: #f3ebe3;
  --ink-strong: #fffaf5;
  --muted: #b09a9f;
  --burgundy: #6b1428;
  --burgundy-deep: #3d0a16;
  --gold: #d4b56a;
  --gold-soft: #e8d09a;
  --line: rgba(212, 181, 106, 0.28);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-bg: rgba(12, 5, 8, 0.88);
  --hero-veil: linear-gradient(115deg, rgba(12,5,8,.88), rgba(74,14,28,.45));
  --shadow-soft: 0 24px 60px rgba(0,0,0,.35);
  /* Standart tiyatro afişi (portre tek sayfa ≈ 2:3) */
  --poster-ratio: 2 / 3;
  --poster-slot-bg: #1a1014;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-cal-modal-open="1"],
body[data-cal-modal-open="1"] {
  overflow: hidden !important;
}
body.public {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 1.25rem;
  background: rgba(26,10,15,.92); backdrop-filter: blur(8px);
  color: #fff;
}
.logo { display: flex; align-items: center; gap: .75rem; color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.logo--wordmark img {
  width: auto;
  height: 2.5rem;
  max-width: 11rem;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.site-nav a { color: rgba(255,255,255,.85); font-size: .92rem; }
.site-nav a.is-active, .site-nav a:hover { color: var(--gold-soft); }
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  border: 0; background: transparent; color: rgba(255,255,255,.85); font: inherit; font-size: .92rem;
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: .25rem;
}
.nav-dropdown.is-active > .nav-dropdown__toggle,
.nav-dropdown:hover > .nav-dropdown__toggle,
.nav-dropdown.is-open > .nav-dropdown__toggle { color: var(--gold-soft); }
.nav-dropdown__caret { font-size: .7rem; opacity: .8; }
.nav-dropdown__menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 14rem;
  padding: .45rem 0 0; /* hover köprüsü: boşlukta menü kapanmasın */
  z-index: 50;
  flex-direction: column;
}
.nav-dropdown__menu-inner {
  background: #1a0a0f; border: 1px solid rgba(196,163,90,.35); padding: .4rem 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.nav-dropdown:hover > .nav-dropdown__menu,
.nav-dropdown:focus-within > .nav-dropdown__menu,
.nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a {
  display: block; padding: .45rem .85rem; color: rgba(255,255,255,.88); white-space: nowrap;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active { color: var(--gold-soft); background: rgba(255,255,255,.06); }
.page-figure { margin: 0 0 1.25rem; }
.page-figure img,
img.page-figure {
  display: block;
  width: auto;
  height: auto;
  max-width: none; /* Boyut menüsü %100+ değerleri uygulayabilsin */
}
.page-video {
  margin: 0 0 1.35rem;
  max-width: 100%;
}
.page-video video,
video.page-video__el {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #0a0507;
  vertical-align: middle;
}
.prose .page-video { clear: both; }
/* Boyut verilmemiş görseller sütunu doldursun */
.page-figure:not([style*="width"]) img:not([width]):not([style*="width"]),
img.page-figure:not([width]):not([style*="width"]) {
  width: 100%;
  max-width: 100%;
}
.page-figure--narrow { max-width: 22rem; width: fit-content; }
/* Yan yana iki görsel */
.page-figure-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .85rem;
  margin: 0 0 1.25rem;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}
.page-figure-row > .page-figure,
.page-figure-row > img.page-figure {
  float: none !important;
  flex: 1 1 calc(50% - .45rem);
  min-width: 0;
  width: auto !important;
  max-width: calc(50% - .45rem);
  margin: 0;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  position: relative;
  z-index: auto;
}
.page-figure-row > .page-figure img,
.page-figure-row > img.page-figure {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-figure--half,
img.page-figure--half {
  float: left;
  width: calc(50% - .45rem);
  max-width: calc(50% - .45rem);
  margin: .15rem .9rem .85rem 0;
  box-sizing: border-box;
}
.page-figure--half img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
/* Word benzeri: kutu görsele uyumlu (fit-content) + metin için kenar boşluğu */
.prose::after { content: ""; display: table; clear: both; }
.page-figure--left,
img.page-figure--left {
  float: left;
  width: fit-content;
  max-width: 85%;
  margin: .15rem 1.1rem .85rem 0;
  box-sizing: border-box;
}
.page-figure--right,
img.page-figure--right {
  float: right;
  width: fit-content;
  max-width: 85%;
  margin: .15rem 0 .85rem 1.1rem;
  box-sizing: border-box;
}
.page-figure--left img,
.page-figure--right img,
.page-figure--behind img,
.page-figure--front img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.page-figure--center,
img.page-figure--center {
  float: none;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.page-figure--center img { width: 100%; height: auto; max-width: none; }
.page-figure--inline,
img.page-figure--inline {
  display: inline-block;
  float: none;
  width: fit-content;
  max-width: 85%;
  margin: 0 .75rem .35rem 0;
  vertical-align: middle;
}
.page-figure--inline img,
img.page-figure--inline { width: 100%; max-width: none; height: auto; }
.page-figure--behind,
img.page-figure--behind {
  float: left;
  width: fit-content;
  max-width: 85%;
  margin: .15rem 1rem .85rem 0;
  opacity: .42;
  pointer-events: none;
}
.page-figure--front,
img.page-figure--front {
  float: left;
  width: fit-content;
  max-width: 85%;
  margin: .15rem 1.1rem .85rem 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}
@media (max-width: 640px) {
  .page-figure-row {
    flex-direction: column;
    gap: .75rem;
  }
  .page-figure-row > .page-figure,
  .page-figure-row > img.page-figure {
    width: 100% !important;
  }
  .page-figure--left,
  .page-figure--right,
  .page-figure--inline,
  .page-figure--narrow,
  .page-figure--half,
  .page-figure--behind,
  .page-figure--front,
  img.page-figure--left,
  img.page-figure--right,
  img.page-figure--inline,
  img.page-figure--half,
  img.page-figure--behind,
  img.page-figure--front {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
  }
}
.prose blockquote { margin: 1rem 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--gold); font-style: italic; }
.prose blockquote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .9rem; opacity: .8; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.4rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: .35rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.15rem; border: 0; cursor: pointer;
  background: var(--burgundy); color: #fff; font-family: inherit; font-weight: 600;
  border-radius: var(--radius);
}
.btn[hidden] { display: none !important; }
a.btn, a.btn:hover, a.btn:visited { text-decoration: none; }
.btn:hover { background: var(--burgundy-deep); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn--accent {
  background: var(--btn-accent-bg, var(--gold));
  color: var(--btn-accent-ink, var(--burgundy-deep));
}
.btn--accent:hover {
  background: var(--btn-accent-hover-bg, var(--gold-soft));
  color: var(--btn-accent-hover-ink, var(--burgundy-deep));
}
.btn--sm { padding: .4rem .75rem; font-size: .85rem; }

.hero {
  min-height: 88vh; display: grid; align-items: end;
  background: var(--bg) center/cover no-repeat;
  background-image: linear-gradient(120deg, rgba(26,10,15,.82), rgba(74,14,28,.55)), var(--hero-img);
  color: #fff; position: relative;
}
.hero__content { padding: 4rem 1.5rem 3.5rem; max-width: 720px; }
.brand-hero {
  font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.05; margin: .2rem 0 .6rem; font-weight: 700;
}
.eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--gold-soft); margin: 0; }
.lede { font-size: 1.1rem; opacity: .92; max-width: 36ch; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

.usp-band {
  background: var(--burgundy); color: var(--gold-soft);
  text-align: center; padding: .85rem 1rem; font-size: .95rem;
}
.section { padding: 2.5rem 1.25rem; max-width: 1100px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2, .page-hero h1, .show-detail h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0;
}
.page-hero { padding: 2.5rem 1.25rem 1rem; max-width: 1100px; margin: 0 auto; }
.muted { color: var(--muted); }
.narrow { max-width: 480px; }

.show-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem;
}
.show-card {
  color: inherit; display: block; min-width: 0; overflow: hidden;
}
.show-card h3,
.show-card__prod {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.show-card__frame,
.show-detail__poster,
.poster-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--poster-ratio);
  overflow: hidden;
  background: var(--poster-slot-bg);
}
.show-card__frame img,
.show-detail__poster img,
.poster-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
.show-card img {
  filter: saturate(.95);
}
.show-card h3 { font-family: var(--font-display); margin: .6rem 0 .15rem; font-size: 1.25rem; }
.show-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.show-card__prod {
  margin: .15rem 0 .2rem !important;
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.show-card__prod--house {
  color: var(--gold) !important;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 0 18px rgba(212, 181, 106, 0.35);
}
.show-card__prod--guest {
  color: var(--muted) !important;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: none;
  font-size: .85rem !important;
}
.show-card--house h3 {
  color: var(--ink-strong, var(--ink));
}

.session-list { display: flex; flex-direction: column; gap: .65rem; }
.session-row {
  display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.session-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.session-row .meta { display: block; color: var(--muted); font-size: .85rem; }
.session-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.ticket-cta { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.ticket-cta--logo {
  gap: 0;
  padding: .35rem .55rem;
  background: #fff;
  color: #111;
  box-shadow: none;
}
.ticket-cta--logo:hover { background: #f3f3f3; color: #111; }
.ticket-cta__logo { height: 1rem; width: auto; display: block; max-width: 6.5rem; object-fit: contain; }
.ticket-cta--logo .ticket-cta__logo { height: 1.1rem; }
.show-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: .55rem;
  margin: 0 0 1.5rem;
}
.show-gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--poster-slot-bg);
  aspect-ratio: 1;
  overflow: hidden;
}
.show-gallery__item img,
.show-gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.show-gallery__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.35);
  font-size: 1.25rem;
}
.show-gallery-lightbox {
  position: fixed;
  inset: 0;
  width: min(1100px, 96vw);
  height: min(92dvh, 92vh);
  max-width: 96vw;
  max-height: 92dvh;
  margin: auto;
  border: 0;
  padding: 2.75rem 3.25rem 1.75rem;
  background: #0a0507;
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  flex-direction: column;
}
.show-gallery-lightbox:not([open]) {
  display: none;
}
.show-gallery-lightbox[open],
.show-gallery-lightbox:modal {
  display: flex;
  flex-direction: column;
}
.show-gallery-lightbox::backdrop { background: rgba(0,0,0,.72); }
.show-gallery-lightbox__close {
  position: absolute;
  top: .35rem;
  right: .35rem;
  z-index: 2;
}
.show-gallery-lightbox__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.show-gallery-lightbox__body img,
.show-gallery-lightbox__body video {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
}
.show-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.show-gallery-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.show-gallery-lightbox__nav--prev { left: .4rem; }
.show-gallery-lightbox__nav--next { right: .4rem; }
.show-gallery-lightbox__nav[hidden] { display: none; }
.show-gallery-lightbox__counter {
  flex: 0 0 auto;
  margin: .65rem 0 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .show-gallery-lightbox { padding: 2.25rem 2.5rem 1.25rem; height: min(88vh, 900px); }
  .show-gallery-lightbox__nav { width: 2.15rem; height: 2.15rem; font-size: 1.4rem; }
}

.show-detail {
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 2rem;
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem;
}
.meta-list { display: flex; gap: 1rem; list-style: none; padding: 0; color: var(--muted); }
.prose { line-height: 1.7; position: relative; }
.filter-row, .filter-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.filter-row a { padding: .35rem .7rem; border: 1px solid var(--line); color: var(--ink); }
.filter-row a.is-active { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.map-embed { margin: 1.5rem 0 0; border: 1px solid var(--line, #ddd); overflow: hidden; }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
.newsletter, .newsletter-block { display: flex; flex-direction: column; gap: .5rem; }
.newsletter input, .form input, .form textarea, .form select, .filter-form input {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); font: inherit;
  background: var(--surface-elevated, #fff); color: var(--ink);
}
.text-link { color: var(--gold); text-decoration: none; }
.form { display: flex; flex-direction: column; gap: .75rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }

.site-footer {
  background: var(--bg); color: rgba(255,255,255,.8); padding: 2.5rem 1.25rem 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.footer-grid a { display: block; color: var(--gold-soft); margin: .25rem 0; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: rgba(0,0,0,.45); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.12); }
.auth-google { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
.auth-google .g_id_signin { display: flex; justify-content: center; }
.copy { text-align: center; opacity: .55; font-size: .85rem; margin-top: 2rem; }

.alert { padding: .75rem 1rem; margin: .75rem 1.25rem; border-left: 3px solid var(--gold); background: #fff; }
.alert--error { border-color: #a33; }
.alert--success { border-color: #2a7; }

.stage {
  text-align: center; letter-spacing: .3em; font-size: .75rem; color: var(--muted);
  border: 1px dashed var(--line); padding: .5rem; margin-bottom: 1rem; background: #efe6dc;
}
.seat-map { display: flex; flex-direction: column; gap: .35rem; align-items: center; overflow-x: auto; }
.seat-row { display: flex; gap: .25rem; align-items: center; }
.row-label { width: 1.5rem; font-size: .75rem; color: var(--muted); }
.seat {
  width: 2.15rem; height: 2.15rem; display: inline-grid; place-items: center;
  font-size: .7rem; border: 1px solid #8a6; background: #e8f8ec; color: #14532d;
  cursor: pointer; position: relative; font-weight: 600;
}
.seat input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seat--legend-empty { background: #e8f8ec; border-color: #8a6; }
.seat--vip { background: #f5d76e; border-color: #b45309; color: #78350f; }
.seat--accessible { background: #7dd3fc; border-color: #0369a1; color: #0c4a6e; }
.seat--blocked,
.seat.is-taken {
  background: #4b5563; border-color: #111827; color: #f9fafb;
  opacity: 1; cursor: not-allowed; font-weight: 500;
}
.seat.is-held-other {
  background: #ea580c; border-color: #9a3412; color: #fff7ed;
  cursor: not-allowed; animation: seat-pulse 1.6s ease-in-out infinite;
}
.seat.is-held-mine,
.public-seats .seat:has(input:checked) {
  outline: 2px solid #1a0a0f;
  background: var(--burgundy, #4a0e1c); border-color: #2a0810; color: #fff;
  box-shadow: 0 0 0 2px rgba(74, 14, 28, .25);
}
@keyframes seat-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.legend { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.legend .seat { pointer-events: none; width: 1.35rem; height: 1.35rem; font-size: 0; }
.seat-total {
  margin: .85rem 0 .35rem; padding: .75rem 1rem;
  background: rgba(74, 14, 28, .06); border: 1px solid var(--line, #ddd);
  font-size: 1rem;
}
.seat-total[hidden] { display: none !important; }
.seat-total strong { font-size: 1.15rem; color: var(--burgundy, #4a0e1c); }
.seat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: .5rem; }
.seat-countdown { margin: 0; font-size: .95rem; color: var(--burgundy, #4a0e1c); font-weight: 600; }
.seat-countdown[hidden] { display: none !important; }
.seat-live-error { color: #b91c1c; font-size: .9rem; margin: .5rem 0 0; }
.seat-live-error[hidden] { display: none !important; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.ticket-card { border: 1px solid var(--line); padding: 1rem; text-align: center; background: #fff; }
.ticket-card .code { font-family: ui-monospace, monospace; font-weight: 700; }

/* —— Public calendar —— */
.cal-section { padding-top: 0; }
.cal-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .65rem 1rem; margin-bottom: .85rem;
}
.cal-toolbar__nav { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; min-width: 0; }
.cal-title {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  margin: 0 0 0 .25rem; min-width: 0; white-space: nowrap;
}
.cal-btn { background: var(--burgundy); color: #fff; }
.cal-btn--icon {
  min-width: 2.75rem; min-height: 2.75rem;
  padding-left: .5rem; padding-right: .5rem; font-size: 1.25rem; line-height: 1;
}
.cal-views {
  display: inline-flex; border: 1px solid var(--line); background: #fff; overflow: hidden;
}
.cal-view-btn {
  border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .9rem;
  min-height: 2.75rem; padding: .5rem .9rem; cursor: pointer; color: var(--muted);
  border-right: 1px solid var(--line);
}
.cal-view-btn:last-child { border-right: 0; }
.cal-view-btn.is-active, .cal-view-btn[aria-pressed="true"] {
  background: var(--burgundy); color: #fff;
}
.cal-root {
  opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  border: 1px solid var(--line); background: #fff;
}
.cal-root.is-ready { opacity: 1; transform: none; }
.cal-loading { margin-top: .75rem; }

.cal-month__head, .cal-month__grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-month__dow {
  padding: .55rem .35rem; text-align: center; font-size: .78rem; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line); background: #faf6f1;
}
.cal-month__cell {
  min-height: 6.5rem; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: pointer; display: flex; flex-direction: column; gap: .2rem;
  position: relative;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.cal-month__cell:nth-child(7n) { border-right: 0; }
.cal-month__cell.is-outside { background: #f3eee8; opacity: .72; }
.cal-month__cell.is-past { opacity: .42; }
.cal-month__cell.is-past.is-outside { opacity: .34; }
.cal-month__cell.is-past .cal-month__num { color: var(--muted); }
.cal-month__cell.is-past .cal-chip { filter: saturate(.55); }
.cal-month__cell.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-month__cell.has-events { background: rgba(107, 20, 40, 0.03); }
.cal-month__num {
  align-self: flex-start; border: 0; background: transparent; font: inherit; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); padding: .1rem .35rem;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.cal-month__events { display: flex; flex-direction: column; gap: .2rem; min-height: 0; }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 0 0 1rem;
  font-size: .82rem; color: var(--muted);
}
.cal-legend__item { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend__swatch {
  display: inline-block; width: .85rem; height: .85rem; border-radius: 2px; flex-shrink: 0;
}
.cal-legend__swatch--house {
  background: #8a1830;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.cal-legend__swatch--guest {
  background: #f3ead8;
  border: 1px solid #a67c2a;
}
.cal-filter {
  display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; margin: 0;
  flex-shrink: 0;
}
.cal-filter__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  appearance: none; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 600;
  padding: .35rem .65rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink); white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cal-filter__btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.cal-filter__btn.is-active {
  background: var(--burgundy); color: #fff; border-color: var(--burgundy);
}
.cal-filter__btn--house.is-active {
  background: #8a1830; border-color: var(--gold);
  color: #fffaf5;
  box-shadow: inset 0 0 0 1px rgba(212, 181, 106, 0.45);
}
.cal-filter__btn--guest.is-active {
  background: #f3ead8; border-color: #a67c2a; color: #1f1408;
}
.cal-chip {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: var(--burgundy); color: #fff; font: inherit; font-size: .72rem; font-weight: 500;
  padding: .25rem .4rem; border-radius: var(--radius); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Han yapımı — en belirgin (doygun bordo + altın şerit + beyaz yazı) */
.cal-chip.is-house {
  background: #8a1830;
  color: #fffaf5;
  font-weight: 700;
  letter-spacing: .015em;
  box-shadow:
    inset 3px 0 0 var(--gold),
    0 0 0 1px rgba(212, 181, 106, 0.45);
}
/* Misafir — açık krem zemin + koyu yazı (kontrast yüksek, Han’dan ikincil) */
.cal-chip.is-guest {
  background: #f3ead8;
  color: #2c1a0a;
  font-weight: 600;
  border: 1px solid #c4a35a;
  box-shadow: none;
}
.cal-chip.is-soldout {
  background: #8a7a7e !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-weight: 500;
}
.cal-month__more {
  border: 0; background: transparent; color: var(--burgundy); font: inherit; font-size: .72rem;
  font-weight: 600; cursor: pointer; text-align: left; padding: .1rem .2rem;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cal-week__scroll { overflow-x: auto; }
.cal-week__head, .cal-week__body {
  display: grid; grid-template-columns: 3.5rem repeat(7, minmax(5.5rem, 1fr)); min-width: 52rem;
}
.cal-week__gutter { border-right: 1px solid var(--line); }
.cal-week__dayhead {
  text-align: center; padding: .55rem .25rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  background: #faf6f1; font-size: .8rem; color: var(--muted);
}
.cal-week__dayhead strong { display: block; color: var(--ink); font-size: 1.1rem; }
.cal-week__dayhead.is-today strong { color: var(--burgundy); }
.cal-week__hours { display: flex; flex-direction: column; }
.cal-week__hour {
  flex: 1; min-height: 3rem; font-size: .7rem; color: var(--muted); padding: .15rem .25rem 0;
  border-bottom: 1px solid rgba(196, 163, 90, 0.2); text-align: right;
}
.cal-week__col {
  position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line);
}
.cal-week__col.is-today { background: rgba(196, 163, 90, 0.06); }
.cal-week__slot {
  flex: 1; min-height: 3rem; border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}
.cal-week__event {
  position: absolute; left: 2px; right: 2px; z-index: 2;
  border: 0; border-left: 3px solid var(--gold); background: var(--burgundy-deep); color: #fffaf5;
  font: inherit; text-align: left; padding: .25rem .35rem; cursor: pointer; overflow: hidden;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600;
}
.cal-week__event.is-house {
  background: #8a1830;
  color: #fffaf5;
  border-left-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(212, 181, 106, 0.4);
}
.cal-week__event.is-guest {
  background: #f3ead8;
  color: #2c1a0a;
  border-left-color: #a67c2a;
  font-weight: 600;
}
.cal-week__event.is-soldout { background: #8a7a7e !important; border-left-color: #cbb; color: #fff !important; }
.cal-day__card.is-house {
  border-left: 4px solid var(--burgundy-deep);
  background: #fff8f6;
}
.cal-day__card.is-guest {
  border-left: 4px solid #a67c2a;
  background: #faf6f1;
}
.cal-week__event-time { display: block; font-size: .68rem; opacity: .85; }
.cal-week__event-title { display: block; font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-day { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.cal-day__empty { margin: 1rem 0; }
.cal-day__card {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: center;
  padding: .9rem 1rem; border: 1px solid var(--line); background: #faf6f1; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cal-day__card.is-soldout { opacity: .75; }
.cal-day__time { font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-day__time strong { display: block; color: var(--ink); font-size: 1.05rem; }
.cal-day__time span { font-size: .8rem; }
.cal-day__info h3 { margin: 0 0 .2rem; font-family: var(--font-display); font-size: 1.25rem; }
.cal-day__info p { margin: 0; font-size: .9rem; }
.cal-day__actions { display: flex; gap: .4rem; }

.cal-modal {
  border: 0; padding: 0; max-width: min(560px, calc(100vw - 2rem));
  background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(26, 10, 15, .35);
}
.cal-modal:modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: min(560px, calc(100vw - 2rem));
  max-height: min(90dvh, 90vh);
  overflow-y: auto;
}
.cal-modal.cal-modal--fallback {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: min(560px, calc(100vw - 2rem));
  max-height: min(90dvh, 90vh);
  overflow-y: auto;
  z-index: 1000;
}
.cal-modal::backdrop { background: rgba(26, 10, 15, .55); }
.cal-modal__close {
  position: absolute; top: .35rem; right: .35rem; z-index: 2; margin: 0;
  border: 0; background: rgba(26, 10, 15, .08);
  width: 2.75rem; height: 2.75rem;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cal-modal__close:hover { background: rgba(26, 10, 15, .15); }
/* Tema link renkleri (gold/burgundy) chip metnini ezmesin */
a.cal-chip,
a.cal-chip:visited {
  text-decoration: none;
}
a.cal-chip.is-house,
a.cal-chip.is-house:visited {
  color: #fffaf5 !important;
}
a.cal-chip.is-guest,
a.cal-chip.is-guest:visited {
  color: #1f1408 !important;
}

/* Masaüstü: gerçek hover (dokunmatikte yapışmaz) */
@media (hover: hover) and (pointer: fine) {
  .cal-month__cell:hover {
    background: rgba(196, 163, 90, 0.1);
    z-index: 1;
  }
  .cal-month__cell.has-events:hover {
    background: rgba(107, 20, 40, 0.08);
    box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.55);
  }
  .cal-month__cell.is-today:hover {
    box-shadow: inset 0 0 0 2px var(--gold);
  }
  .cal-month__cell.is-outside:hover {
    opacity: .9;
  }
  .cal-month__num:hover {
    color: var(--burgundy);
    background: rgba(107, 20, 40, 0.08);
  }
  .cal-month__more:hover {
    color: var(--burgundy-deep);
    background: rgba(196, 163, 90, 0.15);
  }
  .cal-chip.is-house:hover,
  a.cal-chip.is-house:hover,
  a.cal-chip.is-house:focus-visible {
    background: #2a0610;
    color: #ffffff !important;
    box-shadow:
      inset 3px 0 0 var(--gold),
      0 0 0 1px var(--gold),
      0 4px 12px rgba(42, 6, 16, 0.35);
    transform: translateY(-1px);
  }
  .cal-chip.is-guest:hover,
  a.cal-chip.is-guest:hover,
  a.cal-chip.is-guest:focus-visible {
    background: #e8d9b8;
    color: #120c06 !important;
    border-color: #a67c2a;
    box-shadow: 0 3px 10px rgba(166, 124, 42, 0.25);
    transform: translateY(-1px);
  }
  .cal-chip.is-soldout:hover {
    filter: brightness(1.08);
    transform: none;
    box-shadow: none !important;
  }
  .cal-week__event.is-house:hover {
    background: #2a0610;
    color: #fff;
    box-shadow: 0 4px 14px rgba(42, 6, 16, 0.4);
    transform: translateY(-1px);
    z-index: 3;
  }
  .cal-week__event.is-guest:hover {
    background: #e8d9b8;
    color: #1a0f06;
    box-shadow: 0 4px 12px rgba(166, 124, 42, 0.28);
    transform: translateY(-1px);
    z-index: 3;
  }
  .cal-day__card:hover {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 6px 18px rgba(74, 14, 28, 0.1);
    transform: translateY(-2px);
  }
}

/* Mobil / dokunma: basılı tutma geri bildirimi */
.cal-month__cell:active {
  background: rgba(196, 163, 90, 0.16);
}
.cal-month__cell.has-events:active {
  background: rgba(107, 20, 40, 0.12);
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.65);
}
.cal-month__num:active {
  color: var(--burgundy);
  background: rgba(107, 20, 40, 0.12);
}
.cal-month__more:active {
  background: rgba(196, 163, 90, 0.2);
}
.cal-chip.is-house:active,
a.cal-chip.is-house:active {
  background: #2a0610;
  color: #fff !important;
  filter: brightness(1.05);
}
.cal-chip.is-guest:active,
a.cal-chip.is-guest:active {
  background: #e0d0a8;
  color: #120c06 !important;
}
.cal-week__event.is-house:active {
  background: #2a0610;
  color: #fff;
}
.cal-week__event.is-guest:active {
  background: #e0d0a8;
  color: #1a0f06;
}
.cal-day__card:active {
  border-color: var(--gold);
  background: #fff;
  transform: scale(0.985);
}
.cal-modal__body {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1rem 1.1rem;
  padding: 1.25rem;
  position: relative;
  align-items: start;
}
.cal-modal__media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  min-width: 0;
}
.cal-modal__poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--poster-ratio, 2 / 3);
  object-fit: cover;
  object-position: top center;
  background: var(--poster-slot-bg);
  align-self: start;
}
.cal-modal__poster[hidden] { display: none !important; }
.cal-modal__tickets {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
}
.cal-modal__tickets .ticket-cta,
.cal-modal__media > .ticket-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: .78rem;
  padding: .32rem .45rem;
}
.cal-modal__tickets .ticket-cta--logo,
.cal-modal__media > .ticket-cta--logo {
  padding: .28rem .4rem;
}
.cal-modal__tickets .ticket-cta__logo,
.cal-modal__media .ticket-cta__logo {
  height: 1rem;
  max-width: 100%;
}
.cal-modal__meta { margin: 0 0 .35rem; color: var(--muted); font-size: .9rem; }
.cal-modal__title { margin: 0 0 .75rem; font-family: var(--font-display); font-size: 1.65rem; }
.cal-modal__facts {
  list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .3rem;
  color: var(--muted); font-size: .92rem;
}
.cal-modal__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.cal-modal--day {
  max-width: min(420px, calc(100vw - 2rem));
  padding: 1.25rem 1.15rem 1.15rem;
}
.cal-modal--day .cal-modal__content { padding-right: .25rem; }
.cal-day-modal__list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .35rem;
  max-height: min(58dvh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cal-day-modal__empty { margin: .5rem 0 0; }
.cal-day-modal__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: .75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #faf6f1;
  padding: .55rem .65rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cal-day-modal__item.is-house {
  border-left: 4px solid #8a1830;
  background: #fff8f6;
}
.cal-day-modal__item.is-guest {
  border-left: 4px solid #a67c2a;
  background: #faf6f1;
}
.cal-day-modal__item.is-soldout { opacity: .72; }
.cal-day-modal__poster {
  width: 3.25rem;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}
.cal-day-modal__poster--empty {
  background: linear-gradient(145deg, rgba(107, 20, 40, 0.15), rgba(196, 163, 90, 0.12));
}
.cal-day-modal__info {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}
.cal-day-modal__time {
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  color: var(--ink);
}
.cal-day-modal__name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day-modal__meta { font-size: .78rem; }
.cal-day-modal__badge {
  align-self: flex-start;
  margin-top: .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a1830;
}
@media (hover: hover) and (pointer: fine) {
  .cal-day-modal__item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(74, 14, 28, 0.1);
    transform: translateY(-1px);
  }
}
.cal-day-modal__item:active {
  border-color: var(--gold);
  transform: scale(0.99);
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1rem; flex-direction: column; align-items: stretch; }
  body.nav-open .site-nav { display: flex; }
  .nav-dropdown__menu {
    position: static; display: none; padding: .15rem 0 .15rem .75rem;
  }
  .nav-dropdown__menu-inner {
    box-shadow: none; border: 0; background: transparent; padding: 0;
  }
  .nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
  .nav-dropdown:hover > .nav-dropdown__menu { display: none; }
  .nav-dropdown.is-open:hover > .nav-dropdown__menu,
  .nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
  .nav-dropdown__toggle { width: 100%; justify-content: space-between; min-height: 2.5rem; }
  .session-row { grid-template-columns: 1fr; }
  .show-detail, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78svh; }
  .cal-toolbar { flex-wrap: wrap; align-items: center; }
  .cal-toolbar__nav { flex-wrap: wrap; }
  .cal-filter { flex-wrap: wrap; }
  .cal-title { min-width: 0; margin: 0 0 0 .2rem; }
  .cal-month__cell { min-height: 4.8rem; padding: .25rem; }
  .cal-chip {
    font-size: .65rem;
    padding: .28rem .35rem;
    min-height: 2rem;
  }
  .cal-day__card {
    grid-template-columns: 4rem 1fr;
    padding: 1rem .9rem;
  }
  .cal-day__actions { grid-column: 1 / -1; }
  .cal-modal__body { grid-template-columns: minmax(120px, 140px) 1fr; gap: .85rem; }
  .cal-modal__media { max-width: none; }
  /* Mobilde kart hover lift kapalı; :active yeterli */
  .cal-day__card:active { transform: scale(0.99); }
}

@media (max-width: 480px) {
  .cal-month__cell { min-height: 3.75rem; padding: .2rem; gap: .12rem; }
  .cal-month__num { min-height: 2.5rem; min-width: 2.5rem; padding: .25rem; }
  .cal-month__more { min-height: 2.5rem; padding: .25rem .2rem; }
  .cal-chip {
    font-size: .62rem;
    padding: .22rem .28rem;
    min-height: 1.85rem;
  }
  .cal-modal__body { grid-template-columns: 1fr; }
  .cal-modal__media { max-width: 148px; }
  .cal-modal:modal,
  .cal-modal.cal-modal--fallback {
    max-width: calc(100vw - 1.25rem);
    max-height: min(88dvh, 88vh);
  }
}
