.ticket-list{--ticket-pink:#ff4f98;--ticket-pink-dark:#f02f82;--ticket-light-pink:#fff0f6;--ticket-height:78px;--date-width:50px;--action-width:92px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%!important;max-width:none!important;position:relative;left:auto;transform:none;margin:-20px 0 0!important;padding:0;background:transparent!important;box-shadow:none!important}.ticket-list .ticket-item{display:flex!important;flex-direction:row;align-items:stretch;width:100%!important;max-width:none!important;min-height:var(--ticket-height);height:auto;margin:0!important;padding:0!important;background:#fff;border-radius:10px;box-shadow:0 3px 10px rgba(0,0,0,.08);overflow:hidden;box-sizing:border-box}.ticket-list .ticket-date{flex:0 0 var(--date-width);display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--date-width);min-height:var(--ticket-height);height:auto;margin:0!important;padding:0!important;background:#fff8fb;text-align:center;box-sizing:border-box}.ticket-list .ticket-month{display:block;margin:0!important;padding:0!important;font-size:10px;line-height:1;font-weight:700;color:#333}.ticket-list .ticket-day{display:block;margin:3px 0!important;padding:0!important;font-size:23px;line-height:1;font-weight:800;color:var(--ticket-pink)}.ticket-list .ticket-week{display:block;width:22px;margin:0!important;padding:3px 0 0!important;border-top:1px solid var(--ticket-pink);font-size:10px;line-height:1;font-weight:700;color:#333}.ticket-list .ticket-img{flex:0 0 auto;display:block;width:auto;height:var(--ticket-height);margin:0!important;padding:0!important;border:0!important;background:transparent;overflow:hidden;line-height:0;box-sizing:border-box}.ticket-list .ticket-img img{display:block!important;width:auto!important;height:var(--ticket-height)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;object-fit:contain!important;vertical-align:top;box-sizing:border-box}.ticket-list .ticket-body{flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:var(--ticket-height);height:auto;margin:0!important;padding:6px 10px!important;box-sizing:border-box}.ticket-list .ticket-status{display:inline-flex;align-items:center;justify-content:center;width:auto;margin:0 0 6px!important;padding:4px 9px!important;border-radius:999px;font-size:11px;line-height:1;font-weight:800;white-space:nowrap;box-sizing:border-box}.ticket-list .ticket-status.is-upcoming{background:var(--ticket-pink);color:#fff;box-shadow:0 2px 6px rgba(255,79,152,.2)}.ticket-list .ticket-status.is-today{background:var(--ticket-pink-dark);color:#fff;box-shadow:0 2px 8px rgba(240,47,130,.28)}.ticket-list .ticket-status.is-ended{background:#e9e9e9;color:#666;box-shadow:none}.ticket-list .ticket-title{display:block;width:100%;margin:0!important;padding:0!important;font-size:15px;line-height:1.15;font-weight:700;color:#222;white-space:pre-line;overflow:visible;overflow-wrap:break-word}.ticket-list .ticket-action{flex:0 0 var(--action-width);display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--action-width);min-height:var(--ticket-height);height:auto;margin:0!important;padding:0 8px!important;background:var(--ticket-light-pink);color:#333!important;text-decoration:none!important;box-sizing:border-box;transition:background .2s ease,color .2s ease}.ticket-list .ticket-action-label{display:block;margin:0 0 4px;padding:0;font-size:9px;line-height:1;font-weight:800;letter-spacing:.12em;color:var(--ticket-pink)}.ticket-list .ticket-action-text{display:block;margin:0;padding:0;font-size:11px;line-height:1.2;font-weight:700;color:#333;white-space:nowrap}.ticket-list a.ticket-action:hover{background:var(--ticket-pink)}.ticket-list a.ticket-action:hover .ticket-action-label,.ticket-list a.ticket-action:hover .ticket-action-text{color:#fff}.ticket-list .ticket-item.is-ended .ticket-action{background:#f2f2f2;cursor:default}.ticket-list .ticket-item.is-ended .ticket-action-label,.ticket-list .ticket-item.is-ended .ticket-action-text{color:#999}@media(max-width:959px){.ticket-list{--ticket-height:76px;--date-width:48px;--action-width:78px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ticket-list .ticket-month{font-size:9px}.ticket-list .ticket-day{font-size:22px}.ticket-list .ticket-week{width:21px;font-size:9px}.ticket-list .ticket-body{padding:5px 8px!important}.ticket-list .ticket-status{margin-bottom:5px!important;padding:3px 7px!important;font-size:9px}.ticket-list .ticket-title{font-size:13px;line-height:1.15}.ticket-list .ticket-action-label{font-size:8px}.ticket-list .ticket-action-text{font-size:8px}}@media(max-width:600px){.ticket-list{--ticket-height:78px;--date-width:48px;--action-width:72px;width:100%!important;max-width:none!important;grid-template-columns:1fr;gap:8px}.ticket-list .ticket-item{border-radius:9px}.ticket-list .ticket-body{padding:5px 7px!important}.ticket-list .ticket-status{margin-bottom:5px!important;padding:3px 7px!important;font-size:9px}.ticket-list .ticket-title{font-size:13px;line-height:1.15}.ticket-list .ticket-action{padding:0 4px!important}.ticket-list .ticket-action-label{font-size:7px}.ticket-list .ticket-action-text{font-size:8px}}

/* v0.5.8 public filter / sort */
.fanfun-tickets-public{width:100%;max-width:none;margin:0;padding:0}.ticket-public-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:-20px 0 30px;padding:0;box-sizing:border-box}.ticket-filter-buttons{display:flex;gap:6px;flex-wrap:wrap}.ticket-filter-buttons button{appearance:none;border:1px solid rgba(255,79,152,.35);background:rgba(255,255,255,.78);color:#444;border-radius:999px;padding:6px 12px;font-size:11px;line-height:1;font-weight:700;cursor:pointer}.ticket-filter-buttons button.is-active{background:#ff4f98;border-color:#ff4f98;color:#fff}.ticket-sort-label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700;color:#555}.ticket-sort-label select{min-height:30px;border:1px solid rgba(0,0,0,.14);border-radius:7px;background:rgba(255,255,255,.88);padding:3px 24px 3px 8px;font-size:11px;color:#333}.fanfun-tickets-public .ticket-list{margin:0!important}.fanfun-tickets-public .ticket-title{line-height:1.08!important;white-space:pre-line!important}.ticket-empty{text-align:center;margin:20px 0;font-weight:700;color:#555}
@media(max-width:600px){.ticket-public-controls{align-items:flex-start;margin:-20px 0 30px;gap:8px}.ticket-filter-buttons{gap:4px}.ticket-filter-buttons button{padding:6px 9px;font-size:9px}.ticket-sort-label{flex-direction:column;align-items:flex-start;gap:3px;font-size:8px}.ticket-sort-label select{max-width:132px;min-height:28px;font-size:9px;padding-left:6px}.fanfun-tickets-public .ticket-title{line-height:1.08!important}}


/* FANFUN Tickets v0.5.8
   Compact one-line public filter/sort toolbar on desktop and mobile.
   Keeps the existing card design intact. */
.fanfun-tickets-controls,
.fanfun-tickets-toolbar,
.fanfun-tickets-public-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 14px 0 14px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.fanfun-tickets-filters,
.fanfun-ticket-filters,
.fanfun-tickets-filter-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fanfun-tickets-sort,
.fanfun-ticket-sort,
.fanfun-tickets-sort-wrap {
  display: flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The select already explains what it does, so hide a separate "並び順" label. */
.fanfun-tickets-sort label,
.fanfun-ticket-sort label,
.fanfun-tickets-sort-label,
.fanfun-tickets-controls .sort-label,
.fanfun-tickets-toolbar .sort-label {
  display: none !important;
}

.fanfun-tickets-controls button,
.fanfun-tickets-toolbar button,
.fanfun-tickets-public-controls button {
  min-height: 36px !important;
  margin: 0 !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.fanfun-tickets-controls select,
.fanfun-tickets-toolbar select,
.fanfun-tickets-public-controls select {
  width: auto !important;
  max-width: 190px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 6px 32px 6px 11px !important;
  border-radius: 10px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Pull the first card naturally toward the toolbar without changing card styling. */
.fanfun-tickets-controls + .ticket-list,
.fanfun-tickets-toolbar + .ticket-list,
.fanfun-tickets-public-controls + .ticket-list {
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .fanfun-tickets-controls,
  .fanfun-tickets-toolbar,
  .fanfun-tickets-public-controls {
    gap: 5px !important;
    margin: 12px 0 12px !important;
  }

  .fanfun-tickets-filters,
  .fanfun-ticket-filters,
  .fanfun-tickets-filter-buttons {
    gap: 4px !important;
  }

  .fanfun-tickets-controls button,
  .fanfun-tickets-toolbar button,
  .fanfun-tickets-public-controls button {
    min-height: 32px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  .fanfun-tickets-controls select,
  .fanfun-tickets-toolbar select,
  .fanfun-tickets-public-controls select {
    flex: 0 1 145px !important;
    max-width: 145px !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 5px 25px 5px 8px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Restore the compact pre-filter vertical rhythm:
   rainbow line -> controls -> first card. */
.ticket-public-controls,
.fanfun-tickets-controls,
.fanfun-tickets-toolbar,
.fanfun-tickets-public-controls {
  margin-top: 7px !important;
  margin-bottom: 7px !important;
}

.ticket-public-controls + .ticket-list,
.fanfun-tickets-controls + .ticket-list,
.fanfun-tickets-toolbar + .ticket-list,
.fanfun-tickets-public-controls + .ticket-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Prevent theme/block gap rules from reopening space around the toolbar. */
.ticket-public-controls {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 600px) {
  .ticket-public-controls,
  .fanfun-tickets-controls,
  .fanfun-tickets-toolbar,
  .fanfun-tickets-public-controls {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Tighten only the space from the TICKETS rainbow rule to the public controls.
   Keep controls -> first card spacing unchanged. */
.ticket-public-controls,
.fanfun-tickets-controls,
.fanfun-tickets-toolbar,
.fanfun-tickets-public-controls {
  margin-top: 2px !important;
}

@media (max-width: 600px) {
  .ticket-public-controls,
  .fanfun-tickets-controls,
  .fanfun-tickets-toolbar,
  .fanfun-tickets-public-controls {
    margin-top: 2px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Reduce the actual gap below the TICKETS heading/rainbow rule.
   Keep controls -> cards spacing unchanged. */

/* Common wrappers immediately before the public controls */
.ticket-section-title,
.fanfun-tickets-heading,
.fanfun-tickets-title,
.fanfun-tickets-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* If the rainbow rule is made with a pseudo element or border, prevent
   the following controls from inheriting a large block gap. */
.ticket-public-controls,
.fanfun-tickets-controls,
.fanfun-tickets-toolbar,
.fanfun-tickets-public-controls {
  margin-top: -8px !important;
}

/* WordPress/SWELL may apply block-gap between sibling elements. */
.fanfun-tickets > .ticket-public-controls,
.fanfun-tickets-block > .ticket-public-controls,
.wp-block-fanfun-tickets-tickets .ticket-public-controls {
  margin-block-start: 0 !important;
  margin-top: -8px !important;
}

@media (max-width: 600px) {
  .ticket-public-controls,
  .fanfun-tickets-controls,
  .fanfun-tickets-toolbar,
  .fanfun-tickets-public-controls,
  .fanfun-tickets > .ticket-public-controls,
  .fanfun-tickets-block > .ticket-public-controls,
  .wp-block-fanfun-tickets-tickets .ticket-public-controls {
    margin-top: -8px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Align public filter/sort controls with the ticket card edges.
   Keep the rainbow rule full width and preserve current vertical spacing. */
.ticket-public-controls,
.fanfun-tickets-controls,
.fanfun-tickets-toolbar,
.fanfun-tickets-public-controls {
  width: calc(100% - 32px) !important;
  margin-left: 16px !important;
  margin-right: 16px !important;
  box-sizing: border-box !important;
}

@media (max-width: 600px) {
  .ticket-public-controls,
  .fanfun-tickets-controls,
  .fanfun-tickets-toolbar,
  .fanfun-tickets-public-controls {
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Give the sort dropdown arrow a little more breathing room on the right.
   No other layout changes. */
.ticket-public-controls select,
.fanfun-tickets-controls select,
.fanfun-tickets-toolbar select,
.fanfun-tickets-public-controls select {
  padding-right: 42px !important;
}

@media (max-width: 600px) {
  .ticket-public-controls select,
  .fanfun-tickets-controls select,
  .fanfun-tickets-toolbar select,
  .fanfun-tickets-public-controls select {
    padding-right: 34px !important;
  }
}

/* v0.5.8: countdown on left, event date above title */
.ticket-list .ticket-countdown,
.fanfun-live-preview .ticket-countdown {
  display:flex !important; flex-direction:column; align-items:center; justify-content:center;
}
.ticket-list .ticket-countdown-label,
.fanfun-live-preview .ticket-countdown-label {
  font-size:9px; line-height:1.05; font-weight:700; color:#333; white-space:nowrap;
}
.ticket-list .ticket-countdown-number,
.fanfun-live-preview .ticket-countdown-number {
  display:block; margin:3px 0 2px; font-size:23px; line-height:1; font-weight:800;
  color:var(--ticket-pink,#ff4f98);
}
.ticket-list .ticket-countdown-unit,
.fanfun-live-preview .ticket-countdown-unit {
  display:block; width:22px; padding-top:3px; border-top:1px solid var(--ticket-pink,#ff4f98);
  font-size:10px; line-height:1; font-weight:700; color:#333; text-align:center;
}
.ticket-list .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  width:100%; margin:0 0 4px !important; padding:0 !important;
  font-size:11px; line-height:1.15; font-weight:700; color:#555;
}
.ticket-list .ticket-title,
.fanfun-live-preview .ticket-title { line-height:1.15 !important; }
@media(max-width:600px){
  .ticket-list .ticket-countdown-label,.fanfun-live-preview .ticket-countdown-label{font-size:8px}
  .ticket-list .ticket-countdown-number,.fanfun-live-preview .ticket-countdown-number{font-size:21px}
  .ticket-list .ticket-countdown-unit,.fanfun-live-preview .ticket-countdown-unit{font-size:9px}
  .ticket-list .ticket-event-date,.fanfun-live-preview .ticket-event-date{font-size:10px;margin-bottom:3px!important}
}


/* FANFUN Tickets v0.5.8
   Ticket cards use the full available column width on desktop and mobile.
   Heading/rainbow rule/filter positions remain unchanged. */
.ticket-list {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ticket-list .ticket-item {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Give the gained width primarily to the date/title body. */
.ticket-list .ticket-body {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

@media (max-width: 600px) {
  .ticket-list {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ticket-list .ticket-item {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* FANFUN Tickets v0.5.8
   Mobile only: make the ticket action narrower and give more room to title. */
@media (max-width: 600px) {
  .ticket-list {
    --action-width: 72px !important;
  }

  .ticket-list .ticket-action {
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .ticket-list .ticket-action-label {
    font-size: 7px !important;
    letter-spacing: .08em !important;
    margin-bottom: 3px !important;
  }

  .ticket-list .ticket-action-text {
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  .ticket-list .ticket-body {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 7px !important;
    padding-right: 5px !important;
  }

  .ticket-list .ticket-title {
    font-size: 13px !important;
    line-height: 1.1 !important;
  }
}


/* FANFUN Tickets v0.5.8
   Mobile: compact purchase area + wider single-line title.
   Title size is responsive with clamp(). Desktop remains unchanged. */
@media (max-width: 600px) {
  .ticket-list {
    --action-width: 50px !important;
    --date-width: 58px !important;
  }

  .ticket-list .ticket-date,
  .ticket-list .ticket-countdown {
    flex: 0 0 58px !important;
    width: 58px !important;
  }

  .ticket-list .ticket-img,
  .ticket-list .ticket-img img {
    height: var(--ticket-height) !important;
  }

  .ticket-list .ticket-action {
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    padding: 0 2px !important;
  }

  /* Mobile purchase control is intentionally compact. */
  .ticket-list .ticket-action-label {
    font-size: 6px !important;
    letter-spacing: .04em !important;
    margin-bottom: 2px !important;
  }

  .ticket-list .ticket-action-text {
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .ticket-list .ticket-action-text::before {
    content: "購入→";
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800;
  }

  .ticket-list .ticket-body {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 6px !important;
    padding-right: 3px !important;
  }

  .ticket-list .ticket-event-date {
    font-size: 9px !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
  }

  .ticket-list .ticket-title {
    /* Responsive range: adjust these 10px / 2.8vw / 13px values later if desired. */
    font-size: clamp(10px, 2.8vw, 13px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .ticket-list .ticket-countdown-label { font-size: 7px !important; }
  .ticket-list .ticket-countdown-number { font-size: 20px !important; }
  .ticket-list .ticket-countdown-unit { font-size: 8px !important; }
}


/* FANFUN Tickets v0.5.8
   Mobile balance:
   - narrower countdown column
   - more room for title
   - slightly larger event date
   - keep compact purchase area */
@media (max-width: 600px) {
  .ticket-list {
    --date-width: 48px !important;
    --action-width: 50px !important;
  }

  .ticket-list .ticket-date,
  .ticket-list .ticket-countdown {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
  }

  .ticket-list .ticket-countdown-label {
    font-size: 6.5px !important;
    letter-spacing: -0.02em !important;
  }

  .ticket-list .ticket-countdown-number {
    font-size: 20px !important;
    margin-top: 3px !important;
    margin-bottom: 2px !important;
  }

  .ticket-list .ticket-countdown-unit {
    width: 19px !important;
    font-size: 8px !important;
  }

  .ticket-list .ticket-body {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 5px !important;
    padding-right: 2px !important;
  }

  .ticket-list .ticket-event-date {
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
  }

  .ticket-list .ticket-title {
    font-size: clamp(10px, 2.8vw, 13px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }
}


/* FANFUN Tickets v0.5.8
   Mobile only: make the countdown column even narrower
   and return that space to the title area. */
@media (max-width: 600px) {
  .ticket-list {
    --date-width: 40px !important;
  }

  .ticket-list .ticket-date,
  .ticket-list .ticket-countdown {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
  }

  .ticket-list .ticket-countdown-label {
    font-size: 6px !important;
    letter-spacing: -0.04em !important;
  }

  .ticket-list .ticket-countdown-number {
    font-size: 19px !important;
  }

  .ticket-list .ticket-countdown-unit {
    width: 17px !important;
    font-size: 8px !important;
  }

  .ticket-list .ticket-body {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 4px !important;
    padding-right: 1px !important;
  }
}


/* FANFUN Tickets v0.5.8
   Preserve manually entered line breaks in ticket titles.
   Keep responsive clamp sizing and compact mobile layout. */
.ticket-list .ticket-title,
.fanfun-live-preview .ticket-title {
  white-space: pre-line !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

@media (max-width: 600px) {
  .ticket-list .ticket-title,
  .fanfun-live-preview .ticket-title {
    font-size: clamp(10px, 2.8vw, 13px) !important;
    line-height: 1.05 !important;
    white-space: pre-line !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }
}


/* FANFUN Tickets v0.5.8
   Mobile title tuning:
   - preserve manual line breaks
   - slightly smaller responsive title
   - tighter spacing
   - maximize usable title width
   - avoid breaking short title segments awkwardly */
@media (max-width: 600px) {
  .ticket-list .ticket-body,
  .fanfun-live-preview .ticket-body {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 0 !important;
  }

  .ticket-list .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    font-size: 10.5px !important;
    line-height: 1.05 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
  }

  .ticket-list .ticket-title,
  .fanfun-live-preview .ticket-title {
    font-size: clamp(9px, 2.55vw, 12px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
    white-space: pre-line !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
}


/* FANFUN Tickets v0.5.8
   Mobile readability:
   - event date becomes a strong pink badge
   - restore comfortable title line-height
   - preserve manual title line breaks
   - keep compact countdown/action columns and wide title area */
@media (max-width: 600px) {
  .ticket-list .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 5px 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #ff4f98 !important;
    color: #fff !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .ticket-list .ticket-title,
  .fanfun-live-preview .ticket-title {
    font-size: clamp(9px, 2.55vw, 12px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    white-space: pre-line !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .ticket-list .ticket-body,
  .fanfun-live-preview .ticket-body {
    justify-content: center !important;
  }
}

/* FANFUN Tickets v0.5.8 */
.ticket-list .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 align-self:flex-start!important;width:auto!important;max-width:100%!important;
 margin:0 0 5px!important;padding:5px 10px!important;border-radius:999px!important;
 background:#ff4f98!important;color:#fff!important;font-weight:800!important;
 line-height:1!important;white-space:nowrap!important;box-sizing:border-box!important;
}
.ticket-list .ticket-filter-btn.is-active,
.ticket-list .ticket-filter-btn.active,
.ticket-list .ticket-filter-btn[aria-pressed="true"],
.fanfun-live-preview .ticket-filter-btn.is-active,
.fanfun-live-preview .ticket-filter-btn.active,
.fanfun-live-preview .ticket-filter-btn[aria-pressed="true"],
.ticket-list .fanfun-filter-btn.is-active,
.ticket-list .fanfun-filter-btn.active,
.ticket-list .fanfun-filter-btn[aria-pressed="true"],
.fanfun-live-preview .fanfun-filter-btn.is-active,
.fanfun-live-preview .fanfun-filter-btn.active,
.fanfun-live-preview .fanfun-filter-btn[aria-pressed="true"] {
 background:#74747d!important;border-color:#74747d!important;color:#fff!important;
}
@media(min-width:601px){
 .ticket-list .ticket-event-date,.fanfun-live-preview .ticket-event-date{
  font-size:13px!important;padding:5px 11px!important;
 }
}
@media(max-width:600px){
 .ticket-list .ticket-event-date,.fanfun-live-preview .ticket-event-date{
  font-size:10.5px!important;padding:4px 8px!important;
 }
}

/* FANFUN Tickets v0.5.8
   - Actual public filter buttons: selected = gray
   - Date is styled as a calendar label, not a control button
   - Month/day gap removed in PHP output
*/

/* Public filter buttons */
.fanfun-tickets-public .ticket-filter-buttons button {
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(0,0,0,.16) !important;
  color: #666 !important;
}
.fanfun-tickets-public .ticket-filter-buttons button.is-active {
  background: #74747d !important;
  border-color: #74747d !important;
  color: #fff !important;
}

/* Date: calendar-style information label */
.fanfun-tickets-public .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  display: inline-flex !important;
  align-items: stretch !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 0 5px 0 !important;
  overflow: hidden !important;
  border: 1.5px solid #ff4f98 !important;
  border-radius: 7px !important;
  background: #fff7fb !important;
  color: #3b2b34 !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(255,79,152,.10) !important;
}
.fanfun-tickets-public .ticket-event-date::before,
.fanfun-live-preview .ticket-event-date::before {
  content: "開催日";
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
  padding: 5px 7px;
  background: #ff4f98;
  color: #fff;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .03em;
}
.fanfun-tickets-public .ticket-event-date {
  padding-right: 8px !important;
}

@media (max-width:600px) {
  .fanfun-tickets-public .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    border-radius: 6px !important;
    font-size: 10.5px !important;
  }
  .fanfun-tickets-public .ticket-event-date::before,
  .fanfun-live-preview .ticket-event-date::before {
    margin-right: 5px;
    padding: 4px 5px;
  }
  .fanfun-tickets-public .ticket-event-date {
    padding-right: 6px !important;
  }
}

/* FANFUN Tickets v0.5.8: vertically balance date + title */
.ticket-list .ticket-body,
.fanfun-tickets-public .ticket-body,
.fanfun-live-preview .ticket-body { justify-content:center!important; }

.ticket-list .ticket-event-date,
.fanfun-tickets-public .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  margin-top:0!important;
  margin-bottom:7px!important;
}
@media(max-width:600px){
 .ticket-list .ticket-event-date,
 .fanfun-tickets-public .ticket-event-date,
 .fanfun-live-preview .ticket-event-date { margin-bottom:5px!important; }
}

/* FANFUN Tickets v0.5.8
   - Balance date + title vertically inside content area
   - Purchase area uses soft lavender, distinct from pink date information
   - Preserve card/image/countdown dimensions
*/

/* Content column: add real vertical breathing room rather than relying only on justify-content */
.ticket-list .ticket-body,
.fanfun-tickets-public .ticket-body,
.fanfun-live-preview .ticket-body {
  justify-content: center !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}

.ticket-list .ticket-event-date,
.fanfun-tickets-public .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

/* Purchase/action column: soft lavender background */
.ticket-list .ticket-action,
.ticket-list .ticket-link,
.ticket-list .ticket-cta,
.fanfun-tickets-public .ticket-action,
.fanfun-tickets-public .ticket-link,
.fanfun-tickets-public .ticket-cta,
.fanfun-live-preview .ticket-action,
.fanfun-live-preview .ticket-link,
.fanfun-live-preview .ticket-cta {
  background: #f1e3fa !important;
}

/* Clickable purchase text/link: a little stronger than the area, but still pastel */
.ticket-list .ticket-action a,
.ticket-list .ticket-link a,
.ticket-list .ticket-cta a,
.fanfun-tickets-public .ticket-action a,
.fanfun-tickets-public .ticket-link a,
.fanfun-tickets-public .ticket-cta a,
.fanfun-live-preview .ticket-action a,
.fanfun-live-preview .ticket-link a,
.fanfun-live-preview .ticket-cta a {
  color: #9b55c8 !important;
  font-weight: 800 !important;
}

@media (max-width:600px) {
  .ticket-list .ticket-body,
  .fanfun-tickets-public .ticket-body,
  .fanfun-live-preview .ticket-body {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .ticket-list .ticket-event-date,
  .fanfun-tickets-public .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    margin-bottom: 5px !important;
  }
}

/* Detected action selectors */
.ticket-list .ticket-action,
.fanfun-tickets-public .ticket-action,
.fanfun-live-preview .ticket-action,
.ticket-list .ticket-action-label,
.fanfun-tickets-public .ticket-action-label,
.fanfun-live-preview .ticket-action-label,
.ticket-list .ticket-action-text,
.fanfun-tickets-public .ticket-action-text,
.fanfun-live-preview .ticket-action-text{background:#f1e3fa!important;}

/* FANFUN Tickets v0.5.8
   1) Vertically center the date text inside the outlined date badge.
   2) Vertically center the date+title group in the white content area.
   Purchase-area colors and card dimensions remain unchanged.
*/

/* White content column */
.ticket-list .ticket-body,
.fanfun-tickets-public .ticket-body,
.fanfun-live-preview .ticket-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  height: 100% !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Whole date badge */
.ticket-list .ticket-event-date,
.fanfun-tickets-public .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  min-height: 34px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

/* Every direct part of the badge, including "開催日" and "12月5日（土）" */
.ticket-list .ticket-event-date > *,
.fanfun-tickets-public .ticket-event-date > *,
.fanfun-live-preview .ticket-event-date > * {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

/* In case the date value has its own common class */
.ticket-list .ticket-event-date .ticket-date-value,
.ticket-list .ticket-event-date .date-value,
.fanfun-tickets-public .ticket-event-date .ticket-date-value,
.fanfun-tickets-public .ticket-event-date .date-value,
.fanfun-live-preview .ticket-event-date .ticket-date-value,
.fanfun-live-preview .ticket-event-date .date-value {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media(max-width:600px){
  .ticket-list .ticket-event-date,
  .fanfun-tickets-public .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    min-height: 30px !important;
    margin-bottom: 5px !important;
  }
}

/* FANFUN Tickets v0.5.8
   Refined date/content composition:
   - compact date row, not a large outlined pseudo-button
   - "開催日" remains the pink label
   - actual date reads as plain bold information
   - comfortable spacing before title/player
   - remove forced full-height stretching from v0.5.4
*/

/* Content column: natural compact group, visually centered without stretching children */
.ticket-list .ticket-body,
.fanfun-tickets-public .ticket-body,
.fanfun-live-preview .ticket-body {
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  height:auto !important;
  min-height:100% !important;
  padding-top:7px !important;
  padding-bottom:7px !important;
  box-sizing:border-box !important;
}

/* Date row becomes a compact information row */
.ticket-list .ticket-event-date,
.fanfun-tickets-public .ticket-event-date,
.fanfun-live-preview .ticket-event-date {
  display:inline-flex !important;
  align-items:center !important;
  align-self:flex-start !important;
  width:auto !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 0 6px 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#222 !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

/* Never stretch the pieces of the date row */
.ticket-list .ticket-event-date > *,
.fanfun-tickets-public .ticket-event-date > *,
.fanfun-live-preview .ticket-event-date > * {
  align-self:auto !important;
  height:auto !important;
  min-height:0 !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  line-height:1.15 !important;
  vertical-align:middle !important;
}

/* First item = compact pink "開催日" label */
.ticket-list .ticket-event-date > :first-child,
.fanfun-tickets-public .ticket-event-date > :first-child,
.fanfun-live-preview .ticket-event-date > :first-child {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:25px !important;
  padding:3px 9px !important;
  margin-right:8px !important;
  border-radius:6px !important;
  background:#ff4f98 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}

/* Remaining item(s) = actual date, plain bold text */
.ticket-list .ticket-event-date > :not(:first-child),
.fanfun-tickets-public .ticket-event-date > :not(:first-child),
.fanfun-live-preview .ticket-event-date > :not(:first-child),
.ticket-list .ticket-event-date .ticket-date-value,
.ticket-list .ticket-event-date .date-value,
.fanfun-tickets-public .ticket-event-date .ticket-date-value,
.fanfun-tickets-public .ticket-event-date .date-value,
.fanfun-live-preview .ticket-event-date .ticket-date-value,
.fanfun-live-preview .ticket-event-date .date-value {
  display:inline-flex !important;
  align-items:center !important;
  min-height:25px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#222 !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  box-sizing:border-box !important;
}

/* Title/player should remain compact and readable */
.ticket-list .ticket-title,
.fanfun-tickets-public .ticket-title,
.fanfun-live-preview .ticket-title {
  margin-top:0 !important;
  margin-bottom:0 !important;
  line-height:1.12 !important;
}

/* Mobile: same hierarchy, slightly tighter */
@media(max-width:600px){
  .ticket-list .ticket-body,
  .fanfun-tickets-public .ticket-body,
  .fanfun-live-preview .ticket-body {
    padding-top:5px !important;
    padding-bottom:5px !important;
  }
  .ticket-list .ticket-event-date,
  .fanfun-tickets-public .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    margin-bottom:4px !important;
  }
  .ticket-list .ticket-event-date > :first-child,
  .fanfun-tickets-public .ticket-event-date > :first-child,
  .fanfun-live-preview .ticket-event-date > :first-child {
    min-height:21px !important;
    padding:2px 7px !important;
    margin-right:6px !important;
    font-size:10px !important;
  }
  .ticket-list .ticket-event-date > :not(:first-child),
  .fanfun-tickets-public .ticket-event-date > :not(:first-child),
  .fanfun-live-preview .ticket-event-date > :not(:first-child),
  .ticket-list .ticket-event-date .ticket-date-value,
  .ticket-list .ticket-event-date .date-value,
  .fanfun-tickets-public .ticket-event-date .ticket-date-value,
  .fanfun-tickets-public .ticket-event-date .date-value,
  .fanfun-live-preview .ticket-event-date .ticket-date-value,
  .fanfun-live-preview .ticket-event-date .date-value {
    min-height:21px !important;
    font-size:12px !important;
  }
}

/* FANFUN Tickets v0.5.8
   Make the date value read as a subtle floating paper/card.
   Layout, sizing and purchase-area colors remain unchanged.
*/
.ticket-list .ticket-event-date > :not(:first-child),
.fanfun-tickets-public .ticket-event-date > :not(:first-child),
.fanfun-live-preview .ticket-event-date > :not(:first-child),
.ticket-list .ticket-event-date .ticket-date-value,
.ticket-list .ticket-event-date .date-value,
.fanfun-tickets-public .ticket-event-date .ticket-date-value,
.fanfun-tickets-public .ticket-event-date .date-value,
.fanfun-live-preview .ticket-event-date .ticket-date-value,
.fanfun-live-preview .ticket-event-date .date-value {
  background:#fff !important;
  border-radius:4px !important;
  box-shadow:0 2px 5px rgba(48, 38, 56, .20) !important;
}

/* FANFUN Tickets v0.5.8
   Date value only: subtle paper-like distinction.
   No layout/card/action/filter changes.
*/
.ticket-list .ticket-event-date > :not(:first-child),
.fanfun-tickets-public .ticket-event-date > :not(:first-child),
.fanfun-live-preview .ticket-event-date > :not(:first-child),
.ticket-list .ticket-event-date .ticket-date-value,
.ticket-list .ticket-event-date .date-value,
.fanfun-tickets-public .ticket-event-date .ticket-date-value,
.fanfun-tickets-public .ticket-event-date .date-value,
.fanfun-live-preview .ticket-event-date .ticket-date-value,
.fanfun-live-preview .ticket-event-date .date-value {
  background:#fff7fa !important;
  border:1px solid rgba(255,79,152,.28) !important;
  border-radius:5px !important;
  box-shadow:0 2px 5px rgba(66,45,60,.16) !important;
  padding-left:8px !important;
  padding-right:8px !important;
}

/* FANFUN Tickets v0.5.8
   Date-stamp treatment:
   - remove paper/card/shadow treatment from the date value
   - keep compact pink "開催日" label
   - date is plain bold text with a short pink underline
   - no other layout, card, filter, image or purchase-area changes
*/
.ticket-list .ticket-event-date > :not(:first-child),
.fanfun-tickets-public .ticket-event-date > :not(:first-child),
.fanfun-live-preview .ticket-event-date > :not(:first-child),
.ticket-list .ticket-event-date .ticket-date-value,
.ticket-list .ticket-event-date .date-value,
.fanfun-tickets-public .ticket-event-date .ticket-date-value,
.fanfun-tickets-public .ticket-event-date .date-value,
.fanfun-live-preview .ticket-event-date .ticket-date-value,
.fanfun-live-preview .ticket-event-date .date-value {
  position:relative !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 2px 4px 2px !important;
  color:#222 !important;
  font-weight:800 !important;
}

/* short stamp-like underline */
.ticket-list .ticket-event-date > :not(:first-child)::after,
.fanfun-tickets-public .ticket-event-date > :not(:first-child)::after,
.fanfun-live-preview .ticket-event-date > :not(:first-child)::after,
.ticket-list .ticket-event-date .ticket-date-value::after,
.ticket-list .ticket-event-date .date-value::after,
.fanfun-tickets-public .ticket-event-date .ticket-date-value::after,
.fanfun-tickets-public .ticket-event-date .date-value::after,
.fanfun-live-preview .ticket-event-date .ticket-date-value::after,
.fanfun-live-preview .ticket-event-date .date-value::after {
  content:"" !important;
  position:absolute !important;
  left:2px !important;
  bottom:0 !important;
  width:72% !important;
  height:2px !important;
  border-radius:999px !important;
  background:#ff4f98 !important;
  opacity:.72 !important;
}

/* FANFUN Tickets v0.6.1
   1) 「開催まで ○日」を濃いめの水色に（開催済みは従来どおり）
   2) PC表示のみ: カードの縦幅を固定し、日付行＋タイトル＋選手名（最大3行）が収まるよう
      文字を少し小さくして上下余白を調整。スマホ表示は変更なし。
*/
.ticket-list .ticket-item:not(.is-ended) .ticket-countdown-number,
.fanfun-live-preview:not(.is-ended) .ticket-countdown-number {
  color:#0b8fd6 !important;
}
.ticket-list .ticket-item:not(.is-ended) .ticket-countdown-unit,
.fanfun-live-preview:not(.is-ended) .ticket-countdown-unit {
  border-top-color:#0b8fd6 !important;
}

@media (min-width:601px) {
  .ticket-list .ticket-item,
  .fanfun-live-preview {
    height:var(--ticket-height) !important;
    min-height:var(--ticket-height) !important;
    max-height:var(--ticket-height) !important;
  }
  .ticket-list .ticket-body,
  .fanfun-live-preview .ticket-body {
    height:100% !important;
    min-height:0 !important;
    padding-top:4px !important;
    padding-bottom:4px !important;
    justify-content:center !important;
    overflow:hidden !important;
  }
  .ticket-list .ticket-event-date,
  .fanfun-tickets-public .ticket-event-date,
  .fanfun-live-preview .ticket-event-date {
    flex:0 0 auto !important;
    margin-bottom:3px !important;
  }
  .ticket-list .ticket-title,
  .fanfun-tickets-public .ticket-title,
  .fanfun-live-preview .ticket-title {
    font-size:13px !important;
    line-height:1.12 !important;
  }
}

/* v0.6.2: filter fix - hidden cards must stay hidden even with display:flex!important rules */
.fanfun-tickets-public .ticket-list .ticket-item[hidden],
.fanfun-tickets-public .ticket-empty[hidden] {
  display: none !important;
}

/* v0.6.2: 当日は「本日/開催」の2行表示（下線なし・水色のまま） */
.ticket-list .ticket-item.is-today .ticket-countdown-number,
.fanfun-live-preview.is-today .ticket-countdown-number {
  line-height: 1.12 !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
}
.ticket-list .ticket-item.is-today .ticket-countdown-unit,
.fanfun-live-preview.is-today .ticket-countdown-unit {
  display: none !important;
}

/* v0.6.3: 当日表示は少し小さくして左右に余白を持たせる */
.ticket-list .ticket-item.is-today .ticket-countdown-number,
.fanfun-live-preview.is-today .ticket-countdown-number {
  font-size: 15px !important;
  letter-spacing: .06em !important;
  line-height: 1.25 !important;
}
@media (max-width: 600px) {
  .ticket-list .ticket-item.is-today .ticket-countdown-number,
  .fanfun-live-preview.is-today .ticket-countdown-number {
    font-size: 13px !important;
    letter-spacing: .04em !important;
  }
}

/* v0.6.3: 開催済みは「開催/済み」2行・グレー背景・白文字 */
.ticket-list .ticket-item.is-ended .ticket-countdown,
.fanfun-live-preview.is-ended .ticket-countdown {
  background: #8c8c94 !important;
}
.ticket-list .ticket-item.is-ended .ticket-countdown-number,
.fanfun-live-preview.is-ended .ticket-countdown-number {
  color: #fff !important;
  font-size: 15px !important;
  letter-spacing: .06em !important;
  line-height: 1.25 !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
}
.ticket-list .ticket-item.is-ended .ticket-countdown-unit,
.fanfun-live-preview.is-ended .ticket-countdown-unit {
  display: none !important;
}
@media (max-width: 600px) {
  .ticket-list .ticket-item.is-ended .ticket-countdown-number,
  .fanfun-live-preview.is-ended .ticket-countdown-number {
    font-size: 13px !important;
    letter-spacing: .04em !important;
  }
}
