/* Shift TV – Live događaji (/live): kartice, oznake LIVE/UPCOMING/REPLAY, odbrojavanje */
:root { --live-red: #ff0015; --live-red-dark: #d31027; --live-card: #1b1430; --live-line: rgba(255,255,255,.08); --live-muted: #b9b3c9; }

.live-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--live-line); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.live-tabs::-webkit-scrollbar { display: none; }
.live-tabs a { color: var(--live-muted); font-weight: 700; font-size: 15px; padding: 12px 16px; border-bottom: 3px solid transparent; white-space: nowrap; }
.live-tabs a:hover { color: #fff; }
.live-tabs a.active { color: #fff; border-bottom-color: var(--live-red); }
.live-tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--live-red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

.live-page-head { padding-top: 26px; }
.live-page-head h1 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.live-page-head p { color: var(--live-muted); margin: 0 0 14px; }

.live-section { margin-bottom: 34px; }
.live-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.live-section-head h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; }
.live-section-head a { color: var(--live-red); font-weight: 700; font-size: 14px; }
.live-empty { color: var(--live-muted); background: var(--live-card); border-radius: 10px; padding: 22px; }

.live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1199px) { .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 479px)  { .live-grid { grid-template-columns: 1fr; } }

.live-card { display: block; color: inherit; }
.live-card:hover { color: inherit; }
.live-card-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--live-card); }
.live-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.live-card:hover .live-card-img img { transform: scale(1.04); }
.live-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.72); }
.live-badge.is-live { background: var(--live-red); }
.live-badge.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.2s infinite; }
.live-badge.is-past { background: rgba(255,255,255,.18); }
.live-badge-price { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: #eaa538; color: #111; font-size: 12px; font-weight: 800; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-card-body { padding: 10px 2px 0; }
.live-card-title { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-card-meta { color: var(--live-muted); font-size: 13px; line-height: 1.5; }
.live-card-meta .when { color: #fff; }

/* Stranica događaja */
.live-event-hero { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.live-event-hero > img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.live-event-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-event-hero video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.live-event-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.live-countdown { display: flex; gap: 12px; margin: 14px 0 6px; }
.live-countdown div { min-width: 74px; padding: 10px 6px; border-radius: 10px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15); }
.live-countdown b { display: block; color: #fff; font-size: 32px; font-weight: 800; line-height: 1; }
.live-countdown span { color: var(--live-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 575px) { .live-countdown div { min-width: 58px; } .live-countdown b { font-size: 24px; } }
.live-starts { color: #fff; font-size: 16px; font-weight: 700; }
.live-event-info h1 { color: #fff; font-size: 26px; font-weight: 800; margin: 18px 0 6px; }
.live-event-info .meta { color: var(--live-muted); margin-bottom: 14px; }
.live-event-info .desc { color: #d8d3e4; line-height: 1.7; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.live-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.live-btn-primary { background: var(--live-red); color: #fff; }
.live-btn-primary:hover { background: var(--live-red-dark); color: #fff; }
.live-btn-ghost { background: rgba(255,255,255,.1); color: #fff; }
.live-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.live-remind { display: flex; gap: 8px; flex-wrap: wrap; }
.live-remind input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--live-line); background: var(--live-card); color: #fff; }
.live-note { color: var(--live-muted); font-size: 13px; margin-top: 6px; }
.live-flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: rgba(46, 204, 113, .15); color: #b8f5cf; }
.live-flash.is-error { background: rgba(255, 0, 21, .15); color: #ffc2c7; }
