.main-content { width: calc(100% - 300px); min-width: 0; margin-left: 300px; padding: 32px; color: #fff; }
.calendar-shell { max-width: 1800px; margin: 0 auto; }
.event-hero { padding: 28px 30px; border: 2px solid #000; border-radius: 12px; background: rgba(124, 58, 237, 0.25); color: #fff; box-shadow: 8px 6px 24px rgba(0, 0, 0, 0.28); }
.eyebrow { color: #c084fc; font-size: 12px; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; }
.event-hero h1 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; color: #fff; }
.event-hero p { max-width: 780px; line-height: 1.6; color: #e2e8f0; }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 22px; color: #cbd5e1; font-size: 14px; }
.hero-bottom strong { color: #fff; }
.calendar-panel { margin-top: 22px; padding: 22px; border: 2px solid #000; border-radius: 12px; background: rgba(124, 58, 237, 0.25); box-shadow: 8px 6px 24px rgba(0, 0, 0, 0.28); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid rgba(180, 76, 255, .4); }
.filters label { display: flex; flex-direction: column; gap: 6px; color: #cbd5e1; font-size: 12px; font-weight: 800; }
.filters label:first-child { flex: 1; min-width: 190px; }
.filters input, .filters select, .month-picker { min-height: 42px; padding: 9px 12px; border: 1px solid #b44cff; border-radius: 6px; background: rgba(180, 76, 255, 0.2); color: #fff; font-size: 15px; }
button { font: inherit; }
.control { min-height: 42px; padding: 9px 15px; border: 1px solid #b44cff; border-radius: 6px; background: rgba(180, 76, 255, 0.2); color: #fff; font-weight: 700; cursor: pointer; }
.control:hover:not(:disabled) { background: rgba(180, 76, 255, 0.35); }
.control:disabled { opacity: .4; cursor: not-allowed; }
.control.selected, .primary-link { border-color: #b44cff; background: #b44cff; color: #000; }
:is(button, a, input, select):focus-visible { outline: 3px solid #b44cff; outline-offset: 3px; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; }
.month-controls, .view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.month-picker { font-size: 20px; font-weight: 800; min-width: 225px; }
.results { margin: 10px 0; color: #cbd5e1; font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0; font-size: 12px; font-weight: 700; color: #cbd5e1; }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--event-color); }
.cards { --event-color: #c084fc; --event-bg: rgba(192, 132, 252, 0.2); }
.sports { --event-color: #c084fc; --event-bg: rgba(192, 132, 252, 0.2); }
.mixed { --event-color: #c084fc; --event-bg: rgba(192, 132, 252, 0.2); }
.toys { --event-color: #c084fc; --event-bg: rgba(192, 132, 252, 0.2); }
.comics { --event-color: #c084fc; --event-bg: rgba(192, 132, 252, 0.2); }
.calendar-scroll { overflow-x: auto; border: 1px solid rgba(180, 76, 255, .4); border-radius: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 1050px; }
.weekday { padding: 12px; background: rgba(124, 58, 237, 0.3); color: #fff; font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.day { min-height: 175px; min-width: 0; padding: 9px; border-right: 1px solid rgba(180, 76, 255, .3); border-bottom: 1px solid rgba(180, 76, 255, .3); background: rgba(124, 58, 237, 0.15); color: #fff; }
.day:nth-child(7n) { border-right: none; }
.day.weekend { background: rgba(124, 58, 237, 0.2); }
.day.outside { background: rgba(124, 58, 237, 0.08); color: #94a3b8; }
.day.today { box-shadow: inset 0 0 0 2px #c084fc; }
.date-number { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; margin-bottom: 7px; font-size: 13px; font-weight: 800; color: #fff; }
.today .date-number { border-radius: 50%; background: #c084fc; color: #000; }
.event-chip { display: block; position: relative; width: 100%; margin: 0 0 9px; padding: 10px 9px; border: 1px solid rgba(180, 76, 255, .4); border-left: 4px solid #c084fc; border-radius: 6px; background: rgba(124, 58, 237, 0.2); color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.event-chip:hover, .event-chip:focus-visible { z-index: 1; transform: translateY(-3px); box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3); }
.event-chip strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; color: #fff; }
.event-chip small { display: block; margin-top: 5px; font-size: 11px; line-height: 1.35; color: #cbd5e1; }
.event-chip .event-time { color: #c084fc; font-weight: 800; }
.scroll-hint { margin: 8px 0; color: #94a3b8; font-size: 12px; }
.agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.agenda .event-chip { margin: 0; padding: 18px; }
.agenda .event-chip strong { font-size: 18px; }
.agenda .event-chip small { font-size: 14px; }
.empty { padding: 24px; border: 1px dashed rgba(180, 76, 255, .4); border-radius: 8px; background: rgba(124, 58, 237, 0.15); color: #cbd5e1; line-height: 1.6; }
.coverage { margin-top: 20px; padding: 20px 22px; border: 1px solid rgba(180, 76, 255, .4); border-radius: 8px; background: rgba(124, 58, 237, 0.15); font-size: 14px; color: #cbd5e1; line-height: 1.65; }
.coverage h2 { margin-bottom: 8px; font-size: 18px; color: #fff; }
.coverage a { color: #c084fc; font-weight: 700; }
.coverage p + p { margin-top: 10px; }
.event-dialog { width: min(660px, calc(100% - 24px)); max-height: 90vh; margin: auto; padding: 0; overflow-y: auto; border: 2px solid #000; border-radius: 14px; background: rgba(124, 58, 237, 0.25); color: #fff; box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4); }
.event-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; background: rgba(180, 76, 255, 0.3); color: #fff; border-bottom: 1px solid rgba(180, 76, 255, .4); }
.dialog-top .control { min-height: 36px; padding: 5px 12px; }
.dialog-body { padding: 24px; color: #fff; }
.dialog-body h2 { margin-bottom: 12px; font-size: 28px; line-height: 1.2; color: #fff; }
.dialog-body p { margin-bottom: 12px; line-height: 1.6; color: #e2e8f0; }
.detail-label { display: block; margin: 18px 0 6px; color: #c084fc; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 10px 12px; border-bottom: 1px solid rgba(180, 76, 255, .3); font-size: 14px; color: #cbd5e1; }
.hours-list li.selected-day { border-radius: 6px; background: rgba(180, 76, 255, 0.3); font-weight: 800; color: #fff; }
.primary-link { display: inline-block; padding: 12px 18px; border-radius: 6px; font-weight: 800; text-decoration: none; color: #c084fc; }
.dialog-foot { margin-top: 18px; color: #94a3b8; font-size: 12px; }
[hidden] { display: none !important; }
@media (min-width: 1800px) { .day { min-height: 200px; } .event-chip strong { font-size: 15px; } }
@media (max-width: 1000px) { .main-content { padding: 20px; } .calendar-panel { padding: 16px; } }
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { position: relative; top: auto; left: auto; width: calc(100% - 24px); height: auto; margin: 12px; padding: 10px 12px; overflow: visible; }
  .sidebar-logo { padding: 0 0 8px; }
  .sidebar-logo img { width: 110px; }
  .sidebar-menu { display: flex; gap: 6px; margin-top: 8px; padding-bottom: 6px; overflow-x: auto; }
  .sidebar-menu li { flex: 0 0 auto; margin: 0; }
  .sidebar-menu a { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
  .main-content { width: 100%; margin-left: 0; padding: 12px; }
  .event-hero { padding: 22px; }
  .calendar-panel { padding: 12px; }
  .filters label { flex: 1; min-width: 130px; }
  .filters input, .filters select { width: 100%; font-size: 16px; }
  .month-picker { min-width: 0; width: 185px; font-size: 17px; }
  .month-controls { gap: 5px; }
  .month-controls .control { padding: 9px 12px; }
  .dialog-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .event-chip { transition: none; } }
.day-more { display:block; padding:2px 0; border:0; background:transparent; color:#c084fc; font-size:11px; cursor:pointer; text-align:left; }
.coverage summary { cursor:pointer; font-weight:700; color: #c084fc; }
@media (min-width: 1001px) and (min-height: 650px) {
  .main-content { padding:16px 20px; }
  .calendar-shell { height:calc(100dvh - 32px); display:flex; flex-direction:column; gap:10px; }
  .event-hero { padding:12px 18px; flex:none; }
  body .event-hero h1 { font-size:26px; margin:3px 0 5px; }
  body .event-hero p { font-size:14px; line-height:1.4; max-width:none; }
  .hero-bottom { margin-top:7px; gap:8px 20px; font-size:12px; }
  .calendar-panel { margin-top:0; padding:10px 12px; min-height:0; flex:1; display:flex; flex-direction:column; }
  .filters { gap:8px; padding-bottom:8px; }
  body .filters label { font-size:12px; gap:2px; }
  body .filters input, body .filters select, .month-picker, body .control { min-height:32px; padding:4px 9px; font-size:14px; }
  .calendar-toolbar { margin:8px 0 4px; gap:8px; }
  .month-picker { min-width:190px; }
  .results, .legend, .scroll-hint { margin:3px 0; font-size:11px; }
  .legend { gap:4px 12px; }
  #calendar-view { flex:1; min-height:0; display:flex; flex-direction:column; }
  .calendar-scroll { flex:1; min-height:0; overflow:visible; }
  .calendar-grid { height:100%; min-width:0; grid-template-rows:24px repeat(var(--week-count, 6), minmax(0,1fr)); }
  .weekday { padding:4px; font-size:11px; }
  .day { min-height:0; padding:3px 5px; }
  .date-number { height:18px; min-width:18px; margin-bottom:2px; font-size:11px; }
  .calendar-grid .event-chip { padding:3px 5px; margin-bottom:2px; border-left-width:3px; }
  .calendar-grid .event-chip strong { font-size:11px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .calendar-grid .event-chip small { display:none; }
  .coverage { margin-top:5px; padding:4px 8px; font-size:11px; }
  .coverage[open], .agenda { overflow-y:auto; min-height:0; }
  .coverage[open] { max-height:150px; flex:none; }
  #empty-month { padding:4px; margin:3px 0; font-size:12px; }
}
@media (min-width: 1001px) and (min-height: 650px) {
  .calendar-shell { height:auto; min-height:calc(100dvh - 32px); }
  .calendar-panel { flex:none; }
  .calendar-scroll { flex:none; }
  .calendar-grid {
    height:auto;
    grid-template-rows:30px repeat(var(--week-count, 6), minmax(120px, 1fr));
  }
  .weekday { padding:6px; font-size:12px; }
  .day { padding:7px; }
  .date-number { height:24px; min-width:24px; margin-bottom:5px; font-size:13px; }
  .calendar-grid .event-chip { padding:7px; margin-bottom:5px; }
  .calendar-grid .event-chip strong {
    font-size:13px; line-height:1.35; white-space:normal;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2;
  }
  .calendar-grid .event-chip small { display:block; margin-top:3px; font-size:11px; }
  .calendar-grid .event-chip .event-time { display:none; }
  .day-more { font-size:12px; padding:3px 0; }
}
.day.has-events, .day.has-events.weekend {
  background: rgba(124, 58, 237, 0.35);
  box-shadow: inset 0 3px #c084fc;
}
.day.has-events .date-number { background:#c084fc; color:#000; border-radius:50%; }
.day.has-events.today { box-shadow:inset 0 0 0 2px #c084fc; }
.calendar-corner-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 10px; flex:none; }
.calendar-corner-nav strong { color:#c084fc; text-align:center; font-weight:700; }
.calendar-corner-nav button {
  min-height:38px; padding:7px 14px; border:1px solid #c084fc; border-radius:7px;
  background:rgba(192, 132, 252, 0.3); color:#fff; font-weight:700; cursor:pointer;
}
.calendar-corner-nav button:hover:not(:disabled) { background:#c084fc; color:#000; }
.calendar-corner-nav button:disabled { opacity:.4; cursor:not-allowed; }
@media (max-width:480px) { .calendar-corner-nav {gap:5px;} .calendar-corner-nav button {padding:7px 9px;font-size:12px;} .calendar-corner-nav strong {font-size:14px;} }
