/* ── Base (ported from showsinaz.com base.html inline CSS) ────────────────── */

@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 400;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Regular.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 500;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Medium.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 600;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Semibold.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 700;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Bold.woff2")
    format("woff2");
}

:root {
  --bg: #000;
  --bg2: #090a0f;
  --border: #27272a;
  --surface: #18181b;
  --surface2: #3f3f46;
  --text: #a1a1aa;
  --text-h: #f4f4f5;
  --accent: #e5c890;
  --accent2: #8caaee;
  --accent-bg: rgba(229, 200, 144, 0.11);
  --featured: #a6d189;
  --featured-bg: rgba(166, 209, 137, 0.14);
  --button-text: #090a0f;
  --sans: "OpenAI Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", Menlo, monospace;
  --max-w: 880px;

  font: 16px / 160% var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-h);
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-h);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text);
  transition:
    background 0.15s,
    color 0.15s;
}

.site-count {
  font-size: 0.62em;
  color: var(--text);
  font-weight: 400;
  vertical-align: middle;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-bg);
  color: var(--accent);
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── Event cards ──────────────────────────────────────────────────────────── */

.event-grid {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  transition: border-color 0.15s;
  cursor: pointer;
}

.event-card:hover {
  border-color: var(--surface2);
  background: #000;
}

.ev-featured {
  border-color: rgba(166, 209, 137, 0.45);
}

.ev-featured:hover {
  border-color: var(--featured);
}

.ev-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.ev-body {
  min-width: 0;
}

.ev-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-meta {
  font-size: 13px;
  color: var(--text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-date {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.genre-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(229, 200, 144, 0.08);
  color: var(--accent);
}

/* ── Genre cloud ──────────────────────────────────────────────────────────── */

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text);
  font-size: 14px;
}

.genre-cloud-page {
  max-width: 980px;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.genre-cloud-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(9, 10, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.genre-cloud-item:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.genre-cloud-count {
  color: var(--text);
  font-size: 0.82em;
  margin-left: 6px;
  opacity: 0.6;
}

/* ── Ticket button ────────────────────────────────────────────────────────── */

.ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent2);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.ticket-btn:hover {
  opacity: 0.85;
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tab {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-search {
  width: 100%;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #000;
  color: var(--text-h);
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s;
}

.filter-search:focus {
  border-color: var(--accent);
}

.feat-toggle {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #000;
  color: var(--featured);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.feat-toggle.active {
  border-color: var(--featured);
  background: var(--featured-bg);
  color: var(--featured);
}

/* ── Event detail page ────────────────────────────────────────────────────── */

.detail-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-bottom: 32px;
  align-items: start;
}

.detail-poster {
  width: 200px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.detail-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.detail-meta {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.detail-meta strong {
  color: var(--text-h);
}

.detail-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    width: 100%;
    max-width: 280px;
  }
  .event-card {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }
}

/* ── Featured carousel ────────────────────────────────────────────────────── */

.feat-section {
  margin-bottom: 40px;
}

.feat-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-h);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.feat-card {
  border: 1px solid rgba(166, 209, 137, 0.45);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  transition: border-color 0.15s;
}

.feat-card:hover {
  border-color: var(--featured);
}

.feat-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--border);
}

.feat-body {
  padding: 12px;
}

.feat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-meta {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination button {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent2);
  color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination span {
  font-size: 13px;
  color: var(--text);
  padding: 0 8px;
}

/* ── Landing page ─────────────────────────────────────────────────────────── */

.landing {
  max-width: 560px;
  min-height: 100vh;
  padding-top: 18vh;
}

.landing-hero {
  margin-bottom: 36px;
}

.landing-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

.category-card {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 14px 0;
  text-decoration: none;
  transition: color 0.15s;
}

.category-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-h);
}

.category-card small {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.category-card:hover strong {
  color: var(--accent);
}

.category-card strong .muted-title {
  color: var(--surface2);
}

@media (max-width: 520px) {
  .landing {
    padding-top: 16vh;
  }
  .landing-title {
    font-size: 36px;
  }
  .landing-hero {
    margin-bottom: 44px;
  }
  .category-grid {
    gap: 10px;
  }
  .category-card {
    min-height: 92px;
    padding: 18px 0;
  }
  .category-card strong {
    font-size: 18px;
  }
  .category-card small {
    margin-top: 4px;
    font-size: 14px;
  }
}

/* ── Loading / empty states ───────────────────────────────────────────────── */

.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
  font-size: 15px;
}
