/* RV_WATCH_YOUTUBE_CLIPS_PHASE1_20260729 */
:root {
    --watch-clips-red: #ff0033;
    --watch-clips-red-deep: #c90028;
    --watch-clips-panel: #111319;
    --watch-clips-panel-soft: #181b22;
    --watch-clips-border: rgba(255, 255, 255, 0.11);
    --watch-clips-muted: rgba(255, 255, 255, 0.64);
}

.watch-engagement-actions [data-watch-clip-button] {
    border-color: rgba(255, 0, 51, 0.45);
}

.watch-engagement-actions [data-watch-clip-button]:hover,
.watch-engagement-actions [data-watch-clip-button]:focus-visible {
    color: #ffffff;
    border-color: var(--watch-clips-red);
    background: rgba(255, 0, 51, 0.16);
}

.watch-clip-dialog[hidden] {
    display: none !important;
}

.watch-clip-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.watch-clip-dialog-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
}

.watch-clip-dialog-card {
    position: relative;
    width: min(34rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.35rem;
    color: #ffffff;
    border: 1px solid var(--watch-clips-border);
    border-radius: 1.25rem;
    background: #101217;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.watch-clip-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.watch-clip-dialog-heading span,
.watch-clip-kicker,
.watch-clips-heading span {
    display: block;
    margin-bottom: 0.34rem;
    color: #ff5274;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.watch-clip-dialog-heading h2,
.watch-clip-player-card h1,
.watch-clips-heading h1 {
    margin: 0;
    line-height: 1.03;
}

.watch-clip-dialog-close {
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid var(--watch-clips-border);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.25rem;
}

.watch-clip-dialog-card label {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
}

.watch-clip-dialog-card input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.72rem 0.82rem;
    color: #ffffff;
    border: 1px solid var(--watch-clips-border);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.055);
}

.watch-clip-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.watch-clip-time-tools,
.watch-clip-dialog-actions,
.watch-clip-result-actions,
.watch-clip-actions,
.watch-clips-card-copy > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.watch-clip-time-tools {
    margin-top: 0.72rem;
}

.watch-clip-time-tools button,
.watch-clip-dialog-actions button,
.watch-clip-result-actions button,
.watch-clip-result-actions a,
.watch-clip-actions a,
.watch-clip-actions button,
.watch-clips-heading > a,
.watch-clips-empty a,
.watch-clips-card-copy > div a,
.watch-clips-card-copy > div button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.62rem 0.9rem;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid var(--watch-clips-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.watch-clip-dialog-actions {
    justify-content: space-between;
    margin-top: 1.15rem;
}

.watch-clip-dialog-actions button[type="submit"],
.watch-clip-primary,
.watch-clips-heading > a,
.watch-clips-empty a {
    border-color: transparent !important;
    background: linear-gradient(135deg, #ff335c, var(--watch-clips-red) 60%, var(--watch-clips-red-deep)) !important;
    box-shadow: 0 12px 28px rgba(255, 0, 51, 0.22);
}

.watch-clip-dialog-message {
    min-height: 1.3rem;
    margin: 0.8rem 0 0;
    color: #ff8ba2;
    font-size: 0.8rem;
}

.watch-clip-result {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 0, 51, 0.28);
    border-radius: 0.9rem;
    background: rgba(255, 0, 51, 0.08);
}

.watch-clip-result strong {
    display: block;
    margin-bottom: 0.45rem;
}

.watch-clip-result input,
.watch-clip-share-row input {
    flex: 1 1 18rem;
}

.watch-clips-body {
    min-height: 100vh;
    margin: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 0, 51, 0.14), transparent 30rem),
        #08090c;
}

.watch-clips-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.75rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--watch-clips-border);
    background: rgba(8, 9, 12, 0.86);
    backdrop-filter: blur(18px);
}

.watch-clips-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: #ffffff;
    text-decoration: none;
}

.watch-clips-brand span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.62rem;
    background: var(--watch-clips-red);
    font-weight: 950;
}

.watch-clips-topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.watch-clips-topbar nav a {
    padding: 0.48rem 0.7rem;
    color: var(--watch-clips-muted);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.watch-clips-topbar nav a:hover,
.watch-clips-topbar nav a[aria-current="page"] {
    color: #ffffff;
    background: rgba(255, 0, 51, 0.14);
}

.watch-clip-page,
.watch-clips-library {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.2rem, 4vw, 3.2rem) 0;
}

.watch-clip-player-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.7rem);
    border: 1px solid var(--watch-clips-border);
    border-radius: 1.35rem;
    background: rgba(17, 19, 25, 0.92);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.watch-clip-player-shell {
    overflow: hidden;
    margin-top: 1.1rem;
    border-radius: 1rem;
    background: #000000;
}

.watch-clip-player-shell video {
    display: block;
    width: 100%;
    max-height: 72vh;
    background: #000000;
}

.watch-clip-metadata {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.7fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.watch-clip-metadata > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--watch-clips-border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
}

.watch-clip-metadata span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--watch-clips-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.watch-clip-metadata a,
.watch-clip-metadata strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    text-decoration: none;
}

.watch-clip-share-row {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}

.watch-clip-share-row input {
    min-height: 2.8rem;
    padding: 0.68rem 0.78rem;
    color: #ffffff;
    border: 1px solid var(--watch-clips-border);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
}

.watch-clip-share-row button {
    min-width: 7rem;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: var(--watch-clips-red);
    font-weight: 850;
}

.watch-clip-actions {
    justify-content: space-between;
    margin-top: 1rem;
}

.watch-clip-actions form,
.watch-clips-card-copy form {
    margin: 0;
}

.watch-clip-danger,
.watch-clips-card-copy > div button {
    color: #ff9cb0 !important;
    border-color: rgba(255, 0, 51, 0.32) !important;
}

.watch-clips-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.watch-clips-heading p,
.watch-clips-empty p,
.watch-clips-card-copy p {
    color: var(--watch-clips-muted);
}

.watch-clips-notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--watch-clips-border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

.watch-clips-notice-success {
    border-color: rgba(66, 211, 146, 0.38);
}

.watch-clips-notice-error {
    border-color: rgba(255, 0, 51, 0.4);
}

.watch-clips-empty {
    padding: 2rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.025);
}

.watch-clips-empty strong {
    display: block;
    font-size: 1.2rem;
}

.watch-clips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.watch-clips-card {
    overflow: hidden;
    border: 1px solid var(--watch-clips-border);
    border-radius: 1rem;
    background: var(--watch-clips-panel);
}

.watch-clips-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.watch-clips-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-clips-card-media span {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.24rem 0.42rem;
    color: #ffffff;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.78);
    font-size: 0.72rem;
    font-weight: 850;
}

.watch-clips-card-copy {
    padding: 0.9rem;
}

.watch-clips-card-copy > a {
    color: #ffffff;
    text-decoration: none;
}

.watch-clips-card-copy h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.watch-clips-card-copy p {
    margin: 0.45rem 0 0.75rem;
    font-size: 0.76rem;
}

.watch-clips-card-copy > div a,
.watch-clips-card-copy > div button {
    min-height: 2.15rem;
    padding: 0.45rem 0.66rem;
    font-size: 0.7rem;
}

@media (max-width: 860px) {
    .watch-clips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .watch-clip-metadata {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .watch-clips-topbar,
    .watch-clips-heading,
    .watch-clip-share-row {
        align-items: stretch;
        flex-direction: column;
    }

    .watch-clips-grid,
    .watch-clip-range-grid {
        grid-template-columns: 1fr;
    }

    .watch-clips-topbar nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
