﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ece7f3;
    overflow-x: hidden;
}

    body.modal-open {
        overflow: hidden;
    }
.main,
main,
.page-content {
    background: #ece7f3;
    min-height: 100vh;
}

h2 {
    font-size: 1rem;
}

h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10%;
}

.yt-helper-title {
    display: flex;
    justify-content: center;
    border-bottom: 1px dotted #ccc;
}

.yt-helper-intro {
    font-size: medium;
}

h4 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10%;
}
/*
a, .btn-link {
    color: #fff;
}
*/
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    background-color: #e0e0e0;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #FF0000;
}

.validation-message {
    color: #FF0000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.chalk-title {
    font-family: 'Schoolbell', cursive;
    font-size: 48px;
    text-align: center;
    text-shadow: 1px 1px 1px #333;
    margin: 40px 0;
}

.btnexpand {
    border: none;
    background-color: transparent;
    color: #FF0000;
    font-size: 1.2em;
}

.editBtn, .deleteBtn {
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 0 3px #000;
}



.deleteBtn2 {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.titleLoop:hover {
    font-weight: 500;
}


.main-content {
    padding: 0.75%;
    align-self: center;
}

.main-placeholder {
    position: relative; /* ← NEW */
    padding-bottom: 3.5rem; /* ← room for the controls */
}

    .main-placeholder .video-actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: .25rem;
        background: rgba(255,255,255,0.9);
        border-top: 1px solid #eee;
        gap: .5rem;
        z-index: 2;
        margin-top: 0.5rem;
    }

        /* small button styling */
        .main-placeholder .video-actions button {
            border: none;
            background: #f0f0f0;
            padding: .25rem;
            border-radius: .5rem;
            cursor: pointer;
            transition: background .2s;
        }

            .main-placeholder .video-actions button:hover {
                background: #e0e0e0;
            }

.video-thumb-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

    .video-thumb-wrapper iframe,
    .youtube-placeholder {
        aspect-ratio: 16 / 9;
        border: none;
        border-radius: 10px;
        object-fit: cover;
    }

.board {
    display: grid;
    /* fewer, larger cards: each at least 500px wide */
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    border-radius: 1rem;
}
.boardDemo {
    display: grid;
    /* fewer, larger cards: each at least 500px wide 
    grid-template-columns: repeat(3, minmax(350px, 1fr));*/
    gap: 1.5rem;
    margin: 0 auto;
    border-radius: 1rem;
}

.video-cardHome {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5%;
    display: flex;
    flex-direction: column;
}

.video-cardHomeDemo {
    
    width:100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1%;
    display: flex;
    flex-direction: column;
}
.board-tile {
    overflow: hidden;
    /* …or a fixed height… */
}

.board-tile {   
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2%;

    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.board-tileDemo {
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: start;
}
    .board-tile:hover {
        box-shadow: 0 4px 10px rgba(229, 9, 20, 0.5); /* red shadow on hover */
    }

    .board-tile img {
        height: auto;
        border-radius: 0.5rem;
        background-color: rebeccapurple;
    }

    .board-tile a {
        text-decoration: none;
        font-weight: bold;
    }

    .board-tile iframe {
        border-radius: 0.5rem;
        width: auto;
    }

.video-grid {
    background: #f4f4f6;
    border-radius: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    padding: 1.5%;
    gap: 2.5%;
    margin-top: 1rem;
}

.author {
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 2.5%;
    font-size: .9rem;
    opacity: .85;
}

.notes {
    font-size: 0.85rem;
    color: rgb(105, 117, 137);
    margin-bottom: 1%;
    margin-top: 1.5%;
    white-space: pre-line;
    max-height: 5rem;
    overflow-y: auto;
}



div.segment-list {
    border-top: 1.5px dashed #ccc;
    margin: 5px 0;
    width: 100%;
    margin-bottom: 2%;
}

.segment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 28rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    scrollbar-width: thin;
}

    .segment-list li {
        display: flex;
        justify-content: space-between;
        padding: 0.15rem 0.35rem;
        font-size: 0.9rem;
    }

        .segment-list li input,
        .segment-list li button {
            /* match your board’s input sizing */
            font-size: .9rem;
            border-radius: 4px;
            border: 1px solid #ccc;
        }

            .segment-list li input.segment-label {
                flex: 5;
                font-size: small;
                text-align: left;
            }

            .segment-list li input.segment-time {
                flex: 1;
                text-align: right;
            }

        .segment-list li span.segment-label {
            flex: 3;
            font-size: small;
        }

        .segment-list li span.segment-time {
            flex: 1;
            text-align: right;
        }

        .segment-list li .segment-label2 {
            flex: 9;
            font-size: small;
        }

        .segment-list li .segment-time2 {
            flex: 3;
            text-align: right;
        }

div.segment-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-weight: 500;
}

.segment-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}

    .segment-row .segment-label {
        flex: 3;
        font-weight: 600;
    }

    .segment-row .segment-time {
        flex: 2;
        text-align: right;
        font-family: monospace;
    }

    .segment-row .segment-controls {
        flex: 0;
    }

.segment-label segment-label2 {
    width: 70% !important;
    font-size: 0.75rem !important;
}

.segment-controls {
}

    .segment-controls button {
        margin-left: 2px;
    }

.playBtn, .stopBtn {
    background-color: #d9c3c4;
    border: none;
    color: white;
    padding: 1.5%;
    border-radius: 4px;
    cursor: pointer;
}

    .playBtn:hover, .stopBtn:hover {
        background-color: #b2071080;
        transform: scale(1.2);
    }

.timer {
    font-size: x-large;
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.timer-text {
    font-weight: bold;
    color: #0057b7;
}

.timerSeconds {
    font-size: 1.25em;
    margin-left: 0.20em;
}

.titleLoop {
    font-size: 0.75em;
    font-weight: 700;
    margin: 1px 0 2px;
    text-align: center;
}

.search-bar {
    display: block;
    margin: 20px auto;
    padding: 10px 16px;
    width: 80%;
    max-width: 500px;
    font-size: 1.1em;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
/* container */
.search-row {
    display: flex;
    align-items: center;
    gap: 0; /* no gap so they look like one control */
    margin: .5rem auto 1rem auto; /* center on page */
    width: 99.45%;
    margin: 8px 0;
}

    .search-row input {
        flex: 1;
    }

.search-row2 {
    display: flex;
    align-items: center;
    gap: 0; /* no gap so they look like one control */
    width: 97%;
}

.youtube-search-box {
    flex: 1;
    padding: .7rem 1rem;
    background-color: #f1f1f1;
    border-radius: 9999px 0 0 9999px;
    border-right: none;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* your input, tweaked to pill-left and better padding */
.search-box {
    flex: 1;
    border: 1px solid #ccc;
    border-right: none; /* merges into the button */
    border-radius: 9999px 0 0 9999px;
    padding: .7rem 1rem;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

    /* focus ring for a11y */
    .search-box:focus {
        border-color: #b6002e; /* your accent */
        box-shadow: 0 0 0 3px rgba(182,0,46,.15);
    }

/* button styled to match ClipCut (black header + red accent) */
.search-btn {
    padding: .69rem 1rem;
    border: 1px solid #ccc;
    border-left: none; /* merges with input */
    background: #252525; /* black to match header */
    color: #fff;
    cursor: pointer;
    border-radius: 0 9999px 9999px 0; /* pill-right */
    transition: background .2s, transform .05s;
}

    .search-btn:hover {
        background: #1a1a1a;
    }

    .search-btn:active {
        transform: translateY(1px);
    }

    /* optional red accent variant */
    .search-btn.accent {
        background: #b6002e;
    }

        .search-btn.accent:hover {
            background: #960026;
        }

.search-btn2 {
    padding: .64rem 1rem;
    border: 1px solid #FF0000;
    border-left: none; /* merges with input */
    background: #252525; /* black to match header */
    color: #fff;
    cursor: pointer;
    border-radius: 0 9999px 9999px 0; /* pill-right */
    transition: background .2s, transform .05s;
}

    .search-btn2:hover {
        background: #1a1a1a;
    }

    .search-btn2:active {
        transform: translateY(1px);
    }

    /* optional red accent variant */
    .search-btn2.accent {
        background: #b6002e;
    }

        .search-btn2.accent:hover {
            background: #960026;
        }

.searchNV-btn {
    padding: .25rem 1rem;
    border: 1px solid #FF0000;
    border-left: none; /* merges with input */
    background: #252525; /* black to match header */
    color: #fff;
    cursor: pointer;
    border-radius: 0 9999px 9999px 0; /* pill-right */
    transition: background .2s, transform .05s;
}

    .searchNV-btn:hover {
        background: #1a1a1a;
    }

    .searchNV-btn:active {
        transform: translateY(1px);
    }

    /* optional red accent variant */
    .searchNV-btn.accent {
        background: #b6002e;
    }

        .searchNV-btn.accent:hover {
            background: #960026;
        }

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    position: absolute;
    top: 12%;
    right: 2%;
}

    .nav-links a:hover {
        text-decoration: underline;
    }

.navbar {
    background-color: #000000;
    color: #ffffff;
}

    .navbar a {
        color: #ffffff;
    }

        .navbar a:hover {
            color: #e50914;
        }

.topic-btn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

    .nav-links a:hover, .topic-btn:hover {
        text-decoration: underline;
    }

.topic-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.segmentLabel {
    width: 40%;
}

.timeInput {
    width: 20%;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 540px;
    width: 100%;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .modal-content h3 {
        font-size: 1.75rem;
        margin-bottom: 12px;
        color: #b6002e;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .modal-content input,
    .modal-content select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #ccc;
        border-radius: 0.5rem;
        font-size: 1rem;
        background-color: #f9f9f9;
        transition: border 0.2s, box-shadow 0.2s;
    }

        .modal-content input:focus,
        .modal-content select:focus {
            outline: none;
            border-color: #b6002e;
            box-shadow: 0 0 0 2px rgba(182, 0, 46, 0.15);
        }

.saveBtn {
    background-color: #b6002e;
    color: white;
}

    .saveBtn:hover {
        background-color: #ccc5c5;
    }

.saveBtnTopic {
    background-color: transparent;
    color: white;
    border: none;
}

.cancelBtn {
    background-color: #e0e0e0;
}

    .cancelBtn:hover {
        background-color: #cfcfcf;
    }


.segment-toolbar .toolbar-label {
    margin: 0;
    white-space: nowrap;
    font-weight:500;
    color:#333;
}

.segment-toolbar .toolbar-row {
    display: grid;
    grid-template-columns: 10.625rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.625rem; /* 10px */
    width: 100%;
}
.mentions-input {
    width:20% !important;
}
.segment-toolbar {
    display: flex;
    gap: 0.75rem;
    justify-content: center !important;
    padding:0.35rem;
}
.logout-link {
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    top: 0.5vw;
    right: 1.88%;
    position: absolute;
    font-weight: 550;
}
.segment-toolbar .toolbar-main {
    min-width: 0;
}

    .segment-toolbar .toolbar-main .mentions-input {
        width: 3rem !important;
        height:2.5rem;
    }

    .segment-toolbar .toolbar-right {
        width: 7.5rem; /* 120px */
    }

        .segment-toolbar .toolbar-right > * {
            width: 100%;
            height: 2.25rem; /* 36px */
        }

.all-toggle-btn {
    justify-self: start;
    min-width: 5.5rem;
    height: 2.25rem;
    padding: 0 0.9rem;
    border-radius: 0.85rem;
}


    .all-toggle-btn.is-active {
        border-color: #8b0000; /* or your theme */
        background: #8b0000;
        color: #fff;
    }

.position-select {
    height: 2.25rem; /* 36px */
}

@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.topic-card {
    transition: all 0.2s ease;
}

.inactive-topic {
    opacity: 0.6;
}

.topic-card.drag-over {
    outline: 2px dashed blue;
    background-color: #eef;
}

.page-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: 2px;
}

.page-main {
    font-weight: 600;
}

.page-sub {
    font-size: 12px;
    opacity: .7;
}


.floating-add {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    background-color: #b6002e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
}

.floating-add_sm {
    background-color: #b6002e;
    color: white;
    border: none;
    border-radius: 50%;
    height: 4.5%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin: 0.25%;
    margin-top: 2%;
}

.inline-add-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 0.5rem;
    background-color: #FF0000;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.chatgptPromp {
    width: 85%;
}

.add-segment-btn {
    background-color: transparent;
    border: 1px dashed #aaa;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
    width: 25%;
}

    .add-segment-btn:hover {
        background-color: #eee;
    }

.sort-btn {
    padding: 0.25rem 0.5rem;
    height: 70%;
    display: none;
    background-color: #b6002e;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
}

    .sort-btn:hover {
        background-color: #b71c1c;
    }

.floating-add:hover {
    background-color: #531db3;
}

.show-more-pill {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 0.5rem 1rem;
    background: #ddd;
    border-radius: 999px;
    cursor: pointer;
}

.active-topic {
    box-shadow: 0 0 5px red;
    font-weight: 600;
}

.topic-name {
    flex: 1;
}

.topic-card.active-topic {
    background: #fff;
    border: 1px solid #b6002e;
    box-shadow: 0 2px 10px rgba(182, 0, 46, 0.2);
}

    .topic-card.active-topic .topic-name {
        font-weight: 700;
    }
.topic-card.active {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.topic-actions button {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    font-size: 1em;
    padding: 0;
}

.edit-topic-input {
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
}

.instagram-preview {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 12px;
    font-weight: bold;
    color: #555;
}


.toggle-button {
    background-color: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    transition: transform 0.2s ease;
}

    .toggle-button:hover {
        transform: scale(1.2);
    }


progress {
    width: 100px;
    height: 10px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 4px;
    background-color: #eee;
    overflow: hidden;
}

    progress::-webkit-progress-bar {
        background-color: #eee;
        border-radius: 4px;
    }

    progress::-webkit-progress-value {
        background-image: linear-gradient(to right, #00c6ff, #0072ff);
        border-radius: 4px;
        transition: width 0.25s ease;
    }

    progress::-moz-progress-bar {
        background-image: linear-gradient(to right, #00c6ff, #0072ff);
        border-radius: 4px;
        transition: width 0.25s ease;
    }

.progress-container {
    width: 100px;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
    background-color: #00c6ff;
    border-radius: 5px;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

    .search-bar input {
        width: 400px;
        padding: 10px;
        font-size: 1rem;
        margin-right: 10px;
        border: none;
    }

    .search-bar button {
        padding: 10px 15px;
        font-size: 1rem;
    }

.searchingIcon {
    border: none;
    background-color: transparent;
}

.iframe-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* optional sticky header */
header {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: .5rem;
}

.youtube-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.youtube-container {
    display: flex;
    justify-content: center;
}

.ytp-title-channel {
    top: 9rem !important;
}

.inline-add2 {
    margin-left: 0.5rem; /* instead of auto */
    margin-right: 0.5rem;
    background-color: #b6002e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .inline-add2:hover {
        transform: scale(1.1);
    }

.topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.5rem;
}


.video-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-subtitle {
    font-size: 0.8rem;
    color: #888;
}

.video-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}

.thumbnail {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ccc;
}

.title {
    font-weight: bold;
    padding: 10px;
    font-size: 1rem;
}

.watch-link {
    display: block;
    margin: 10px;
    color: #0072ff;
    text-decoration: none;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.pagination-btn {
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 0.5rem;
    cursor: pointer;
}

    .pagination-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.page-number {
    font-weight: bold;
}


.pagination-btn:hover:not(:disabled) {
    background-color: #c40812;
}

.status-message {
    display: flex;
    width:90%;
    margin-left: 0.2rem;
    font-weight: normal;
    color: #095f99;
    margin-bottom: 0.7rem;
}

.save-btn {
    border: none;
}

    .save-btn:hover {
        font-size: 18px;
    }

.cancel-btn {
    border: none;
}

    .cancel-btn:hover {
        font-size: 18px;
    }

.edit-topic-wrapper {
    width: auto;
}

.topSelect {
    display: flex;
}

.login-container {
    max-width: 300px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin: 2%;
}

.button-row {
    display: flex;
    justify-content: center; /* center the two buttons */
    margin-top: 1rem;
    width: 96%;
}

.login-button, .cancel-button {
    padding: 0.7rem;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 2%;
}

    .login-button:hover {
        background-color: #444;
    }

.login-button,
.cancel-button {
    padding: 0.5rem 1.5rem;
    border: none;
    cursor: pointer;
}

.cancel-button {
    background-color: #ccc;
    color: #000;
}

    .cancel-button:hover {
        background-color: #bbb;
    }

.error-message {
    color: #FF0000;
    text-align: center;
    margin-top: 0.5rem;
}

.input {
    padding: 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
}

.inputNotes {
    height: 11rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    resize: vertical; /*  drag-resize */
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    white-space: pre-wrap; /* preserve line breaks */
    word-break: break-word; /* wrap long words/URLs */
    overflow: auto;
}

    .inputNotes:focus {
        outline: none;
        border-color: #FF0000;
        box-shadow: 0 0 0 2px rgba(182, 0, 46, 0.15);
    }


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.modalVideo {
    position: fixed;
    right: 0.5%;
    background-color: #f9f9f9;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    pointer-events: auto; /* Let videos behind receive clicks */
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    font-size: medium;
    top: 8vh; /* leave the top nav visible */
    margin: 1.5%;
    overflow-y: auto; /* already present */
    touch-action: auto;
    -webkit-overflow-scrolling: touch; /* for iOS smooth scrolling */
}

.modal-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto
}
/*modal-contentVideo*/
#modal-contentVideo {
    pointer-events: auto;
    padding: 0.5rem;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-bottom: env(safe-area-inset-bottom);
    max-height: 80vh;
}

.modal-contentVideo input:focus,
.modal-contentVideo select:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 2px rgba(182, 0, 46, 0.15);
}

.modal-contentVideo .segment-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

    .modal-contentVideo .segment-row input {
        flex: 1;
    }

.modal-contentVideo h3 {
    font-size: 1.30rem;
    margin-bottom: 2.5%;
    margin-top: 2.5%;
    color: #b6002e;
    text-align: center;
}

.modal-contentVideo .modal-form {
    display: grid;
    row-gap: 1rem; /* vertical spacing */
}

.modal-contentVideo .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
}

    .modal-contentVideo .modal-actions button {
        width: 48%;
        padding: 0.5%;
        border: none;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s;
        margin-top: 1.5%;
        margin-bottom: 3%;
    }

.modal-contentVideo .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.modal-contentVideo input,
.modal-contentVideo .input,
.modal-contentVideo .inputNotes {
    width: 100%; /* full‑width */
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.88rem;
    margin: 0.2rem;
}

.modal-contentVideo select {
    display: block; /* ensure margin applies predictably */
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.88rem;
}
/*modal-contentVideo END*/

/*modal-contentVideo2*/
#modal-contentVideo2 {
    pointer-events: auto;
    padding: 0.5rem;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100% !important;
    max-height: 80vh;
}

.modal-contentVideo2 input:focus,
.modal-contentVideo2 select:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 2px rgba(182, 0, 46, 0.15);
}

.modal-contentVideo2 .segment-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

    .modal-contentVideo2 .segment-row input {
        flex: 1;
    }

.modal-contentVideo2 h3 {
    font-size: 1.30rem;
    margin-bottom: 2.5%;
    margin-top: 2.5%;
    color: #FF0000;
    text-align: center;
}

.modal-contentVideo2 .inputNotes {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border 0.2s, box-shadow 0.2s;
    margin: 3%;
}

.modal-contentVideo2 .modal-form {
    display: grid;
    row-gap: 1rem; /* vertical spacing */
}

.modal-contentVideo2 .modal-actions {
    display: flex;
    justify-content: space-between;
    border-radius: 0.5rem;
}

    .modal-contentVideo2 .modal-actions button {
        width: 48%;
        padding: 0.5%;
        border: none;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s;
        margin-top: 1.5%;
        margin-bottom: 3%;
    }

.modal-contentVideo2 .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    background-color: pink;
}

.modal-contentVideo label {
    font-weight: 500;
    color: #333;
}

.modal-contentVideo2 input,
.modal-contentVideo2 .inputNotes {
    display: block;
    width: 100%; /* full‑width */
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.modal-contentVideo2 select {
    display: block; /* ensure margin applies predictably */
    width: 70%; /* full‑width */
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.88rem;
}
/*modal-contentVideo2 END*/

.home-hero {
    background: linear-gradient(135deg, #e9e9e9, #fff);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

    .home-hero .card {
        border: none;
        border-radius: 1rem;
    }

    .home-hero .hero-img {
        max-width: 150px;
        margin: 0 auto;
    }

    /* Make the button pop */
    .home-hero .btn-primary {
        background-color: #FF0000;
        border: none;
    }

        .home-hero .btn-primary:hover {
            background-color: #9e001f;
        }

.video-editor {
    /* sizing & layout */
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    /* styling */
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 18px #0002;
    padding: 1.25rem;
}

    /* child inputs fill the width */
    .video-editor .input,
    .video-editor .inputNotes,
    .video-editor select,
    .video-editor label {
        width: 100%;
    }

.more-hint {
    opacity: 0.6;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* ensure the iframe fills its box */
.video-preview iframe {
    width: 98.5%;
    /* margin-top: 0.35rem; */
    aspect-ratio: 16 / 9;
    border-radius: .5rem;
}

.workspace {
    flex: 0 0 40%;
}

.video-edit-wrapper {
    display: flex;
    margin-left: 0.5%;
    margin-top: 1%;
}

.video-preview {
    flex: 0 0 60%;
}

.topic-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background-color: #e7ecf3;
    border-radius: 8px;
}

    .topic-tabs .pill {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .topic-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .topic-tabs::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .topic-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

section {
    margin-bottom: 12px;
}

.topic-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

    .topic-card:hover {
        background-color: #f0f0f0;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

.active-topic {
    background-color: #d4e7ff;
    border: 2px solid #1976d2;
    color: #0c2c57;
}

.topic-name {
    white-space: nowrap;
}

.topic-actions {
    display: flex;
}

    .topic-actions button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1rem;
    }

.logo {
    height: 28px; /* fixed size */
    width: auto;
    display: block;
}

.playBtn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .playBtn.active {
        background-color: #d84315;
        color: white;
        border-radius: 4px;
    }

.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    background: #252525;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    gap: 1rem;
   
}

.nav-center {
    flex: 1;
}

.nav-right {
    white-space: nowrap;
    margin-top: 2.5rem;
}

.user-name {
    font-size: 0.95rem;
    color: #FCFBFC;
}

#sortableSegments li {
    cursor: grab;
    list-style: none;
    margin-bottom: 0.5rem;
    background: #f0f0f0;
    border-radius: 5px;
}



.welcome-card {
    max-width: 920px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.welcome-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

    .welcome-head h2 {
        margin: 0;
        font-size: 1.6rem;
    }

.dontshow {
    font-size: .9rem;
    color: #555;
    user-select: none;
}

.welcome-sub {
    margin: .5rem 0 1rem 0;
    color: #555;
}

.welcome-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

    .welcome-steps li {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        background: #fafafa;
        padding: .9rem;
        border-radius: 12px;
        border: 1px solid #eee;
    }

.btnBack {

    padding: 0.25rem;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 700 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
    background: #b6002e;
    color: #fff;
}

    .step-dot > * {
        transform: translateX(-0.5px);
    }
/* optional tiny nudge */

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .5rem 0 1rem 0;
}

.btn {
    padding: .6rem 1rem;
    border-radius: 9999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer
}

    .btn:hover {
        background: #f7f7f7
    }

    .btn.primary {
        background: #000;
        color: #fff;
        border-color: #000
    }

        .btn.primary:hover {
            background: #1a1a1a
        }

    .btn.ghost {
        border-color: transparent;
        color: #444
    }

.welcome-samples {
    display: grid;
    gap: .8rem;
    margin-top: .5rem;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
}

.sample-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none
}

    .sample-card img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        display: block
    }

.sample-title {
    padding: .6rem .7rem;
    font-size: .9rem;
    color: #222
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0
}

.cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none
}

.section-title {
    margin: 18px 0 10px
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 16px
}

.board-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: transform .15s, box-shadow .15s
}

    .board-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10)
    }

.board-emoji {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px
}

.more-btn {
    margin: 14px 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f7f7f7
}

.teaser {
    margin: 22px 0;
    font-size: .95rem;
    color: #555
}

@media (prefers-color-scheme: dark) {
    .board-card {
        background: #1d1f22;
        color: #eaeaea;
        box-shadow: 0 6px 18px rgba(0,0,0,.35)
    }

    .cta {
        background: #eaeaea;
        color: #111
    }

    .more-btn {
        border-color: #444;
        background: #2a2d31;
        color: #ddd
    }
}

.btn-link {
    position: absolute;
    top: 0.5vw;
    right: 1.75%;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2.5px solid #FF0000;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}

    .btn-link:hover {
        background: rgba(255,255,255,0.1);
        border-color: #fff;
    }

.btn-light {
    background-color: transparent !important;
    text-align: end;
    font-size: 0.85rem !important;
    color: white !important;
    margin-top: 5%;
    margin-right: 8%;
    border: 0.25px solid #cccccc59;
    box-shadow: 0 0 3.5px #FF0000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.brand-text,
.logo-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

    .logo-container img,
    .logo-icon {
        flex-shrink: 0;
    }



.home-btn {
    margin-left: 12px;
    padding: 4px 12px;
    font-size: 0.9rem;
    border-radius: 20px; /* pill */
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 500;
}

    .home-btn:hover {
        box-shadow: 0 0 0 2px rgba(255,255,255,.2) inset;
    }

    .home-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

.demo-nav-btn {
    margin-left: 0.5rem;
    padding: 0.28rem 0.8rem;
    border: 1px solid rgba(18, 223, 243, 0.42);
    border-radius: 999px;
    background: rgba(18, 223, 243, 0.12);
    color: #e7fbff;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: 0 0.25rem 0.7rem rgba(0, 0, 0, 0.16);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

    .demo-nav-btn:hover,
    .demo-nav-btn:focus-visible {
        border-color: rgba(18, 223, 243, 0.66);
        background: rgba(18, 223, 243, 0.18);
        color: #fff;
        box-shadow: 0 0.25rem 0.85rem rgba(18, 223, 243, 0.16);
    }

.slogan {
    display:none;
}

/* --- Card meta grid --- */
.video-meta {
    display: grid;
    grid-template-columns: 48px 1fr auto; /* avatar | text | + button */
    grid-auto-rows: auto;
    align-items: start;
    gap: 12px 12px;
    padding: 12px 16px 10px;
    -webkit-line-clamp: 3;
    min-height: calc(1.2em * 3);
}

    /* Force these rows to span the full width under the header row */
    .video-meta > .meta-line,
    .video-meta > .desc-summary,
    .video-meta > .desc-body,
    .video-meta > .tags {
        grid-column: 1 / -1; /* <-- full width */
    }

/* Text block */
.video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0
}

.titleLoopFullSearchDemo {
    display: flex;
    flex-wrap: wrap;
    font-weight: 650;
    width: 100%;
    font-size: xx-large;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}
.titleLoopFullSearch {
    font-weight: 550;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    margin-bottom: 0.25rem;
}

.yt-thumb {
    width: 90%;
    margin-top: 1rem;
}
/* Toggle button – remove default gray button box */
button.desc-summary {
    all: unset; /* reset native button styles */
    cursor: pointer;
    color: #4da3ff;
    font-size: 0.9rem;
    margin-top: 6px;
}

    button.desc-summary:hover {
        text-decoration: underline
    }
.desc-summary {
    margin-top: 0.25rem;
    display: inline-block;
}
/* Description panel */
.desc-body {
    margin-top: 6px;
    white-space: pre-wrap;
    background-color: transparent;
    border: 1px solid #8e9aaf;
    border-radius: 12px;
    padding: 10px 12px;
    max-height: 180px;
    overflow: auto;
    font-size: small;
}

    .desc-body a {
        color: #7cc1ff;
        text-decoration: underline
    }

/* Meta line */
.meta-line {
    font-size: .85rem;
    color: #697589;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

/* Avatar & add button */
.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover
}

.inline-add {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: #b6002e;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.2)
}

    .inline-add:hover {
        filter: brightness(1.1)
    }

/* Tags */
.tags {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

    .tags .tag {
        font-size: .8rem;
        padding: 4px 10px;
        border-radius: 999px;
        background: #1a1f2b;
        border: 1px solid #263044;
        color: #c6d2e0
    }

/* Video area */
.video-thumb-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-bottom: 1px solid #1e2430
}

.yt-modal {
    position: fixed;
    inset: 0;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 100010 !important;
}

    .yt-modal.open {
        display: flex;
    }

.yt-backdrop {
    /*position: absolute;*/
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 100010;
    pointer-events: auto;
}

.yt-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    max-width: 640px;
    width: min(92vw, 640px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 100011;
    max-height: 90vh; /* important */
    overflow-y: auto; /* <-- makes textarea + buttons stay inside */
    box-sizing: border-box;
}

    .yt-card h3 {
        margin: 0 0 10px
    }

    .yt-card ol {
        margin: 10px 0 16px;
        padding-left: 20px
    }

.yt-bookmark {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none
}

.yt-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

    .yt-actions button {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: #f7f7f7;
        cursor: pointer
    }

    .yt-actions .ghost {
        background: transparent
    }

kbd {
    background: #eee;
    border: 1px solid #ccc;
    border-bottom-color: #bbb;
    border-radius: 3px;
    padding: 1px 4px
}

.yt-bookmark {
    cursor: grab;
    -webkit-user-drag: element;
}

.yt-modal .yt-card a,
.yt-modal .yt-card button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid var(--btn-border,#e2e2e2);
    background: #fff;
    color: #111;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

    .yt-modal .yt-card a.primary,
    .yt-modal .yt-card button.primary {
        background: #111;
        color: #fff;
        border-color: #111;
    }

    .yt-modal .yt-card button.ghost {
        background: transparent;
        border-color: #ccc;
        color: #333;
    }

.yt-modal .yt-card .yt-bookmark {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.yt-modal .yt-card ol {
    margin: 0;
    padding-left: 1.25rem;
}

.yt-modal .yt-card li {
    margin: .6rem 0;
}

.yt-modal .yt-card .hint {
    color: #6b7280;
    font-size: .9rem;
    margin-top: .35rem;
}


.yt-manual-paste {
    width: 100%;
    height: 50vh;
    font-size: 12px;
    padding: 8px;
    margin-top: 6px;
    box-sizing: border-box;
}

.ul {
    padding-left: 0.5rem;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 1.4em !important;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    width: 23vw !important;
}

div:where(.swal2-icon) .swal2-icon-content {
    font-size: 2.75em;
}
div:where(.swal2-icon) {
    width: 2.2em !important;
    height: 2.2em !important;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    font-size: 1em !important;
}

.extract-section {
    padding: 1.25rem 1rem 0.5rem;
}

.extract-shell {
    max-width: 100%;
    width: min(92vw, 62rem);
    margin: 2rem auto 0;
    background: rgba(255,255,255,0.55);
    border: 0.0625rem solid rgba(0,0,0,0.08);
    padding: 1rem;
    backdrop-filter: blur(0.4rem);
    border-radius: 1.25rem;
    box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.06);
}

.empty-state {
    margin-top: 1.25rem;
    text-align: center;
    opacity: 0.85;

}

.empty-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.extract-head h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.extract-head p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 1rem;
}

.extract-bar {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.375rem;
}

.extract-input {
    flex: 1;
    min-height: 3.25rem;
    border-radius: 62.5rem;
    padding: 0 1.1rem;
    background: #fff;
    border: 0.0625rem solid rgba(0,0,0,0.08);
    box-shadow: inset 0 0.0625rem 0.125rem rgba(0,0,0,0.03);
}

.extract-btn {
    min-height: 3.25rem;
    border: 0.0625rem solid #111;
    background: #111;
    color: #fff;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

    .extract-btn:hover {
        transform: translateY(-0.05rem);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    }

.extract-results {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.25rem;
    align-items: start;
}

.extract-player-wrap {
    width: 100%;
    margin-top: 0.75rem;
}

.extract-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 1.125rem;
    display: block;
    background: #000;
}

.segments-panel {
    background: rgba(255,255,255,.55);
    border-radius: 1.125rem;
    border: 0.0625rem solid rgba(0,0,0,.06);
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    margin-top: 1rem;
    padding: 0.75rem;
}

.segments-heading {
    margin: 0 0 0.875rem;
}

.segments-meta {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 0.625rem;
}

.segment-card {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255,255,255,0.9);
    border-radius: 0.875rem;
    margin-bottom: 0.25rem;
    border: 0.0625rem solid rgba(0,0,0,.06);
    align-items: stretch;
    padding: 0.625rem 0.75rem;

    flex-direction: column;
}

    .segment-card.active {
        border: 0.0625rem solid rgba(0,0,0,.22);
        box-shadow: 0 0 0 0.125rem rgba(0,0,0,.05);
    }
    .segment-card:hover {
        background: rgba(255,255,255,0.9);
    }

.segment-main {
    flex: 1;
    min-width: 0;
}

.segment-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.segment-title {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.segment-time {
    font-family: monospace;
    color: #222;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0;
    font-weight: 500;
}

.segment-play-btn {
    flex-shrink: 0;
    border: 0.0625rem solid rgba(0,0,0,.2);
    border-radius: 0.625rem;
    background: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
    align-self: center;
    margin-left: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    width:100%;
}

    .segment-play-btn:hover {
        background: #111;
        color: #fff;
        border-color: #111;
    }

.featured-boards-section {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
}
    .featured-boards-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        opacity: 0.7;
    }

input, textarea, select {
    background: #fff;
    border: 0.0625rem solid rgba(0,0,0,0.15);
    color: #222;
    padding: 0.35rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
}

/* responsive */
@media (max-width: 56.25rem) {
    .extract-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .extract-results {
        grid-template-columns: 1fr;
    }

    .segment-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .segment-play-btn {
        width: 100%;
    }
}

.topic-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 62.5rem;
    background: rgba(255,255,255,0.75);
    border: 0.0625rem solid rgba(0,0,0,0.08);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .topic-pill:hover {
        background: #fff;
        border-color: rgba(0,0,0,0.18);
        transform: translateY(-0.04rem);
    }

    .topic-pill.active {
        background: #fff;
        border: 0.0625rem solid #d61b52;
        box-shadow: 0 0.35rem 0.9rem rgba(214,27,82,0.12);
    }

.fade-in-up {
    animation: fadeInUp 0.35s ease-out;
}

.extract-loading {
    margin-top: 2rem;
    text-align: center;
    opacity: 0.9;
}

.loading-spinner {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.9rem;
    border: 0.1875rem solid rgba(0,0,0,0.12);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recently-added-row {
    animation: rowFlash 1.2s ease;
}

.recently-added-cell {
    background: #ccfffc !important;
    border: 1px solid #f0cf67 !important;
}

.demo-segment-list {
    --segment-cyan: #12dff3;
    --segment-cyan-soft: rgba(18, 223, 243, 0.18);
    --segment-cyan-glow: rgba(18, 223, 243, 0.3);
    border-top-color: rgba(15, 23, 42, 0.12);
}

    .demo-segment-list ul {
        display: grid;
        gap: 0.65rem;
        margin-bottom: 0;
    }

    .demo-segment-list li {
        position: relative;
        min-height: 4.65rem;
        padding: 0.72rem 0.8rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.045);
        opacity: 1;
        transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease, transform 200ms ease, filter 200ms ease;
    }

        .demo-segment-list li:hover {
            border-color: rgba(18, 223, 243, 0.28);
            box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.065);
            transform: translateY(-1px);
        }

    .demo-segment-list.has-active-segment li:not(.segment-active) {
        opacity: 0.42;
        filter: saturate(0.68);
    }

    .demo-segment-list.has-active-segment li:not(.segment-active):hover {
        opacity: 0.7;
        filter: saturate(0.9);
    }

    .demo-segment-list .playBtn {
        display: inline-grid;
        place-items: center;
        width: 2.58rem;
        height: 2.58rem;
        padding: 0;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 999px;
        background: #0f172a;
        box-shadow: 0 0.3rem 0.75rem rgba(15, 23, 42, 0.16);
        color: #fff;
        font-size: 1.02rem;
        line-height: 1;
        transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 200ms ease;
    }

        .demo-segment-list .playBtn:hover {
            background: #111827;
            box-shadow: 0 0.38rem 0.85rem rgba(15, 23, 42, 0.18);
            transform: scale(1.04);
        }

    .demo-segment-list .segment-time {
        color: #334155;
        font-size: 0.96rem !important;
        font-weight: 600;
        letter-spacing: 0.01em;
        opacity: 0.82;
    }

.segment-active {
    background: linear-gradient(135deg, rgba(18, 223, 243, 0.2), rgba(255, 255, 255, 0.92));
    border-color: rgba(18, 223, 243, 0.72);
    box-shadow: 0 0 0 1px rgba(18, 223, 243, 0.38), 0 0.6rem 1.5rem var(--segment-cyan-glow);
    opacity: 1;
    transform: translateY(-1px);
}

    .demo-segment-list .segment-active::before {
        content: "";
        position: absolute;
        top: 0.45rem;
        bottom: 0.45rem;
        left: 0;
        width: 0.22rem;
        border-radius: 0 999px 999px 0;
        background: var(--segment-cyan);
        box-shadow: 0 0 0.45rem rgba(18, 223, 243, 0.36);
        transform: scaleY(0);
        transform-origin: top;
        animation: segmentActiveBarGrow 200ms ease-out forwards;
    }

    .segment-active .segment-label {
        color: #073642;
        font-weight: 750;
    }

    .segment-active .segment-time {
        color: #086676;
        font-size: 0.96rem !important;
        font-weight: 650;
        letter-spacing: 0.01em;
        opacity: 0.95;
    }

    .segment-active .playBtn {
        animation: activePlayPulse 1.8s ease-in-out infinite;
        background: var(--segment-cyan);
        border-color: rgba(18, 223, 243, 0.7);
        box-shadow: 0 0 0 0 rgba(18, 223, 243, 0.4), 0 0.4rem 0.95rem rgba(18, 223, 243, 0.3);
        color: #03191d;
        transform: scale(1.05);
    }

@keyframes segmentActiveBarGrow {
    to {
        transform: scaleY(1);
    }
}

@keyframes activePlayPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 223, 243, 0.36), 0 0.4rem 0.95rem rgba(18, 223, 243, 0.3);
    }

    50% {
        box-shadow: 0 0 0 0.28rem rgba(18, 223, 243, 0), 0 0.48rem 1.1rem rgba(18, 223, 243, 0.36);
    }
}

.demo-notes-input {
    font-size: 1.16rem;
    line-height: 1.55;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .demo-segment-list li,
    .demo-segment-list .playBtn {
        transition: none;
    }

    .segment-active .playBtn {
        animation: none;
    }

    .demo-segment-list .segment-active::before {
        animation: none;
        transform: scaleY(1);
    }
}


@keyframes rowFlash {
    0% {
        box-shadow: 0 0 0 9999px rgba(255, 235, 120, 0.20) inset;
    }

    100% {
        box-shadow: 0 0 0 9999px rgba(255, 235, 120, 0) inset;
    }
}

.video-cardHome {
    position: relative;
}

.edit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
}

.edit-modal {
    width: min(36rem, 90vw);
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.25);
}

.segment-container {
    scrollbar-width: thin;
}


.input {
    padding: 0.5rem;
    font-size: 0.9rem;
}
    .input.full-row {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
    }

.card-edit-panel {
    display: flex;
    flex-direction: column;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    background: white;
    gap: 0.55rem;
}
.segment-list li.segment-edit-row,
    .card-edit-panel .segment-list li.segment-edit-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 3.75rem 3.75rem 2.1rem 1.75rem;
        gap: 0.35rem;
        align-items: center;
        width: 100%;
    }

    .card-edit-panel .segment-list input {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .card-edit-panel .segment-list {
        overflow-x: hidden;
    }

.inline-edit-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
    .inline-edit-panel textarea.full-row {
        min-height: 4.5rem;
        resize: vertical;
    }

    .inline-edit-panel textarea.full-row {
        min-height: 6.875rem;
        resize: vertical;
    }

    .inline-edit-panel .topSelect,
    .inline-edit-panel .add-board-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.75rem;
        gap: 0.5rem;
        align-items: center;
    }

        .inline-edit-panel .topSelect select,
        .inline-edit-panel .add-board-row input {
            width: 100%;
            box-sizing: border-box;
        }

    .inline-edit-panel .floating-add_sm {
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        flex-shrink: 0;
    }

    .inline-edit-panel .segment-toolbar-row,
    .inline-edit-panel .phrase-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
    }

    .inline-edit-panel .toolbar-label {
        margin: 0;
        font-weight: 500;
        white-space: normal;
        margin-bottom: 0.1rem;
    }

    .inline-edit-panel .mentions-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .inline-edit-panel .mentions-input::-webkit-outer-spin-button,
    .inline-edit-panel .mentions-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .inline-edit-panel .mentions-input {
        width: 5rem;
        height: 2.5rem;
        text-align: center;
        box-sizing: border-box;
        padding: 0 0.5rem;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .inline-edit-panel .all-toggle-btn {
        min-width: 6rem;
        height: 2.5rem;
        padding: 0 1rem;
        border-radius: 9999px;
        white-space: nowrap;
    }


    .inline-edit-panel .segment-list {
        padding: 0;
        margin: 0;
        list-style: none;
    }
.drag-handle {
    display: none;
}
 


.video-thumb-wrapper.editing {
    opacity: 0.9;
    transform: scale(0.98);
}

.inline-edit-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 0.6rem 0 0.2rem;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    border-top: 1px solid #eee;
    margin-top: 0.4rem;
    padding-top: 0.75rem;
}

    .inline-edit-actions button {
  
        height: 2.25rem;
        border-radius: 9999px;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .inline-edit-actions .btn-primary {
        background: #c70039;
        border: none;
        color: #fff;
        font-weight: 500;
        min-width: 5.5rem;
    }

    .inline-edit-actions .btn-secondary {
        background: #f1f1f1;
        border: 1px solid #ddd;
        color: #333;
        min-width: 5.5rem;
    }

    .inline-edit-panel .deleteBtn {
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        line-height: 1;
        justify-self: center;
    }

.segment-insert-controls {
    display: inline-grid;
    grid-template-columns: 1fr;
    gap: 0.12rem;
    justify-self: center;
    width: 1.9rem;
}

    .segment-insert-controls button {
        display: grid;
        place-items: center;
        min-width: 0;
        width: 1.8rem;
        height: 1.05rem;
        padding: 0;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 0.35rem;
        background: rgba(255, 255, 255, 0.82);
        color: #334155;
        cursor: pointer;
        font-size: 0.72rem;
        line-height: 1;
        transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    }

        .segment-insert-controls button:hover,
        .segment-insert-controls button:focus-visible {
            border-color: rgba(18, 223, 243, 0.45);
            background: rgba(18, 223, 243, 0.12);
            color: #075565;
        }


.inline-edit-actions button {
    min-width: 6rem;
    height: 2.25rem;
    padding: 0 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
}

.inline-edit-panel .phrase-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.inline-edit-actions,
.edit-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 0.5rem;
    z-index: 5;
}

.segment-toolbar-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .inline-edit-panel .segment-toolbar-buttons {
        grid-template-columns: 1fr 1fr;
    }

        .inline-edit-panel .segment-toolbar-buttons .sort-btn {
            width: 100%;
            min-width: 0;
        }

    .segment-list li.segment-edit-row,
    .inline-edit-panel .segment-list li.segment-edit-row {
        grid-template-columns: minmax(0, 1fr) 3.6rem 3.6rem 2rem 1.9rem;
    }
}

.segment-list ul li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 0.75rem;
}

.segment-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.segment-time {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.segment-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-card {
    max-width: 420px;
    margin: 5rem auto;
    padding: 2.5rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

    .auth-card h1 {
        margin-bottom: .5rem;
        font-size: 1.8rem;
    }

.auth-subtitle {
    color: #555;
    margin-bottom: 1.5rem;
}

.auth-card input {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid #bbb;
    font-size: 1rem;
}

.auth-card button {
    width: 100%;
    margin-top: 1rem;
    padding: .9rem;
    border-radius: 12px;
    font-weight: 700;
}


/* ===== FINAL MOBILE (CLEAN + CONSISTENT) ===== */
@media (max-width: 48rem) {
    .card-edit-panel {
        padding: 0.6rem;
    }

    .segment-toolbar-buttons .btn {
        font-size: 0.75rem;
    }

    .card-edit-panel .segment-list {
        max-height: 7.5rem;
    }
    .logout-link {
       
        right: 3% !important;
    }
    .add-segment-btn {
        width:30%;
        font-size: 0.8rem !important;
    }
    .segment-list li {
     
        padding: 0.15rem 0.35rem !important;
    }
    .segment-toolbar-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .video-cardHome {
        max-width: 100%;
        margin: 0;
        border-radius: 0.75rem;
    }
    .inline-edit-actions button {
        height: 2.6rem;
        font-size: 0.9rem;
    }
        .segment-toolbar-buttons .btn {
            flex: 1 1 auto;
            font-size: 0.75rem;
        }
    .top-navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
        min-height: 3rem;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .brand-text,
    .logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .slogan {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.78rem;
    }

    .btn-link {
        position: static !important;
        border: 0;
        padding: 0;
        font-size: 0.72rem;
        background: transparent;
    }

    /* hide top/global search (keep board search only) */
    .nav-center,
    .search-row.top-search,
    .global-search {
        display: none !important;
    }

    /* ===== EXTRACT SECTION ===== */
    .extract-section {
        padding: 0.75rem;
    }

    .extract-shell {
        width: 100%;
        margin: 0.75rem auto 0;
        padding: 0.875rem;
        border-radius: 1rem;
        background: rgba(255,255,255,0.65);
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }

    .extract-head h2 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .extract-head p {
        font-size: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .extract-input {
        min-height: 3rem;
        font-size: 1rem;
    }

    .extract-btn {
        width: 100%;
        min-height: 3rem;
        font-size: 0.9rem;
        border-radius: 999px;
    }

    /* ===== VIDEO ===== */
    .extract-player {
        border-radius: 0.75rem;
    }

    /* ===== RESULTS ===== */
    .extract-results {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* ===== SEGMENTS ===== */
    .segments-panel {
        padding: 0.625rem;
        border-radius: 0.875rem;
    }

    .segments-heading {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .segments-meta {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .segment-card {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.625rem;
        border-radius: 0.75rem;
    }

    .segment-title {
        font-size: 0.85rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .segment-time {
        font-size: 0.7rem;
        opacity: 0.6;
    }

    .segment-play-btn {
        width: 100%;
        padding: 0.45rem;
        font-size: 0.75rem;
    }
        .segment-play-btn:active,
        .topic-card:active {
            transform: scale(0.97);
            opacity: 0.9;
        }
    /* ===== BOARD / LOGGED-IN ===== */

    .board,
    .boards-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    .boardDemo,
    .boards-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    .board-tile iframe {
        width: 100%;
        border-radius: 0.5rem;
    }
    .boardDemo,
    .board {
        margin-top: 0.5rem;
    }

    /* ===== MODALS ===== */

    .modal input,
    .modal textarea,
    .modal select {
        font-size: 16px;
    }

    .yt-modal {
        max-height: 90vh;
        top: 7%;
        font-size: 13px;
    }
    .user-name {
        display: none !important;
    }

    /* topic area = single horizontal strip */
    .topic-tabs {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;

        position:relative;
        padding-right:3.5rem;
    }

        .topic-tabs::-webkit-scrollbar {
            display: none;
        }
    body.authenticated .extract-section {
        display: none;
    }
    .topic-card,
    .topic-pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: auto;
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
        border-radius: 999px;
    }

        .topic-card .topic-name,
        .topic-name {
            font-size: 0.75rem;
            padding: 0;
            white-space: nowrap;
        }

    .floating-add {
        position: absolute;
        right: 0.4rem;
        top: 50%;
        transform: translateY(-50%);
        background: #e11d48; /* slightly softer than pure red */
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border-radius:50%;
    }
    .all-toggle-btn,
    .floating-add_sm {
        margin-left: 0.5rem;
    }
    .floating-add,
    .floating-add_sm,
    .fab {
      
        flex-shrink: 0;

    }

    /* board search tighter */
    .search-row {
        padding: 0 0.75rem;
        margin-top: 0.5rem;
    }

    /* header actions smaller */
    .home-btn,
    .demo-nav-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 1.9rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
        border-radius: 999px;
    }

    .home-btn {
        background: rgba(255,255,255,0.12);
    }
    .extract-bar {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.375rem;
    }

}
