/* 4 nút quán động – chỉ bản thử thu/index.html */
@property --sd-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
#venue-list-home { background: transparent; box-shadow: none; overflow: visible; display: grid; gap: 10px; }
#venue-list-home .venue-row { --c: #ffc21a; --glow: rgba(255,194,26,.35);
  position: relative; isolation: isolate; border-bottom: none; border-radius: 16px;
  background: var(--bg-grouped); transform-style: preserve-3d;
  transform: perspective(700px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
  box-shadow: 0 0 18px -6px var(--glow), 0 6px 16px rgba(0,0,0,.35);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  animation: nq-in .8s cubic-bezier(.2,.9,.25,1.2) backwards, nq-breathe 3.6s ease-in-out infinite;
  animation-delay: var(--d,0s), calc(var(--d,0s) + .9s); }
#venue-list-home .venue-row[href*="k2"] { --c: #ffffff; --glow: rgba(255,255,255,.28); }
#venue-list-home .venue-row[href*="k5"] { --c: #d84cff; --glow: rgba(216,76,255,.38); }
#venue-list-home .venue-row[href*="k9"] { --c: #ff2d3d; --glow: rgba(255,45,61,.38); }
#venue-list-home .venue-row:nth-child(1){--d:.05s} #venue-list-home .venue-row:nth-child(2){--d:.18s}
#venue-list-home .venue-row:nth-child(3){--d:.31s} #venue-list-home .venue-row:nth-child(4){--d:.44s}
/* viền sáng chạy vòng */
#venue-list-home .venue-row::before { content:""; position:absolute; inset:-1.5px; border-radius:17.5px; z-index:-2;
  background: conic-gradient(from var(--sd-a), transparent 0 55%, var(--c) 75%, transparent 92%), rgba(255,255,255,.08);
  animation: nq-spin 3.2s linear infinite; animation-delay: calc(var(--d,0s) * -4); }
#venue-list-home .venue-row::after { content:""; position:absolute; inset:0; border-radius:16px; z-index:-1;
  background: radial-gradient(120% 140% at var(--mx,15%) var(--my,50%), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), var(--bg-grouped); }
#venue-list-home .venue-row:active, #venue-list-home .venue-row.nq-lift {
  box-shadow: 0 0 30px -4px var(--glow), 0 14px 30px rgba(0,0,0,.5); opacity: 1; background: var(--bg-grouped); }
#venue-list-home .venue-row.nq-lift { transform: perspective(700px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-3px) scale(1.025); transition-duration: .18s; }
#venue-list-home .venue-app-icon { box-shadow: 0 0 14px -3px var(--glow), 0 2px 8px rgba(0,0,0,.45);
  animation: nq-logo 4.2s ease-in-out infinite; animation-delay: var(--d,0s); }
#venue-list-home .venue-row.nq-lift .venue-app-icon { transform: scale(1.1) rotate(-6deg); }
#venue-list-home .venue-row-text b { transition: color .3s; }
#venue-list-home .venue-row.nq-lift .venue-row-text b { color: var(--c); }
#venue-list-home .venue-row-chevron { color: var(--c); opacity: .85; animation: nq-arrow 1.8s ease-in-out infinite; animation-delay: var(--d,0s); }
@keyframes nq-spin { to { --sd-a: 360deg; } }
@keyframes nq-in { from { opacity:.001; transform: perspective(700px) translateY(34px) scale(.94); } to { opacity:1; } }
@keyframes nq-breathe { 0%,100% { box-shadow: 0 0 14px -6px var(--glow), 0 6px 16px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 26px -2px var(--glow), 0 8px 20px rgba(0,0,0,.4); } }
@keyframes nq-logo { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-4deg); } 50% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-1.5px) rotate(3deg); } }
@keyframes nq-arrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  #venue-list-home .venue-row { transform: none !important; }
  #venue-list-home .venue-row::before { background: var(--c); opacity: .5; }
}

/* Dãy nút sự kiện */
.event-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:4px 2px 12px; overflow:visible; }
.event-strip.one { grid-template-columns:1fr; }
.event-strip::-webkit-scrollbar { display:none; }
.event-btn { --c:#d84cff; --glow:rgba(216,76,255,.38); min-width:0; max-width:none; align-items:flex-start !important; position:relative; isolation:isolate;
  display:flex; align-items:center; gap:12px; padding:12px 12px; border-radius:16px; text-decoration:none; color:inherit; font-family:var(--font-ui);
  background:var(--bg-grouped); box-shadow:0 0 18px -6px var(--glow), 0 6px 16px rgba(0,0,0,.35);
  animation: nq-in .8s cubic-bezier(.2,.9,.25,1.2) backwards, nq-breathe 3.6s ease-in-out infinite; animation-delay:var(--d,0s), calc(var(--d,0s) + .9s); transition:transform .18s; }
.event-btn::before { content:""; position:absolute; inset:-1.5px; border-radius:17.5px; z-index:-2;
  background: conic-gradient(from var(--sd-a), transparent 0 55%, var(--c) 75%, transparent 92%), rgba(255,255,255,.08); animation: nq-spin 3.2s linear infinite; }
.event-btn::after { content:""; position:absolute; inset:0; border-radius:16px; z-index:-1; background: radial-gradient(120% 140% at 15% 50%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--bg-grouped); }
.event-btn:active { transform:scale(.97); }
.event-btn-icon { font-size:22px; flex:none; }
.event-btn b { display:block; font-size:16px; font-weight:600; letter-spacing:-.3px; color:var(--label-primary); white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
.event-btn small { display:block; font-size:13px; color:var(--c); margin-top:3px; white-space:normal; overflow-wrap:anywhere; line-height:1.25; }
.event-strip .event-btn:last-child:nth-child(odd) { grid-column:1 / -1; }

/* Latin Dance K5: Free entry trái + Pre-order phải — hàng trong flow, không đè tiêu đề */
.event-btn.has-badge-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  padding: 10px 12px 12px !important;
}
.event-btn.has-badge-row .event-badge-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}
.event-btn.has-badge-row .event-badge-row .event-tag {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: calc(50% - 4px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-btn.has-badge-row .event-tag--po {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg,#d84cff,#9b3bff);
  box-shadow: 0 0 10px rgba(216,76,255,.6);
}
.event-btn.has-badge-row .event-btn-icon { grid-row: 2; grid-column: 1; align-self: start; }
.event-btn.has-badge-row .event-btn-text { grid-row: 2; grid-column: 2; min-width: 0; }
@media (max-width: 430px) {
  .event-btn.has-badge-row .event-badge-row .event-tag { font-size: 9px; padding: 2px 6px; }
}
@media (max-width: 390px) {
  .event-btn.has-badge-row { row-gap: 10px; padding: 10px 10px 12px !important; }
}

/* Nhãn Vào cửa miễn phí / Pre-order trên thẻ sự kiện (hàng riêng, không đè tiêu đề) */
.event-btn.has-event-tags { padding-top:42px !important; }
.event-tags {
  position:absolute; top:8px; left:8px; right:8px; z-index:1;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 6px;
  pointer-events:none;
}
.event-tags .event-tag {
  position:static; display:inline-flex; align-items:center; gap:3px; padding:3px 8px; border-radius:999px;
  font-family:var(--font-ui); font-size:10px; font-weight:700; letter-spacing:.15px; line-height:1.2;
  color:#fff; white-space:nowrap; flex:0 0 auto; max-width:100%;
  background:linear-gradient(135deg,#d84cff,#9b3bff); box-shadow:0 0 10px rgba(216,76,255,.6);
}
.event-btn-text { display:block; min-width:0; flex:1; position:relative; z-index:0; }
.event-btn.has-event-tags .event-btn-text b { padding-right:0; }
@media (max-width:430px){
  .event-btn.has-event-tags { padding-top:46px !important; }
  .event-tags .event-tag { font-size:9px; padding:3px 6px; }
}
@media (max-width:390px){
  .event-btn.has-event-tags { padding-top:48px !important; }
}

/* Teaser ngày đặc biệt dưới chữ Kết Group (js/ngay-dac-biet.js) */
.teaser-dac-biet { --c:#ff9f0a; --glow:rgba(255,159,10,.4); position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; gap:4px;
  box-sizing:border-box; width:calc(100% - 32px); max-width:420px; margin:10px auto 2px; padding:12px 14px; border-radius:16px; text-align:center;
  text-decoration:none; color:inherit; font-family:var(--font-ui); overflow-wrap:anywhere;
  box-shadow:0 0 18px -6px var(--glow), 0 6px 16px rgba(0,0,0,.35); animation:nq-in .8s cubic-bezier(.2,.9,.25,1.2) backwards; }
.teaser-dac-biet::before { content:""; position:absolute; inset:-1.5px; border-radius:17.5px; z-index:-2;
  background: conic-gradient(from var(--sd-a), transparent 0 55%, var(--c) 75%, transparent 92%), rgba(255,255,255,.08); animation: nq-spin 3.2s linear infinite; }
.teaser-dac-biet::after { content:""; position:absolute; inset:0; border-radius:16px; z-index:-1; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 65%), var(--bg-grouped); }
.teaser-live { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.3px; line-height:1.2; text-transform:uppercase;
  color:#fff; background:linear-gradient(135deg,#ff453a,#ff9f0a); box-shadow:0 0 10px rgba(255,69,58,.55); }
.teaser-live i { width:7px; height:7px; border-radius:50%; background:#fff; box-shadow:0 0 6px #fff; animation:teaser-blink 1.4s ease-in-out infinite; }
.teaser-dip { font-size:17px; font-weight:600; letter-spacing:-.3px; line-height:1.25; color:var(--label-primary); }
.teaser-shine { position:absolute; inset:0; border-radius:16px; overflow:hidden; pointer-events:none; }
.teaser-shine::before { content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent); animation:teaser-shimmer 4s ease-in-out infinite 1s; }
.teaser-cau { font-size:13px; line-height:1.3; color:var(--c); }
@keyframes teaser-blink { 0%,100% { opacity:1; } 50% { opacity:.25; } }
@keyframes teaser-shimmer { 0% { left:-60%; } 55%,100% { left:130%; } }
@media (prefers-reduced-motion: reduce) {
  .teaser-dac-biet, .teaser-dac-biet::before, .teaser-live i, .teaser-shine::before { animation:none !important; }
  .teaser-shine { display:none; }
}

/* Khung HÔM NAY: sự kiện quán trùng hôm nay (chip cuộn ngang) */
.teaser-dip-link { display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:inherit; }
.teaser-thuong { --c:#30d158; --glow:rgba(48,209,88,.35); }
.teaser-ev { align-self:stretch; min-width:0; display:flex; flex-direction:column; gap:7px; margin-top:4px; }
.teaser-dac-biet:not(.teaser-thuong) .teaser-ev { padding-top:9px; border-top:.5px solid rgba(255,255,255,.12); }
.teaser-ev-tit { font-size:11px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; color:var(--label-secondary, rgba(235,235,245,.6)); }
.teaser-chips { display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:2px; padding:2px 2px 4px; margin:0 -2px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; justify-content:safe center;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent); mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent); }
.teaser-chips::-webkit-scrollbar { display:none; }
.teaser-chip { flex:none; scroll-snap-align:start; display:flex; align-items:center; gap:7px; max-width:78%; padding:7px 11px 7px 9px; border-radius:12px; text-decoration:none; color:inherit; text-align:start;
  background:color-mix(in srgb, var(--c) 13%, rgba(255,255,255,.04)); box-shadow:inset 0 0 0 .5px color-mix(in srgb, var(--c) 55%, transparent); transition:transform .15s; }
.teaser-chip:active { transform:scale(.95); }
.teaser-chip-ic { font-size:17px; line-height:1; }
.teaser-chip-tx { display:flex; flex-direction:column; min-width:0; }
.teaser-chip-tx b { font-size:13px; font-weight:600; line-height:1.2; color:var(--label-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.teaser-chip-tx small { font-size:11px; line-height:1.2; color:var(--c); white-space:nowrap; }
.teaser-chip-po { font-size:10px; font-weight:700; padding:2px 6px; border-radius:999px; color:#fff; background:#d84cff; white-space:nowrap; }
.event-btn.ev-noi { animation:ev-noi 1.1s ease-in-out 2; }
@keyframes ev-noi { 0%,100% { transform:scale(1); box-shadow:0 0 18px -6px var(--glow), 0 6px 16px rgba(0,0,0,.35); } 50% { transform:scale(1.04); box-shadow:0 0 28px 2px var(--glow), 0 0 0 2px var(--c); } }
@media (prefers-reduced-motion: reduce) { .event-btn.ev-noi { animation:none; box-shadow:0 0 0 2px var(--c), 0 0 24px var(--glow); } .teaser-chips { scroll-behavior:auto; } }
/* v2: lưới 2 cột thay cuộn ngang */
.teaser-chips { display:grid; grid-template-columns:1fr 1fr; gap:8px; overflow:visible; scroll-snap-type:none; padding:0; margin:0; -webkit-mask-image:none; mask-image:none; justify-content:stretch; }
.teaser-chip { max-width:none; min-width:0; flex:initial; scroll-snap-align:none; justify-content:center; text-align:center; flex-wrap:wrap; gap:4px 6px; padding:8px; }
.teaser-chip:last-child:nth-child(odd),
.teaser-chip--span { grid-column:1 / -1; }
.teaser-chip-tx { align-items:center; }
.teaser-chip-tx b, .teaser-chip-tx small { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.teaser-chip-tx small { -webkit-line-clamp:2; }
.teaser-chip-ic { line-height:1.3; }
.teaser-chip { flex-direction:column; flex-wrap:nowrap; gap:3px; }
.teaser-chip--detail { max-width:100%; grid-column:1 / -1; }
.teaser-chip--detail .teaser-chip-tx small { -webkit-line-clamp:4; color:var(--label-secondary); }
