:root {
    color-scheme: dark;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #0d1117;
    color: #e6edf3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(35, 134, 54, 0.16),
            transparent 34rem
        ),
        #0d1117;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
.button,
input,
textarea {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 80px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: 1.25rem;
}

.eyebrow {
    margin-bottom: 8px;
    color: #3fb950;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.muted {
    color: #8b949e;
}

.small {
    font-size: 0.86rem;
}

.header-actions,
.button-row,
.upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions a {
    padding: 10px 14px;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #161b22;
}

.panel,
.player-panel,
.video-card,
.stat,
.empty-state {
    border: 1px solid #30363d;
    border-radius: 12px;
    background: rgba(22, 27, 34, 0.94);
}

.panel,
.player-panel,
.empty-state {
    padding: 22px;
    margin-bottom: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 30px;
}

.stat {
    padding: 18px;
}

.stat span {
    display: block;
    color: #8b949e;
    font-size: 0.85rem;
}

.stat strong {
    display: block;
    margin-top: 5px;
    font-size: 1.35rem;
}

.video-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.video-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.video-card h3 {
    overflow-wrap: anywhere;
}

.video-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0 20px;
}

.video-card dl div {
    min-width: 0;
}

dt {
    color: #8b949e;
    font-size: 0.78rem;
}

dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid rgba(63, 185, 80, 0.45);
    border-radius: 999px;
    background: rgba(46, 160, 67, 0.12);
    color: #7ee787;
    font-size: 0.75rem;
}

.badge.subtle {
    border-color: #30363d;
    background: #21262d;
    color: #8b949e;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #238636;
    border-radius: 8px;
    background: #238636;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
.button:hover {
    background: #2ea043;
    text-decoration: none;
}

button.secondary,
.button.secondary {
    border-color: #30363d;
    background: #21262d;
    color: #e6edf3;
}

button.secondary:hover,
.button.secondary:hover {
    background: #30363d;
}

.video-card .button {
    margin-top: auto;
}

input,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #30363d;
    border-radius: 8px;
    outline: none;
    background: #0d1117;
    color: #e6edf3;
}

input:focus,
textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input[type="file"] {
    flex: 1;
    min-width: 240px;
}

label {
    display: block;
    margin-bottom: 16px;
    color: #c9d1d9;
    font-size: 0.9rem;
}

label input,
label textarea {
    margin-top: 7px;
}

progress {
    width: 100%;
    height: 18px;
    margin-top: 12px;
}

.player-panel video {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 8px;
    background: #000;
}

.player-time {
    margin-top: 12px;
    color: #8b949e;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metadata-grid .wide {
    grid-column: 1 / -1;
}

.hash {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.compact {
    margin: -4px 0 18px;
}

.compact button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.78rem;
}

.flash {
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.flash.success {
    border-color: #238636;
    background: rgba(46, 160, 67, 0.13);
}

.flash.error {
    border-color: #f85149;
    background: rgba(248, 81, 73, 0.13);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px;
    border-bottom: 1px solid #30363d;
    text-align: left;
    vertical-align: top;
}

th {
    color: #8b949e;
    font-size: 0.8rem;
}

.clip-list {
    margin: 0;
    padding-left: 20px;
}

.clip-list li {
    margin: 10px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
}

@media (max-width: 760px) {
    .topbar {
        flex-direction: column;
    }

    .stats-grid,
    .two-columns,
    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .metadata-grid .wide {
        grid-column: auto;
    }
}

/* === TTFLUX_THEME_TT_GERLAND_BEGIN === */
:root {
    --club-bg: #050d1b;
    --club-panel: rgba(10, 29, 55, 0.95);
    --club-panel-2: rgba(14, 42, 79, 0.92);
    --club-line: rgba(105, 169, 239, 0.24);
    --club-blue: #2689ff;
    --club-blue-light: #70c0ff;
    --club-red: #df2638;
    --club-white: #f6f9ff;
    --club-muted: #9cb1ca;
    color-scheme: dark;
    background: var(--club-bg);
    color: var(--club-white);
}
body {
    background: radial-gradient(circle at 88% 2%, rgba(34,113,224,.28), transparent 31rem), linear-gradient(145deg,#040a14 0%,#07152a 48%,#08203e 100%);
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size: 40px 40px;
}
.shell { width: min(1240px, calc(100% - 34px)); padding-top: 0; }
.club-topbar {
    position: relative; min-height: 174px; align-items: center; margin: 0 calc((100vw - min(1240px, calc(100vw - 34px))) / -2) 28px;
    padding: 30px max(28px, calc((100vw - 1240px) / 2)); overflow: hidden; border-bottom: 1px solid var(--club-line);
    background: linear-gradient(90deg,rgba(5,17,34,.99) 0%,rgba(7,29,61,.95) 58%,rgba(10,63,136,.74) 100%), repeating-linear-gradient(124deg,transparent 0 60px,rgba(56,145,255,.08) 61px 63px);
}
.club-topbar::before,.club-topbar::after { content:""; position:absolute; right:-8%; width:52%; height:4px; transform:rotate(-12deg); border-radius:99px; pointer-events:none; }
.club-topbar::before { top:50%; background:linear-gradient(90deg,transparent,var(--club-blue),#a2d8ff,transparent); box-shadow:0 0 20px rgba(38,137,255,.78); }
.club-topbar::after { top:59%; background:linear-gradient(90deg,transparent,var(--club-red),transparent); box-shadow:0 0 13px rgba(223,38,56,.58); }
.club-topbar > * { position: relative; z-index: 2; }
.club-corner-logo { flex:0 0 auto; display:grid; place-items:center; width:94px; height:94px; margin-right:4px; border-radius:24px; background:radial-gradient(circle,rgba(48,139,255,.18),transparent 68%); }
.club-corner-logo img { width:88px; height:88px; object-fit:contain; filter:drop-shadow(0 13px 24px rgba(0,0,0,.42)); }
.club-topbar h1 { margin-bottom:8px; font-size:clamp(2rem,4vw,3.35rem); letter-spacing:-.04em; }
.eyebrow { color:var(--club-blue-light); letter-spacing:.15em; }
.muted { color:var(--club-muted); }
.header-actions a,.panel,.player-panel,.video-card,.stat,.empty-state { border-color:var(--club-line); background:linear-gradient(155deg,var(--club-panel-2),var(--club-panel)); box-shadow:0 20px 52px rgba(0,0,0,.26); }
.panel,.player-panel,.video-card,.stat,.empty-state { border-radius:15px; }
.panel h2,.video-card h3,.topbar h1 { color:var(--club-white); }
.stats-grid { gap:16px; }
.stat { position:relative; overflow:hidden; padding:20px; }
.stat::after { content:""; position:absolute; top:16px; right:14px; width:3px; height:45px; border-radius:99px; background:linear-gradient(var(--club-blue),var(--club-red)); }
.stat strong { color:#fff; font-size:1.48rem; }
.video-card { overflow:hidden; transition:transform .16s ease,border-color .16s ease; }
.video-card:hover { transform:translateY(-3px); border-color:rgba(84,164,255,.55); }
.video-card::before { content:"TT GERLAND · LYON 7ᵉ"; display:block; padding:10px 18px; border-bottom:1px solid var(--club-line); background:linear-gradient(90deg,rgba(18,73,143,.42),rgba(8,29,56,.7)),linear-gradient(120deg,transparent 65%,rgba(223,38,56,.6) 66% 67%,transparent 68%); color:rgba(220,237,255,.78); font-size:.66rem; font-weight:800; letter-spacing:.12em; }
.video-card h3 a { color:#fff; }
.video-card h3 a:hover { color:var(--club-blue-light); }
.badge { border-color:rgba(65,151,255,.45); background:rgba(32,110,207,.18); color:#8dccff; }
.badge.subtle { border-color:var(--club-line); background:rgba(255,255,255,.035); color:var(--club-muted); }
button,.button { border-color:var(--club-blue); background:linear-gradient(135deg,#2689ff,#1357b5); box-shadow:0 8px 20px rgba(13,82,173,.24); }
button:hover,.button:hover { background:linear-gradient(135deg,#3a98ff,#1764cb); transform:translateY(-1px); }
button.secondary,.button.secondary,.header-actions a { border-color:rgba(89,164,249,.35); background:rgba(15,50,94,.78); color:#e8f3ff; }
input,textarea { border-color:var(--club-line); background:rgba(3,14,28,.75); color:var(--club-white); }
input:focus,textarea:focus { border-color:var(--club-blue); box-shadow:0 0 0 3px rgba(38,137,255,.15); }
progress { accent-color:var(--club-blue); }
.player-panel { position:relative; overflow:hidden; }
.player-panel::before { content:"TT GERLAND · LYON 7ᵉ"; position:absolute; z-index:3; top:33px; right:34px; padding:6px 9px; border-radius:8px; background:rgba(3,13,27,.66); color:rgba(255,255,255,.78); font-size:.65rem; font-weight:800; letter-spacing:.1em; pointer-events:none; }
.player-panel video { border:1px solid rgba(89,164,249,.28); box-shadow:0 15px 40px rgba(0,0,0,.36); }
.metadata-grid,.video-card dl { color:#dceafa; }
dt { color:var(--club-muted); letter-spacing:.06em; text-transform:uppercase; }
.flash.success { border-color:rgba(57,207,119,.5); background:rgba(35,145,81,.13); }
.flash.error { border-color:rgba(223,38,56,.55); background:rgba(223,38,56,.13); }
table th,table td { border-color:var(--club-line); }
.back-link { color:#9bc9f4; }
body::after { content:"TRAVAIL  ·  PARTAGE  ·  PROGRESSION"; display:block; max-width:720px; margin:10px auto 34px; padding-top:18px; border-top:2px solid transparent; border-image:linear-gradient(90deg,transparent,var(--club-red),var(--club-blue),transparent) 1; color:#8ea6c2; text-align:center; font-size:.68rem; font-weight:800; letter-spacing:.22em; }
@media (max-width:760px) {
    .club-topbar { min-height:150px; flex-direction:row; align-items:center; padding:22px 18px; }
    .club-corner-logo { width:68px; height:68px; }
    .club-corner-logo img { width:64px; height:64px; }
    .club-topbar .header-actions { width:100%; }
    .player-panel::before { top:27px; right:28px; font-size:.56rem; }
}
/* === TTFLUX_THEME_TT_GERLAND_END === */

/* TTFLUX_TITLES_PLAYERS_V1 */

.player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.55rem 0;
}

.player-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(80, 186, 255, 0.35);
    border-radius: 999px;
    background: rgba(19, 115, 180, 0.16);
    font-size: 0.82rem;
    font-weight: 650;
}

.card-edit-button {
    margin-top: 0.45rem;
}

.edit-video-panel {
    max-width: 900px;
}

.edit-video-panel fieldset {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid rgba(160, 190, 220, 0.25);
    border-radius: 0.8rem;
}

.edit-video-panel legend {
    padding: 0 0.45rem;
    font-weight: 700;
}

.player-checklist {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.65rem;
}

.player-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(160, 190, 220, 0.18);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.player-option input {
    width: auto;
    margin: 0;
}

/* TTFLUX_PLAYBACK_PIPELINE_UI_V1 */

.upload-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin: 1rem 0 0.75rem;
}

.upload-stage {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(160, 190, 220, 0.2);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted, #9eb2c9);
}

.upload-stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(120, 150, 180, 0.2);
    font-weight: 750;
}

.upload-stage.active {
    border-color: rgba(55, 174, 255, 0.7);
    color: inherit;
}

.upload-stage.active .upload-stage-number {
    background: rgba(30, 145, 220, 0.7);
}

.upload-stage.done {
    border-color: rgba(74, 190, 125, 0.5);
}

.upload-stage.done .upload-stage-number {
    background: rgba(50, 165, 105, 0.7);
}

.upload-stage.failed {
    border-color: rgba(235, 90, 90, 0.7);
}

.upload-stage.failed .upload-stage-number {
    background: rgba(200, 60, 60, 0.75);
}

.playback-status.ready {
    border-color: rgba(70, 200, 125, 0.5);
    background: rgba(45, 155, 95, 0.18);
}

.playback-status.processing {
    border-color: rgba(60, 165, 245, 0.55);
    background: rgba(35, 125, 195, 0.18);
}

.playback-status.pending {
    border-color: rgba(210, 165, 65, 0.45);
    background: rgba(175, 125, 25, 0.16);
}

.playback-status.failed {
    border-color: rgba(235, 90, 90, 0.5);
    background: rgba(190, 55, 55, 0.17);
}

.playback-state-row {
    margin-top: 0.55rem;
}

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

/* TTFLUX_UI_REFRESH_V1 */

.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.2rem 1.25rem 2.75rem;
}

.topbar.club-topbar {
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0 1.5rem;
}

.club-topbar > div {
    min-width: 0;
}

.club-corner-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.topbar h1 {
    line-height: 1;
    letter-spacing: -0.03em;
}

.panel,
.stat,
.video-card {
    backdrop-filter: blur(10px);
}

.panel {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.stats-grid {
    gap: 0.9rem;
}

.stat {
    min-height: 88px;
    border-radius: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 0.95rem;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.video-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.8rem;
    margin-bottom: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.22s ease, filter 0.22s ease;
}

.video-card-thumb:hover .video-card-cover {
    transform: scale(1.035);
    filter: brightness(1.03);
}

.video-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(3, 10, 22, 0.8) 0%,
            rgba(3, 10, 22, 0.2) 42%,
            rgba(3, 10, 22, 0.06) 100%
        );
    pointer-events: none;
}

.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 14, 28, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.video-card-duration {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 2;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(4, 10, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.video-card .card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.video-card .badge {
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.33rem 0.48rem;
    border-radius: 999px;
}

.video-card h3 {
    margin: 0.35rem 0 0.55rem;
    font-size: 1rem;
    line-height: 1.25;
    min-height: 2.5em;
}

.video-card h3 a {
    text-decoration: none;
}

.video-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.7rem;
    margin: 0.4rem 0 0.7rem;
}

.video-card dl > div:first-child {
    display: none;
}

.video-card dt {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 0.12rem;
}

.video-card dd {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.25;
}

.video-card .button {
    width: 100%;
    justify-content: center;
    min-height: 2.35rem;
    border-radius: 0.72rem;
}

.video-card .button + .button {
    margin-top: 0.45rem;
}

.playback-state-row {
    margin-bottom: 0.45rem;
}

.player-panel video {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.upload-row {
    gap: 0.7rem;
}

input[type="file"] {
    border-radius: 0.7rem;
}

.header-actions a,
.button,
button {
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.header-actions a:hover,
.button:hover,
button:hover {
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .topbar.club-topbar {
        align-items: flex-start;
    }

    .club-corner-logo img {
        width: 64px;
        height: 64px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}

@media (max-width: 640px) {
    .shell {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card h3 {
        min-height: unset;
    }
}

/* TTFLUX_PUBLIC_DELETE_STYLE_V1 */

.delete-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.62rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.68);
    border-radius: 0.7rem;
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 140ms ease,
        border-color 140ms ease,
        transform 140ms ease;
}

.delete-button:hover,
.delete-button:focus-visible {
    border-color: #f87171;
    background: rgba(185, 28, 28, 0.58);
    color: #ffffff;
}

.delete-button:active {
    transform: translateY(1px);
}

.delete-button.compact {
    min-height: 32px;
    padding: 0.42rem 0.62rem;
    border-radius: 0.55rem;
    font-size: 0.76rem;
}

.media-actions {
    flex-wrap: wrap;
}

.clip-row .delete-inline-form {
    flex: 0 0 auto;
}

.header-actions {
    flex-wrap: wrap;
}

/* TTFLUX_EDIT_DELETE_ZONE_STYLE_V1 */

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 0.9rem;
    background:
        linear-gradient(
            135deg,
            rgba(127, 29, 29, 0.16),
            rgba(15, 23, 42, 0.2)
        );
}

.danger-zone-copy {
    max-width: 46rem;
}

.danger-zone-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.danger-zone h2 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 1rem;
}

.danger-zone p {
    margin: 0;
    color: #a9bad0;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .danger-zone .delete-button {
        width: 100%;
    }
}

/* TTFLUX_PLAYBACK_SPEED_STYLE_V1 */

.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.7rem;
}

.playback-speed-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a9bad0;
    font-size: 0.82rem;
    font-weight: 700;
}

.playback-speed-control select {
    min-height: 36px;
    padding: 0.4rem 1.9rem 0.4rem 0.6rem;
    border: 1px solid rgba(53, 133, 220, 0.46);
    border-radius: 0.55rem;
    background: #061b33;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}


/* TTFLUX_PING_SEPARATOR_V1 */

.ttflux-ping-separator {
    position: relative;
    width: min(720px, 92%);
    height: 28px;
    margin: 2.2rem auto 0.45rem auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0.96;
}

.ttflux-ping-separator__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.04) 0%,
            rgba(54,146,255,0.42) 18%,
            rgba(255,255,255,0.18) 50%,
            rgba(54,146,255,0.42) 82%,
            rgba(255,255,255,0.04) 100%
        );
}

.ttflux-ping-separator__post {
    position: absolute;
    bottom: 2px;
    width: 3px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        rgba(145, 198, 255, 0.9) 0%,
        rgba(59, 118, 214, 0.85) 100%
    );
    box-shadow: 0 0 10px rgba(65, 149, 255, 0.22);
}

.ttflux-ping-separator__post--left {
    left: calc(50% - 94px);
}

.ttflux-ping-separator__post--right {
    left: calc(50% + 92px);
}

.ttflux-ping-separator__net {
    position: relative;
    width: 184px;
    height: 18px;
    margin-bottom: 6px;
}

.ttflux-ping-separator__net-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(230, 243, 255, 0.95) 0%,
        rgba(175, 220, 255, 0.98) 50%,
        rgba(230, 243, 255, 0.95) 100%
    );
    box-shadow: 0 0 8px rgba(115, 190, 255, 0.18);
}

.ttflux-ping-separator__mesh {
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    bottom: 0;
    border-left: 1px solid rgba(160, 210, 255, 0.55);
    border-right: 1px solid rgba(160, 210, 255, 0.55);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(185, 225, 255, 0.18) 0px,
            rgba(185, 225, 255, 0.18) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(185, 225, 255, 0.12) 0px,
            rgba(185, 225, 255, 0.12) 1px,
            transparent 1px,
            transparent 6px
        );
    border-radius: 0 0 8px 8px;
}

.ttflux-ping-separator__ball {
    position: absolute;
    width: 12px;
    height: 12px;
    right: calc(50% - 142px);
    bottom: 14px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 35%,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,0.96) 45%,
            rgba(210,225,255,0.85) 100%
        );
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 14px rgba(120, 190, 255, 0.15);
}

.ttflux-ping-separator__ball::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 2px;
    left: 8px;
    top: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(90, 175, 255, 0.65) 0%,
        rgba(90, 175, 255, 0.18) 100%
    );
}

.ttflux-ping-separator__caption {
    width: 100%;
    text-align: center;
    margin: 0.2rem auto 1.5rem auto;
    font-size: 0.78rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: rgba(198, 221, 245, 0.72);
    text-shadow: 0 0 10px rgba(42, 108, 190, 0.12);
}

@media (max-width: 720px) {
    .ttflux-ping-separator {
        width: min(94%, 520px);
        margin-top: 1.6rem;
    }

    .ttflux-ping-separator__net {
        width: 140px;
    }

    .ttflux-ping-separator__post--left {
        left: calc(50% - 72px);
    }

    .ttflux-ping-separator__post--right {
        left: calc(50% + 70px);
    }

    .ttflux-ping-separator__ball {
        right: calc(50% - 110px);
    }

    .ttflux-ping-separator__caption {
        font-size: 0.68rem;
        letter-spacing: 0.18rem;
    }
}

/* TTFLUX_PING_NET_STYLE_V2 */

.ttflux-net-footer {
    width: 100%;
    margin: 2.6rem 0 1.3rem;
    text-align: center;
}

.ttflux-net-scene {
    position: relative;
    width: min(680px, 88%);
    height: 42px;
    margin: 0 auto;
}

.ttflux-net-table-line {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(66, 153, 225, 0.3) 12%,
            rgba(134, 197, 255, 0.68) 50%,
            rgba(66, 153, 225, 0.3) 88%,
            transparent
        );
    box-shadow: 0 0 12px rgba(56, 145, 235, 0.15);
}

.ttflux-net {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 190px;
    height: 28px;
    transform: translateX(-50%);
}

.ttflux-net-band {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #8abced,
            #d5edff 50%,
            #8abced
        );
    box-shadow: 0 0 8px rgba(115, 190, 255, 0.25);
}

.ttflux-net-mesh {
    position: absolute;
    top: 3px;
    right: 1px;
    bottom: 0;
    left: 1px;
    border-right: 1px solid rgba(126, 184, 235, 0.45);
    border-left: 1px solid rgba(126, 184, 235, 0.45);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(125, 181, 229, 0.22) 0,
            rgba(125, 181, 229, 0.22) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(125, 181, 229, 0.18) 0,
            rgba(125, 181, 229, 0.18) 1px,
            transparent 1px,
            transparent 7px
        );
}

.ttflux-net-post {
    position: absolute;
    z-index: 3;
    bottom: 4px;
    width: 4px;
    height: 35px;
    border-radius: 3px;
    background:
        linear-gradient(
            180deg,
            #9dd3ff,
            #367cb8
        );
    box-shadow: 0 0 8px rgba(70, 160, 235, 0.22);
}

.ttflux-net-post-left {
    left: calc(50% - 98px);
}

.ttflux-net-post-right {
    left: calc(50% + 94px);
}

.ttflux-net-ball {
    position: absolute;
    z-index: 4;
    top: 3px;
    left: calc(50% + 125px);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff 0,
            #f4f8ff 48%,
            #b9cce0 100%
        );
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.32),
        0 0 8px rgba(206, 235, 255, 0.24);
}

.ttflux-net-ball-trail {
    position: absolute;
    top: 9px;
    left: calc(50% + 138px);
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(104, 180, 247, 0.5),
            transparent
        );
    transform: rotate(-6deg);
    transform-origin: left center;
}

.ttflux-net-caption {
    margin: 0.4rem 0 0;
    color: rgba(159, 193, 224, 0.68);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .ttflux-net-scene {
        width: 90%;
    }

    .ttflux-net {
        width: 150px;
    }

    .ttflux-net-post-left {
        left: calc(50% - 78px);
    }

    .ttflux-net-post-right {
        left: calc(50% + 74px);
    }

    .ttflux-net-ball {
        left: calc(50% + 96px);
    }

    .ttflux-net-ball-trail {
        left: calc(50% + 108px);
        width: 40px;
    }

    .ttflux-net-caption {
        letter-spacing: 0.15em;
    }
}
