/* Depth Chart page styles - extracted from inline <style>. References brand-tokens.css variables. */

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--tp-bg);
}

#depth-chart-main {
    flex: 1 0 auto;
    min-height: 100vh;
    padding-top: 72px !important;
    background:
        radial-gradient(circle at top right, rgba(56, 182, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #edf4fb 0%, #f8fafc 20%, #f1f5f9 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#depth-chart-main h1,
#depth-chart-main h2,
#depth-chart-main h3,
#depth-chart-main h4 {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ===== HERO ===== */
.dc-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 24px 100px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #162d50 42%, #19385f 72%, #10233b 100%);
    text-align: center;
    isolation: isolate;
}

.dc-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 84px;
    background: linear-gradient(to top, var(--tp-bg), transparent);
    z-index: 1;
    pointer-events: none;
}

.dc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.dc-hero h1 {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.dc-hero-sub {
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

/* ===== SHELL ===== */
.dc-shell {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: -64px auto 0;
    padding: 0 24px 64px;
}

/* ===== TEAM GRID SELECTOR ===== */
.dc-team-picker {
    padding: 24px 28px 28px;
}

.dc-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dc-picker-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-picker-title h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tp-ink);
}

.dc-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--tp-r-pill);
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-muted);
}

.dc-update-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tp-green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.dc-search-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.dc-search {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-r-md);
    background: var(--tp-surface);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
}

.dc-search:focus {
    border-color: var(--tp-blue-glow);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
    background: #fff;
}

.dc-search.dc-search--has-results {
    border-radius: var(--tp-r-md) var(--tp-r-md) 0 0;
}

.dc-search::placeholder {
    color: var(--tp-soft);
    font-weight: 500;
}

.dc-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--tp-soft);
    pointer-events: none;
    z-index: 1;
}

.dc-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--tp-border);
    border-top: none;
    border-radius: 0 0 var(--tp-r-md) var(--tp-r-md);
    background: #fff;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
    display: none;
}

.dc-autocomplete.dc-open {
    display: block;
}

.dc-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.dc-ac-item:hover,
.dc-ac-item.dc-ac-active {
    background: var(--tp-surface);
}

.dc-ac-item + .dc-ac-item {
    border-top: 1px solid var(--tp-border-light);
}

.dc-ac-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.1);
}

.dc-ac-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dc-ac-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-ac-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-soft);
}

.dc-ac-empty {
    padding: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--tp-soft);
}

.dc-browse-label {
    margin-top: 20px;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-soft);
}

.dc-conf-section {
    margin-top: 6px;
}

.dc-conf-section + .dc-conf-section {
    margin-top: 20px;
}

.dc-conf-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tp-ink);
    transition: color 0.15s ease;
}

.dc-conf-toggle:hover {
    color: var(--tp-blue);
}

.dc-conf-toggle::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tp-border);
}

.dc-conf-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--tp-soft);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-conf-section.dc-collapsed .dc-conf-chevron {
    transform: rotate(-90deg);
}

.dc-conf-divisions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: hidden;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.dc-conf-divisions-wrap {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-conf-divisions-wrap > .dc-conf-divisions {
    min-height: 0;
}

.dc-conf-section.dc-collapsed .dc-conf-divisions-wrap {
    grid-template-rows: 0fr;
}

.dc-conf-section.dc-collapsed .dc-conf-divisions {
    opacity: 0;
    pointer-events: none;
}

.dc-div-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-div-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tp-soft);
    padding-left: 2px;
}

.dc-div-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.dc-team-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    border-radius: var(--tp-r-md);
    border: 2px solid transparent;
    background: var(--tp-surface);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dc-team-tile:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.dc-team-tile.active {
    border-color: var(--tile-color, #2563eb);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 0 0 2px color-mix(in srgb, var(--tile-color, #2563eb) 16%, transparent);
}

.dc-team-tile.dc-hidden {
    display: none;
}

.dc-tile-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 3px rgba(0,0,0,0.12);
}

.dc-tile-name {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--tp-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-team-tile.active .dc-tile-name {
    color: var(--tp-ink);
}

/* ===== DEPTH CHART DISPLAY ===== */
.dc-chart-shell {
    margin-top: 20px;
}

.dc-team-header {
    position: relative;
    overflow: hidden;
    padding: 24px 28px;
    border-radius: 20px;
    color: var(--team-text, #ffffff);
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.45);
}

.dc-team-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--team-primary, var(--brand-navy)) 92%, #000),
        color-mix(in srgb, var(--team-primary, var(--brand-navy)) 68%, #1a2a44));
    z-index: 0;
}

.dc-team-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: -140px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--team-secondary, #38b6ff) 22%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dc-team-header > * {
    position: relative;
    z-index: 1;
}

.dc-team-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dc-team-name-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dc-team-abbr-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--team-text, #fff);
}

.dc-team-name-text h3 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.dc-team-name-text p {
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: color-mix(in srgb, var(--team-text, #ffffff) 58%, transparent);
}

.dc-team-stats {
    display: flex;
    gap: 8px;
}

.dc-team-stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.dc-team-stat-pill strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--team-text, #ffffff);
}

.dc-team-stat-pill span {
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--team-text, #ffffff) 56%, transparent);
}

/* ===== POSITION GRID ===== */
.dc-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.dc-position-card {
    overflow: hidden;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-r-lg);
    background: #fff;
    transition: all 0.2s ease;
}

.dc-position-card:hover {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.dc-position-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--tp-border-light);
}

.dc-position-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dc-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.dc-position-badge[data-pos="QB"] {
    background: var(--brand-pos-qb-bg);
    color: var(--brand-pos-qb-text);
}
.dc-position-badge[data-pos="RB"] {
    background: var(--brand-pos-rb-bg);
    color: var(--brand-pos-rb-text);
}
.dc-position-badge[data-pos="WR"] {
    background: var(--brand-pos-wr-bg);
    color: var(--brand-pos-wr-text);
}
.dc-position-badge[data-pos="TE"] {
    background: var(--brand-pos-te-bg);
    color: var(--brand-pos-te-text);
}
.dc-position-badge[data-pos="K"] {
    background: var(--brand-pos-k-bg);
    color: var(--brand-pos-k-text);
}

.dc-position-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tp-ink);
}

.dc-position-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-soft);
}

.dc-player-list {
    list-style: none;
    margin: 0;
    padding: 6px 10px 10px;
}

.dc-player-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.12s ease;
}

.dc-player-item:hover {
    background: rgba(248, 250, 252, 0.9);
}

.dc-player-item:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
    background: rgba(239, 246, 255, 0.95);
}

.dc-player-item.dc-starter {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.6));
}

.dc-player-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dc-starter .dc-player-slot {
    background: color-mix(in srgb, var(--team-primary, #2563eb) 14%, white);
    color: color-mix(in srgb, var(--team-primary, #2563eb) 80%, #0f172a);
}

.dc-backup .dc-player-slot {
    background: var(--tp-surface);
    color: var(--tp-soft);
}

.dc-player-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tp-text);
}

.dc-starter .dc-player-name {
    font-weight: 700;
    color: var(--tp-ink);
}

/* ===== EMPTY / LOADING ===== */
.dc-empty {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(248,250,252,0.95));
}

.dc-empty h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--tp-ink);
}

.dc-empty p {
    max-width: 480px;
    margin: 10px auto 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tp-muted);
}

.dc-empty-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: linear-gradient(180deg, rgba(254,242,242,0.9), rgba(255,255,255,0.96));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
    .dc-position-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #depth-chart-main {
        padding-top: 64px !important;
    }

    .dc-hero {
        padding: 30px 16px 84px;
    }

    .dc-hero h1 {
        font-size: 32px;
    }

    .dc-hero-sub {
        font-size: 14px;
    }

    .dc-shell {
        margin-top: -52px;
        padding: 0 12px 40px;
    }

    .dc-team-picker {
        padding: 18px 16px 20px;
    }

    .dc-search-wrap {
        max-width: 100%;
    }

    .dc-conf-divisions {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .dc-div-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .dc-tile-swatch {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 10px;
    }

    .dc-team-header {
        padding: 18px 16px;
    }

    .dc-team-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dc-team-name-text h3 {
        font-size: 24px;
    }

    .dc-team-stats {
        width: 100%;
    }

    .dc-team-stat-pill {
        flex: 1;
    }

    .dc-position-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dc-conf-divisions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
    }

    .dc-team-tile {
        padding: 8px 2px 6px;
    }

    .dc-tile-name {
        font-size: 9px;
    }

    .dc-position-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .dc-conf-divisions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 6px;
    }

    .dc-div-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .dc-team-tile {
        padding: 6px 2px 5px;
    }

    .dc-tile-swatch {
        width: 26px;
        height: 26px;
        font-size: 9px;
        border-radius: 5px;
    }

    .dc-tile-name {
        font-size: 8px;
    }
}

/* ===== CARD ENTER ANIMATION ===== */
@keyframes dc-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dc-position-card {
    animation: dc-card-enter 0.35s ease-out both;
}

.dc-position-card:nth-child(1) { animation-delay: 0s; }
.dc-position-card:nth-child(2) { animation-delay: 0.05s; }
.dc-position-card:nth-child(3) { animation-delay: 0.1s; }
.dc-position-card:nth-child(4) { animation-delay: 0.15s; }
.dc-position-card:nth-child(5) { animation-delay: 0.2s; }

/* ===== PLAYER CARD ===== */
.pc-card {
    position: fixed;
    z-index: 100;
    width: 320px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-family: 'Inter', sans-serif;
}
.pc-card.pc-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pc-accent { height: 4px; width: 100%; }
.pc-body { padding: 16px 18px 14px; }
.pc-info { min-width: 0; }
.pc-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 3px;
}
.pc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 12px;
}
.pc-pos-badge,
.pc-team-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.pc-sub {
    color: #64748b;
    font-weight: 500;
}
.pc-bio {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 1.5;
}
.pc-bio-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #475569;
    border-radius: 50%;
    margin: 0 6px;
    vertical-align: middle;
}
.pc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}
.pc-stat {
    display: flex;
    flex-direction: column;
}
.pc-stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    line-height: 1;
    margin-bottom: 2px;
}
.pc-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
}
.pc-footer {
    padding: 10px 18px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pc-value-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.pc-cta {
    font-size: 11px;
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}
.pc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.pc-backdrop.pc-show {
    display: block;
    opacity: 1;
}
.pc-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Inter', sans-serif;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}
.pc-sheet.pc-show {
    display: block;
    transform: translateY(0);
}
.pc-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 10px auto 0;
}
.pc-sheet-accent {
    height: 4px;
    width: 100%;
    margin-top: 10px;
}
.pc-sheet-body {
    padding: 18px 20px 8px;
}
.pc-sheet .pc-name {
    font-size: 20px;
    margin-bottom: 5px;
}
.pc-sheet .pc-meta {
    margin-bottom: 14px;
    font-size: 13px;
}
.pc-sheet .pc-bio {
    font-size: 12px;
    margin-bottom: 14px;
}
.pc-sheet .pc-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.pc-sheet .pc-stat-label { font-size: 10px; margin-bottom: 3px; }
.pc-sheet .pc-stat-value { font-size: 17px; }
.pc-sheet-footer {
    padding: 14px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pc-sheet-footer .pc-value-pill { font-size: 12px; padding: 4px 12px; }
.pc-sheet-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: #1e40af;
    color: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    min-width: 180px;
    flex: 1 1 220px;
}
.pc-sheet-cta:hover { background: #2563eb; }
@media (max-width: 480px) {
    .pc-sheet-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .pc-sheet-footer .pc-value-pill {
        align-self: flex-start;
    }
    .pc-sheet-cta {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .pc-card { display: none !important; }
}
@media (min-width: 769px) {
    .pc-backdrop, .pc-sheet { display: none !important; }
}
