/* Tailwind CSS v3 is now loaded via script in index.html */

:root {
    --primary-color: #007AFF;
    --secondary-color: #0056B3;
    --bg-main: #E8F5FF;
    --bg-card: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #3A3A3C;
    --text-tertiary: #8E8E93;
    --func-red: #FF3B30;
    --func-green: #34C759;
    --func-orange: #FF9500;
    --font-family-base: PingFang-SC, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

.bg-main { background-color: var(--bg-main); }
.bg-card { background-color: var(--bg-card); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--primary-color); }
.bg-accent { background-color: var(--primary-color); }

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-inner {
    will-change: transform;
}

.carousel-indicator.active {
    background-color: #FFFFFF;
    width: 1.2rem;
    border-radius: 9999px;
}

.translate-y-full {
    transform: translateY(100%);
}

.detail-view-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.detail-video-area {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    background: #000;
}

.detail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.detail-game-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, .1);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.detail-game-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.detail-ui-layer {
    position: absolute;
    inset: 0;
    z-index: 30;
    transition: opacity .3s ease;
}

.detail-ui-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.detail-float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.detail-back {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 60;
}

.detail-sidebar {
    position: absolute;
    right: 16px;
    bottom: 110px;
    z-index: 42;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.detail-side-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.detail-side-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
}

.detail-side-action__icon--accent {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #111827;
    border-color: rgba(253, 224, 71, .55);
    box-shadow: 0 14px 28px rgba(245, 158, 11, .28);
}

.detail-side-action__label {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    white-space: nowrap;
}

.detail-info-card {
    position: absolute;
    left: 16px;
    right: 86px;
    bottom: 84px;
    z-index: 38;
    padding: 18px 18px 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .16), rgba(2, 6, 23, .78));
    border: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, .18);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(96, 165, 250, .28);
}

.detail-title {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0;
}

.detail-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.6;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-meta__item {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
}

.detail-stat-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.detail-stat-card {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
}

.detail-stat-label {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
}

.detail-stat-value {
    margin-top: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.detail-desc {
    margin-top: 14px;
    max-height: 70px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .76);
}

.detail-related-wrap {
    margin-top: 14px;
}

.detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.detail-section-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

.detail-related-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.detail-related-card {
    width: 138px;
    flex: none;
    cursor: pointer;
}

.detail-related-cover {
    position: relative;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

.detail-related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-related-episode {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.detail-related-title {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-related-subtitle {
    margin-top: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, .58);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
}

.detail-control-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-time {
    font-size: 11px;
    font-family: Consolas, Monaco, monospace;
    color: rgba(255, 255, 255, .82);
    white-space: nowrap;
}

.detail-progress {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
}

.detail-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    background: #60a5fa;
    width: 0;
}

.detail-progress-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
    left: 0;
}

.detail-speed {
    min-width: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.detail-game-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    pointer-events: auto;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    background: rgba(8, 12, 24, .76);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .34);
    transition: transform .3s ease-out;
}

.detail-panel-close-area {
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    height: 40px;
    cursor: pointer;
}

.detail-panel-drag {
    display: flex;
    justify-content: center;
    padding: 7px 0 5px;
    cursor: grab;
}

.detail-panel-drag::before {
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .22);
}

.detail-panel-scroll {
    max-height: min(78vh, 620px);
    overflow-y: auto;
    padding: 8px 12px 16px;
}

.detail-game-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-game-top__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.detail-game-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    min-width: 0;
}

.detail-game-switcher__icon {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    flex: none;
}

.detail-game-switcher__name {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 112px;
}

.detail-game-switcher__arrow {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.detail-issue-box {
    min-width: 0;
}

.detail-issue-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.detail-issue-number {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.detail-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.detail-status-pill--betting {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, .3);
}

.detail-status-pill--sealed {
    background: rgba(245, 158, 11, .16);
    color: #fcd34d;
    border: 1px solid rgba(252, 211, 77, .28);
}

.detail-status-pill--drawing {
    background: rgba(59, 130, 246, .16);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, .24);
}

.detail-timer-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-timer-label {
    font-size: 10px;
    color: rgba(255, 255, 255, .48);
}

.detail-timer-value {
    color: #a7f3d0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    font-family: Consolas, Monaco, monospace;
}

.detail-top-actions {
    display: flex;
    gap: 8px;
    flex: none;
}

.detail-small-btn {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .84);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.detail-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.detail-result-balls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 30px;
    min-width: 0;
}

.result-ball {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.2);
}

.result-ball--red { background: linear-gradient(180deg, #fb7185, #e11d48); }
.result-ball--blue { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.result-ball--green { background: linear-gradient(180deg, #4ade80, #16a34a); }
.result-ball--orange { background: linear-gradient(180deg, #fb923c, #ea580c); }
.result-ball--purple { background: linear-gradient(180deg, #c084fc, #7c3aed); }
.result-ball--dark { background: linear-gradient(180deg, #64748b, #334155); }
.result-ball--gold { background: linear-gradient(180deg, #facc15, #ca8a04); color: #111827; }
.result-ball--gray { background: linear-gradient(180deg, #94a3b8, #475569); }

.result-plus {
    color: rgba(255, 255, 255, .34);
    font-size: 10px;
    font-weight: 700;
}

.detail-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.result-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
}

.detail-tabbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 6px;
}

.detail-tabbar__btn {
    flex: none;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.detail-tabbar__btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(96, 165, 250, .28), rgba(37, 99, 235, .3));
    border-color: rgba(96, 165, 250, .38);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.detail-empty-note {
    width: 100%;
    padding: 12px 6px;
    text-align: center;
    color: rgba(255, 255, 255, .54);
    font-size: 12px;
}

.detail-bet-grid-wrap {
    max-height: 152px;
    overflow-y: auto;
    padding-right: 2px;
}

.detail-bet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.detail-bet-grid .detail-empty-note {
    grid-column: 1 / -1;
    min-height: 96px;
}

.detail-bet-card {
    min-height: 72px;
    padding: 10px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.detail-bet-card:hover {
    transform: translateY(-1px);
}

.detail-bet-card.active {
    border-color: rgba(96, 165, 250, .48);
    background: rgba(59, 130, 246, .16);
    box-shadow: inset 0 0 18px rgba(59, 130, 246, .14), 0 8px 18px rgba(0, 0, 0, .16);
}

.detail-bet-card__name {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.detail-bet-card__odds {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fda4af;
}

.detail-bet-card--blue .detail-bet-card__name { color: #93c5fd; }
.detail-bet-card--red .detail-bet-card__name { color: #fca5a5; }
.detail-bet-card--green .detail-bet-card__name { color: #86efac; }

.detail-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.detail-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 4px;
}

.detail-chip {
    flex: none;
    min-width: 48px;
    height: 34px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.detail-chip.active {
    background: rgba(59, 130, 246, .22);
    border-color: rgba(96, 165, 250, .42);
    color: #dbeafe;
}

.detail-bet-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.detail-balance-box {
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.detail-balance-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, .5);
}

.detail-balance-value {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    font-family: Consolas, Monaco, monospace;
}

.detail-amount-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.detail-amount-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.detail-amount-input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.detail-confirm-btn {
    min-width: 94px;
    height: 44px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f84f6, #2960d8);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(41, 96, 216, .34);
}

.detail-confirm-btn[disabled] {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

.game-list-overlay {
    position: absolute;
    top: 56px;
    left: 12px;
    z-index: 70;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .86);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .4);
}

.game-switch-title {
    font-size: 11px;
    color: rgba(255, 255, 255, .48);
    margin-bottom: 8px;
    padding: 0 4px;
}

.game-switch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-switch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.game-switch-item.active {
    background: rgba(59, 130, 246, .18);
    border-color: rgba(96, 165, 250, .34);
}

.game-switch-icon {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    flex: none;
}

.game-switch-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 55;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .68);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
    transition: opacity .35s ease;
}

.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.custom-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal.active .modal-panel {
    transform: translateY(0);
}

.detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-height: 72vh;
    background: rgba(12, 14, 22, .96);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    transform: translateY(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal-title {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.modal-close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .64);
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.trend-list,
.record-list,
.confirm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trend-item,
.record-item,
.confirm-item {
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
}

.trend-item__top,
.record-item__top,
.confirm-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
}

.trend-item__code,
.record-item__play,
.confirm-item__play {
    margin-top: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.trend-item__tags,
.record-item__meta,
.confirm-item__meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.record-win {
    color: #86efac;
    font-weight: 700;
}

.modal-empty {
    text-align: center;
    color: rgba(255, 255, 255, .52);
    padding: 40px 14px;
    font-size: 13px;
}

.confirm-item__amount {
    width: 88px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.confirm-delete {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
}

.confirm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.confirm-actions {
    display: flex;
    gap: 10px;
    padding: 0 14px 16px;
}

.confirm-action-btn {
    flex: 1;
    height: 46px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.confirm-action-btn--ghost {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.confirm-action-btn--primary {
    border: 0;
    background: linear-gradient(135deg, #4f84f6, #2960d8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(41, 96, 216, .34);
}

.confirm-action-btn[disabled] {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

.detail-sidebar {
    bottom: 88px;
    gap: 18px;
}

.detail-side-action__icon {
    width: 44px;
    height: 44px;
}

.detail-side-action__label {
    font-size: 11px;
}

.detail-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 16px;
}

.detail-controls--minimal {
    justify-content: flex-start;
}

.detail-time {
    min-width: 88px;
    font-size: 10px;
}

.detail-progress {
    height: 5px;
}

.detail-progress-thumb {
    width: 10px;
    height: 10px;
}

.detail-game-panel {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: rgba(8, 12, 24, .68);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .28);
}

.detail-panel-drag {
    padding: 5px 0 4px;
}

.detail-panel-drag::before {
    width: 34px;
    height: 3px;
}

.detail-panel-scroll {
    max-height: min(56vh, 420px);
    padding: 6px 10px 10px;
}

.detail-game-top {
    gap: 8px;
    margin-bottom: 8px;
}

.detail-game-top__left {
    gap: 8px;
}

.detail-game-switcher {
    padding: 3px 10px 3px 3px;
}

.detail-game-switcher__icon {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.detail-game-switcher__name {
    max-width: 96px;
    font-size: 11px;
}

.detail-issue-main {
    gap: 0;
    margin-bottom: 2px;
}

.detail-issue-number {
    font-size: 11px;
}

.detail-timer-row {
    gap: 4px;
}

.detail-timer-label {
    font-size: 9px;
}

.detail-timer-value {
    font-size: 14px;
}

.detail-top-actions {
    gap: 6px;
}

.detail-small-btn {
    padding: 5px 10px;
    font-size: 10px;
}

.detail-result-bar {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
}

.detail-result-balls {
    min-height: 24px;
    gap: 3px;
}

.result-ball {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
}

.result-tag {
    padding: 3px 6px;
    font-size: 9px;
}

.detail-tabbar {
    gap: 6px;
    padding: 8px 0 5px;
}

.detail-tabbar__btn {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 11px;
}

.detail-bet-grid-wrap {
    max-height: 128px;
}

.detail-bet-card {
    min-height: 58px;
    padding: 8px 5px;
    border-radius: 14px;
}

.detail-bet-card__name {
    font-size: 12px;
}

.detail-bet-card__odds {
    margin-top: 4px;
    font-size: 10px;
}

.detail-summary-row {
    margin-top: 8px;
    font-size: 11px;
}

.detail-chip-row {
    gap: 6px;
    padding: 8px 0 2px;
}

.detail-chip {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

.detail-bet-footer {
    gap: 8px;
    margin-top: 8px;
}

.detail-balance-box {
    min-width: 74px;
    padding: 8px 10px;
    border-radius: 14px;
}

.detail-balance-label {
    font-size: 9px;
}

.detail-balance-value {
    margin-top: 2px;
    font-size: 13px;
}

.detail-amount-wrap {
    height: 38px;
    padding: 0 10px;
    border-radius: 14px;
}

.detail-amount-input {
    font-size: 13px;
}

.detail-confirm-btn {
    min-width: 82px;
    height: 38px;
    border-radius: 14px;
    font-size: 13px;
}

.modal-panel {
    max-height: 62vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-head {
    padding: 12px 14px;
}

.modal-title {
    font-size: 14px;
}

.modal-body {
    padding: 10px 12px;
}

.trend-list,
.record-list,
.confirm-list {
    gap: 8px;
}

.trend-item,
.record-item,
.confirm-item {
    padding: 10px 11px;
    border-radius: 14px;
}

.confirm-item__amount {
    width: 76px;
    height: 30px;
    font-size: 12px;
}

.confirm-delete {
    width: 30px;
    height: 30px;
}

.confirm-foot {
    padding: 10px 12px;
    font-size: 11px;
}

.confirm-actions {
    gap: 8px;
    padding: 0 12px 12px;
}

.confirm-action-btn {
    height: 40px;
    border-radius: 14px;
    font-size: 13px;
}

@media (max-width: 420px) {
    .detail-bet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (orientation: landscape) {
    #game-panel-unified.translate-y-full {
        transform: translateX(100%) !important;
    }

    #game-panel-unified:not(.translate-y-full) {
        transform: translateX(0) !important;
    }

    .detail-info-card {
        right: 110px;
        max-width: 460px;
        bottom: 82px;
    }

    .detail-game-panel {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 300px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, .12);
    }

    .detail-panel-close-area {
        top: 0;
        right: 100%;
        left: auto;
        width: 100vw;
        height: 100%;
    }

    .detail-panel-drag {
        display: none;
    }

    .detail-panel-scroll {
        max-height: none;
        height: 100vh;
        padding-top: 18px;
        padding-bottom: 24px;
    }

    .custom-modal.active .modal-panel {
        transform: translateX(0);
    }

    .modal-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 360px;
        height: 100%;
        max-height: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, .12);
        transform: translateX(100%);
    }
}
