* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #09090b;
    --bg-secondary: #0f0f12;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --text: #ececf0;
    --text-secondary: #7d7d82;
    --text-tertiary: #4a4a4f;
    --primary: #bc37eb;
    --primary-hover: #ca55f0;
    --primary-dim: rgba(188, 55, 235, 0.10);
    --primary-glow: rgba(188, 55, 235, 0.15);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(16, 16, 20, 0.65);
    --card-bg-hover: rgba(22, 22, 28, 0.75);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(188, 55, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 32px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: left;
    padding: 48px 0 28px;
    margin-bottom: 0;
}

header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 12vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

header h1 .accent {
    color: var(--primary);
}

.subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Tab Navigation (segmented control) */
.nav-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    margin-bottom: 28px;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.nav-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.tab-icon {
    display: flex;
    align-items: center;
}

.tab-text {
    display: block;
}

/* Search Card */
.search-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.search-icon {
    color: var(--primary);
    flex-shrink: 0;
}

#judgeSearch {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

#judgeSearch::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.clear-judge {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.clear-judge:hover {
    color: var(--text);
}

.clear-judge.hidden {
    display: none;
}

/* Judges List (autocomplete dropdown) */
.judges-list {
    border-top: 1px solid var(--border);
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.judges-list.hidden {
    display: none;
}

.judge-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border);
}

.judge-item:last-child {
    border-bottom: none;
}

.judge-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
    padding-left: 24px;
}

/* Custom Select (WOD dropdown in personal view) */
.custom-select {
    position: relative;
    margin-bottom: 24px;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.custom-select-trigger:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.custom-select.open .custom-select-trigger {
    border-color: rgba(188, 55, 235, 0.35);
    box-shadow: 0 0 0 2px var(--primary-dim);
}

.custom-select-trigger .chevron {
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.custom-select.open .custom-select-trigger .chevron {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-secondary);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
    z-index: 50;
    animation: selectOpen 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.12s;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.custom-select-option.selected {
    background: var(--primary-dim);
    color: var(--text);
}

.custom-select-check {
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@keyframes selectOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Judge browse toggle button */
.judge-browse-toggle {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.judge-browse-toggle:hover {
    color: var(--text);
}

/* Schedule Container */
.schedule-container {
    flex: 1;
    margin-bottom: 28px;
}

/* View visibility */
.view.hidden {
    display: none;
}

/* Live Overview */
.live-container {
    margin-bottom: 24px;
}

.live-wod-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.live-wod-time {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    margin-left: 4px;
}

.live-hero {
    background: var(--card-bg);
    border: 1px solid rgba(188, 55, 235, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card), 0 0 20px rgba(188, 55, 235, 0.04);
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.live-hero-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.live-hero-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.live-hero-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-hero-time svg {
    color: var(--primary);
}

.live-lanes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-lane-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.live-lane-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.live-lane-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 28px;
    text-align: center;
}

.live-lane-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* Live secondary (next heat preview) */
.live-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.secondary-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.secondary-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Live finished state */
.live-finished {
    text-align: center;
    padding: 64px 20px;
}

.finished-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.live-finished h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 4px;
}

.live-finished p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Global break state (between WODs) */
.live-global-break {
    text-align: center;
    padding: 48px 20px;
    background: var(--card-bg);
    border: 1px dashed rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.global-break-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.08);
    color: #34d399;
}

.live-global-break h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #34d399;
    margin-bottom: 4px;
}

.global-break-detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.global-break-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 12px;
}

.global-break-countdown {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* Lane Badge Left - prominent lane number on left side of timeline (personal view) */
.lane-badge-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(var(--lc, 136, 136, 136), 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--lc, 136, 136, 136), 0.15);
}

.lane-badge-left .lane-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgb(var(--lc, 220, 220, 220));
}

.timeline-content:hover .lane-badge-left {
    border-color: rgba(var(--lc, 136, 136, 136), 0.25);
    background: rgba(var(--lc, 136, 136, 136), 0.10);
}

/* Progress bar */
.judge-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}


/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* No Results */
.no-results {
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px 20px;
}

.no-results p {
    font-size: 0.95rem;
    font-weight: 500;
}

.no-results .hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Judge Header */
.judge-header {
    background: var(--card-bg);
    border: 1px solid rgba(188, 55, 235, 0.20);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), 0 0 20px rgba(188, 55, 235, 0.05);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.judge-name-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.judge-name-badge svg {
    color: var(--primary);
}

.judge-name-badge span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.wod-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wod-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.wod-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    position: relative;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    flex-wrap: wrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.timeline-content:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

/* Staggered animation delays */
.timeline-item:nth-child(1) .timeline-content { animation-delay: 0.025s; }
.timeline-item:nth-child(2) .timeline-content { animation-delay: 0.05s; }
.timeline-item:nth-child(3) .timeline-content { animation-delay: 0.075s; }
.timeline-item:nth-child(4) .timeline-content { animation-delay: 0.10s; }
.timeline-item:nth-child(5) .timeline-content { animation-delay: 0.125s; }
.timeline-item:nth-child(6) .timeline-content { animation-delay: 0.15s; }
.timeline-item:nth-child(7) .timeline-content { animation-delay: 0.175s; }
.timeline-item:nth-child(8) .timeline-content { animation-delay: 0.20s; }
.timeline-item:nth-child(9) .timeline-content { animation-delay: 0.225s; }
.timeline-item:nth-child(10) .timeline-content { animation-delay: 0.25s; }
.timeline-item:nth-child(11) .timeline-content { animation-delay: 0.275s; }
.timeline-item:nth-child(12) .timeline-content { animation-delay: 0.30s; }
.timeline-item:nth-child(13) .timeline-content { animation-delay: 0.325s; }
.timeline-item:nth-child(14) .timeline-content { animation-delay: 0.35s; }
.timeline-item:nth-child(15) .timeline-content { animation-delay: 0.375s; }
.timeline-item:nth-child(16) .timeline-content { animation-delay: 0.40s; }
.timeline-item:nth-child(17) .timeline-content { animation-delay: 0.425s; }
.timeline-item:nth-child(18) .timeline-content { animation-delay: 0.45s; }
.timeline-item:nth-child(19) .timeline-content { animation-delay: 0.475s; }
.timeline-item:nth-child(20) .timeline-content { animation-delay: 0.50s; }

/* Heat Info */
.heat-info {
    flex: 1;
    min-width: 0;
}

.heat-category {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.heat-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.heat-time svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Lane Colors - RGB triplets for tint effects (personal view only) */
.lane-1 { --lc: 239, 68, 68; }
.lane-2 { --lc: 249, 115, 22; }
.lane-3 { --lc: 245, 158, 11; }
.lane-4 { --lc: 234, 179, 8; }
.lane-5 { --lc: 132, 204, 22; }
.lane-6 { --lc: 34, 197, 94; }
.lane-7 { --lc: 16, 185, 129; }
.lane-8 { --lc: 20, 184, 166; }
.lane-9 { --lc: 6, 182, 212; }
.lane-10 { --lc: 14, 165, 233; }

/* Now/Next Badges */
.badge-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    animation: livePulse 2.5s ease-in-out infinite;
}

.badge-now::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.badge-next {
    display: inline-flex;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

/* Past items - dimmed to focus on upcoming */
.timeline-item.is-past .timeline-content {
    opacity: 0.55;
}

.timeline-item.is-past:hover .timeline-content {
    opacity: 0.85;
}

/* Now-active item */
.timeline-item.is-now .timeline-content {
    border-color: rgba(188, 55, 235, 0.25);
    box-shadow: var(--shadow-card), 0 0 16px rgba(188, 55, 235, 0.06);
}

/* Break Items */
.timeline-break { --lc: 52, 211, 153; }

.break-content {
    background: rgba(16, 22, 20, 0.6);
    border: 1px dashed rgba(52, 211, 153, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: default;
}

.break-content:hover {
    background: rgba(18, 26, 22, 0.7);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: var(--shadow-card-hover);
}

.break-info {
    flex: 1;
}

.break-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.break-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.break-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.1);
    border-radius: var(--radius-sm);
    color: #34d399;
    margin-left: auto;
}

.break-icon svg {
    width: 16px;
    height: 16px;
}

.break-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Short break (< 10 min) */
.timeline-break.break-short { --lc: 251, 191, 36; }

.break-short .break-content {
    background: rgba(22, 20, 10, 0.6);
    border-color: rgba(251, 191, 36, 0.3);
}

.break-short .break-content:hover {
    background: rgba(26, 24, 12, 0.7);
    border-color: rgba(251, 191, 36, 0.45);
}

.break-short .break-title {
    color: #fbbf24;
}

.break-short .break-subtitle {
    color: rgba(251, 191, 36, 0.7);
}

.break-short .break-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* Critical break (< 4 min) */
.timeline-break.break-critical { --lc: 248, 113, 113; }

.break-critical .break-content {
    background: rgba(22, 12, 12, 0.6);
    border-color: rgba(248, 113, 113, 0.35);
    border-style: solid;
    border-width: 1px;
    animation: pulse-critical 2s ease-in-out infinite;
}

.break-critical .break-content:hover {
    background: rgba(28, 14, 14, 0.7);
    border-color: rgba(248, 113, 113, 0.5);
}

.break-critical .break-title {
    color: #f87171;
}

.break-critical .break-subtitle {
    color: rgba(248, 113, 113, 0.8);
    font-weight: 600;
}

.break-critical .break-icon {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

@keyframes pulse-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(248, 113, 113, 0.15); }
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

footer .made-by {
    margin-top: 12px;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

footer .made-by a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

footer .made-by a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header {
        padding: 32px 16px 20px;
    }

    .nav-tab {
        padding: 8px 4px;
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }

    .search-header {
        padding: 14px 16px;
    }

    .custom-select-trigger {
        padding: 10px 14px;
    }

    .judge-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .judge-name-badge span {
        font-size: 1.1rem;
    }

    .wod-info {
        align-items: flex-start;
        width: 100%;
    }

    .live-hero {
        padding: 18px;
    }

    .live-lane-row {
        padding: 6px 10px;
        gap: 10px;
    }

    .lane-badge-left {
        width: 40px;
        height: 40px;
    }

    .lane-badge-left .lane-number {
        font-size: 1.15rem;
    }

    .timeline-content {
        padding: 10px 14px;
        gap: 10px;
    }

    .break-content {
        padding: 10px 14px;
        gap: 10px;
    }

    .break-icon {
        width: 28px;
        height: 28px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 2.4rem;
    }

    .judge-header {
        padding: 14px;
    }

    .heat-category {
        font-size: 0.75rem;
    }

    .live-hero {
        padding: 14px;
    }

    .lane-badge-left {
        width: 36px;
        height: 36px;
    }

    .lane-badge-left .lane-number {
        font-size: 1rem;
    }
}

/* Touch devices */
@media (hover: none) {
    .timeline-content:hover {
        transform: none;
    }

    .timeline-content:active {
        background: var(--card-bg-hover);
    }

    .judge-item:hover {
        padding-left: 20px;
    }

    .judge-item:active {
        background: var(--bg-elevated);
        color: var(--text);
    }

    /* Prevent iOS zoom on input focus */
    #judgeSearch {
        font-size: 16px;
    }
}
