.draft-room {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.draft-room-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0f18;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.draft-room-backdrop {
    position: absolute;
    inset: 0;
}

.draft-room-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.draft-room-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(116deg, rgba(6, 9, 15, 0.94) 0%, rgba(7, 11, 18, 0.9) 42%, rgba(8, 12, 20, 0.7) 100%),
        radial-gradient(circle at top right, rgba(255, 37, 176, 0.22), transparent 34%),
        radial-gradient(circle at 72% 28%, rgba(93, 124, 255, 0.16), transparent 28%);
}

.draft-room-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
    gap: 20px;
    padding: 28px;
}

.draft-room-hero-main,
.draft-hero-side,
.draft-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.draft-hero-topline,
.draft-hero-actions,
.draft-admin-bar,
.draft-panel-head {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.draft-hero-kicker,
.draft-status-pill,
.draft-panel-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.draft-hero-kicker,
.draft-panel-kicker,
.draft-phase-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d2daec;
}

.draft-status-pill {
    color: #ffffff;
}

.status-draft {
    background: linear-gradient(135deg, #7f57ff, #b689ff);
}

.status-published {
    background: linear-gradient(135deg, #27c7ff, #5d7cff);
}

.status-active {
    background: linear-gradient(135deg, #2bc990, #68e1b7);
}

.status-completed {
    background: linear-gradient(135deg, #5d7cff, #88a5ff);
}

.draft-room-title {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.draft-room-subtitle {
    margin: 0;
    color: #dce4f7;
    font-size: 1rem;
    font-weight: 700;
}

.draft-room-copy,
.draft-panel-copy {
    margin: 0;
    color: #a4b0c5;
    line-height: 1.7;
}

.draft-action-btn,
.draft-admin-btn,
.draft-player-card {
    border: 0;
    cursor: pointer;
}

.draft-action-btn,
.draft-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.draft-action-btn {
    background: linear-gradient(135deg, #d103b8, #5d7cff);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(93, 124, 255, 0.2);
}

.draft-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.draft-action-btn-secondary,
.draft-admin-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #edf2ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.draft-side-card,
.draft-summary-card,
.draft-panel,
.captain-box,
.team-card,
.draft-player-card,
.log-item,
.draft-live-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(16, 20, 31, 0.92), rgba(12, 15, 24, 0.96));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.draft-side-card::before,
.draft-summary-card::before,
.draft-panel::before,
.captain-box::before,
.team-card::before,
.draft-player-card::before,
.draft-live-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1px;
    width: calc(100% - 2px);
    height: 3px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: linear-gradient(90deg, #ff3cac 0%, #784ba0 34%, #5d7cff 68%, #2bc990 100%);
    box-shadow: 0 0 18px rgba(255, 60, 172, 0.2);
    pointer-events: none;
}

/* Keep accent strips focused on roster surface only. */
.draft-side-card::before,
.draft-summary-card::before,
.draft-panel::before,
.captain-box::before,
.team-card::before,
.draft-player-card::before {
    display: none;
}

.roster-panel::before {
    display: block;
    left: 8px;
    right: 8px;
    width: auto;
}

.draft-side-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 16px 14px 14px;
    border-radius: 16px;
}

.draft-side-card span,
.draft-summary-card span,
.draft-panel-count,
.captain-meta,
.captain-seed,
.team-card-subtitle,
.player-card-meta,
.log-time,
.draft-search::placeholder {
    color: #93a2ba;
}

.draft-side-card span,
.draft-summary-card span {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.draft-side-card strong,
.draft-summary-card strong {
    color: #f7fbff;
    font-size: 0.95rem;
    line-height: 1.4;
}

.draft-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.draft-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 18px 16px 16px;
    border-radius: 18px;
}

.draft-summary-card small {
    color: #93a2ba;
    font-size: 0.78rem;
    line-height: 1.5;
}

.draft-summary-card.emphasis {
    background:
        linear-gradient(135deg, rgba(209, 3, 184, 0.16), rgba(93, 124, 255, 0.14)),
        linear-gradient(180deg, rgba(16, 20, 31, 0.96), rgba(12, 15, 24, 0.98));
}

.draft-live-banner-shell {
    display: flex;
}

.draft-live-banner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
}

.banner-state {
    color: #f7fbff;
    font-size: 1rem;
    font-weight: 800;
}

.banner-meta {
    color: #aab6ca;
    font-size: 0.9rem;
}

.banner-timer {
    margin-left: auto;
    color: #ffd4ff;
    font-size: 1.05rem;
    font-weight: 800;
}

.banner-timer.warning {
    color: #ff7a90;
}

.draft-admin-bar {
    justify-content: flex-start;
}

.draft-admin-btn {
    background: rgba(35, 18, 60, 0.75);
    color: #edf2ff;
    border: 1px solid rgba(190, 120, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.draft-admin-btn:hover {
    background: rgba(120, 0, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(200, 80, 255, 0.22);
}

.draft-workspace {
    display: block;
    position: relative;
}

.draft-board-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1.35fr) 480px;
    gap: 18px;
    align-items: start;
}

.draft-feed-shell {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.draft-feed-shell {
    position: fixed;
    width: min(410px, calc(100vw - 40px));
    z-index: 1400;
}

.draft-feed-shell.is-hidden {
    display: none;
}

.draft-panel {
    min-height: 0;
    padding: 20px 18px 18px;
    border-radius: 20px;
}

.draft-feed-panel {
    min-height: 420px;
}

.draft-panel-head {
    justify-content: space-between;
}

.draft-panel-head h2 {
    margin: 0.35rem 0 0;
    color: #f7fbff;
    font-size: 1.1rem;
}

.draft-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.draft-feed-peek-btn {
    position: fixed;
    z-index: 1401;
    right: 0;
}

.draft-feed-edge-toggle,
.draft-feed-peek-btn {
    position: absolute;
    top: 20px;
    left: -22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, rgba(209, 3, 184, 0.92), rgba(93, 124, 255, 0.94));
    color: #f6f9ff;
    box-shadow: 0 14px 28px rgba(93, 124, 255, 0.2);
    cursor: pointer;
}

.draft-feed-peek-btn {
    position: fixed;
    left: auto;
    right: 0;
    top: calc(var(--header-height, 60px) + 22px) !important;
    border-radius: 12px 0 0 12px;
}

.draft-feed-edge-arrow {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.draft-feed-drag-handle {
    cursor: grab;
}

.draft-feed-edge-toggle[hidden],
.draft-feed-peek-btn[hidden] {
    display: none !important;
}

.captains-list,
.roster-grid,
.draft-log-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captain-box {
    padding: 16px 14px 14px;
    border-radius: 16px;
}

.captain-box h3 {
    margin: 0 0 0.35rem;
    color: #f5f8ff;
    font-size: 0.8rem;
}

.captain-name {
    color: #e7edff;
    font-weight: 700;
}

.captain-meta,
.captain-seed {
    font-size: 0.82rem;
    line-height: 1.45;
}

.current-captain {
    background:
        linear-gradient(135deg, rgba(209, 3, 184, 0.18), rgba(93, 124, 255, 0.16)),
        linear-gradient(180deg, rgba(16, 20, 31, 0.95), rgba(12, 15, 24, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(93, 124, 255, 0.18);
}

.next-captain {
    border-color: rgba(93, 124, 255, 0.25);
}

.pool-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.draft-search {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 19, 0.9);
    color: #f6f9ff;
    font-size: 0.92rem;
}

.draft-search:focus {
    outline: none;
    border-color: rgba(93, 124, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(93, 124, 255, 0.12);
}

.pool-meta {
    color: #a7b2c6;
    font-size: 0.84rem;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
}

.draft-player-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 74px;
    padding: 10px 10px 9px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.draft-player-card:hover:not(:disabled) {
    background: rgba(120, 0, 255, 0.2);
    border-color: rgba(190, 120, 255, 0.48);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(93, 124, 255, 0.18);
}

.draft-player-card:disabled {
    cursor: default;
}

.locked-player-card {
    opacity: 0.72;
}

.player-card-name {
    color: #f5f8ff;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
    word-break: break-word;
}

.player-card-discord {
    font-size: 0.74rem;
    line-height: 1.18;
    color: #9dabc2;
    word-break: break-word;
}

.player-card-guest-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffd6a3;
    border: 1px solid rgba(255, 175, 64, 0.3);
    background: rgba(255, 145, 77, 0.12);
}

.guest-player-card {
    border-color: rgba(255, 175, 64, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 145, 77, 0.08), rgba(255, 196, 0, 0.02)),
        linear-gradient(180deg, rgba(16, 20, 31, 0.92), rgba(12, 15, 24, 0.96));
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    grid-auto-rows: auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 16px 14px 14px;
    border-radius: 12px;
}

.team-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.team-card-title {
    color: #f5f8ff;
    font-size: 0.8rem;
    font-weight: 800;
}

.team-card-subtitle {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.team-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f7fbff;
    font-size: 0.82rem;
    font-weight: 700;
}

.current-team {
    background:
        linear-gradient(135deg, rgba(93, 124, 255, 0.16), rgba(43, 201, 144, 0.09)),
        linear-gradient(180deg, rgba(16, 20, 31, 0.95), rgba(12, 15, 24, 0.98));
}

.team-player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compact-team-player-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.team-player-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 58px;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.captain-player-row {
    background: rgba(255, 191, 87, 0.12);
}

.team-player-name {
    color: #eef4ff;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.team-player-meta {
    color: #98a8c0;
    font-size: 0.72rem;
    line-height: 1.35;
}

.empty-roster-row {
    justify-content: center;
    align-items: center;
    min-height: 72px;
    color: #94a2b8;
    grid-column: 1 / -1;
}

.draft-log-container {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.draft-log-container::-webkit-scrollbar {
    width: 6px;
}

.draft-log-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

.log-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 62px;
    padding: 11px 14px;
    border-radius: 14px;
    border-left: 4px solid transparent;
}

.log-msg {
    width: 100%;
    color: #e8edf8;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    word-break: break-word;
}

.log-time {
    font-size: 0.76rem;
    line-height: 1.3;
    white-space: nowrap;
}

.log-pick {
    border-left-color: #4caf50;
}

.log-auto_pick {
    border-left-color: #ff9800;
}

.log-undo {
    border-left-color: #f44336;
}

.log-pause {
    border-left-color: #9e9e9e;
}

.log-resume {
    border-left-color: #2196f3;
}

.log-draft_started {
    border-left-color: #673ab7;
}

.log-draft_completed {
    border-left-color: #2bc990;
}

.log-auto_pick_enabled,
.log-auto_pick_disabled {
    border-left-color: #f5b942;
}

.draft-empty-state {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: #93a2ba;
    text-align: center;
}

.draft-complete-mode .draft-summary-grid,
.draft-complete-mode .draft-admin-bar,
.draft-complete-mode .order-panel,
.draft-complete-mode .pool-panel,
.draft-complete-mode .draft-live-banner-shell,
.draft-complete-mode .draft-feed-shell,
.draft-complete-mode .draft-feed-peek-btn {
    display: none !important;
}

.draft-complete-mode .draft-board-grid {
    grid-template-columns: minmax(0, 1fr);
}

.draft-complete-mode .roster-panel {
    min-height: 0;
    padding: 16px 14px 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(8, 11, 18, 0.96), rgba(7, 10, 16, 0.98));
    border-color: rgba(120, 145, 190, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 26px rgba(0, 0, 0, 0.2);
}

.draft-complete-mode .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    grid-auto-rows: auto;
    overflow: visible;
}

.draft-complete-mode .team-card {
    min-height: 0;
    padding: 11px 10px 10px;
    border-radius: 10px;
    border-color: rgba(160, 176, 210, 0.2);
    background:
        linear-gradient(180deg, rgba(20, 26, 39, 0.96), rgba(14, 19, 30, 0.98));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.draft-complete-mode .team-card-head {
    margin-bottom: 8px;
}

.draft-complete-mode .team-card-title {
    font-size: 0.78rem;
}

.draft-complete-mode .team-card-subtitle {
    margin-top: 0.2rem;
    font-size: 0.74rem;
}

.draft-complete-mode .team-card-count {
    min-width: 50px;
    min-height: 30px;
    font-size: 0.74rem;
}

.draft-complete-mode .compact-team-player-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.draft-complete-mode .team-player-row {
    min-width: 0;
    min-height: 48px;
    padding: 5px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.draft-complete-mode .team-player-name {
    font-size: 0.68rem;
}

.draft-complete-mode .team-player-meta {
    font-size: 0.68rem;
}

.draft-complete-mode .roster-panel {
    overflow: visible;
}

@media (max-width: 1440px) {
    .draft-room-hero-content,
    .draft-board-grid {
        grid-template-columns: 1fr;
    }

    .roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 1100px) {
    .draft-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .draft-summary-grid {
        grid-template-columns: 1fr;
    }

    .draft-live-banner,
    .team-card-head,
    .team-player-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-timer {
        margin-left: 0;
    }

    .player-grid {
        grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    }

    .roster-grid,
    .compact-team-player-list {
        grid-template-columns: 1fr;
    }

    .draft-complete-mode .roster-grid {
        grid-template-columns: 1fr;
    }

    .draft-feed-shell {
        width: min(388px, calc(100vw - 32px));
    }

    .draft-feed-peek-btn {
        right: 0;
    }
}
