.video-actions-btns {
    --watch-accent: #eb003b;
    --watch-accent-soft: #ff5f83;
    --watch-burgundy: #650018;
    --watch-panel: #15161d;
}

.action-btn-pill {
    position: relative;
    isolation: isolate;
}

.action-btn-pill:focus-visible,
.watch-share-option:focus-visible,
.watch-playlist-popup button:focus-visible {
    outline: 2px solid var(--watch-accent-soft, #ff5f83);
    outline-offset: 3px;
}

.action-btn-pill:disabled {
    opacity: .62;
    cursor: wait;
}

.action-btn-pill.is-action-animating > i {
    animation: watch-action-pop .48s cubic-bezier(.2, .9, .25, 1.35);
}

.video-like-btn.active > i {
    color: #ff4168 !important;
    filter: drop-shadow(0 0 8px rgba(255, 45, 85, .6));
}

.video-dislike-btn.active > i {
    color: #f4bf54 !important;
    filter: drop-shadow(0 0 8px rgba(244, 191, 84, .48));
}

.video-like-btn.active,
.video-dislike-btn.active {
    border-color: rgba(255, 45, 85, .28) !important;
    background: linear-gradient(145deg, rgba(101, 0, 24, .72), rgba(29, 18, 25, .92)) !important;
}

.action-btn-pill.is-action-animating::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 50% auto auto 50%;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 70, 116, .72);
    border-radius: 50%;
    pointer-events: none;
    animation: watch-action-ring .5s ease-out forwards;
}

.watch-action-spark {
    position: fixed;
    z-index: 2147483000;
    width: 5px;
    height: 5px;
    margin: -2px;
    border-radius: 50%;
    background: var(--spark-color, #ff4674);
    box-shadow: 0 0 8px var(--spark-color, #ff4674);
    pointer-events: none;
    animation: watch-action-spark .58s ease-out forwards;
}

.action-btn-pill[data-download-state="loading"] > i {
    animation: watch-download-pulse .85s ease-in-out infinite alternate;
}

.watch-action-toast {
    position: fixed;
    z-index: 12250;
    right: 18px;
    bottom: 22px;
    max-width: min(390px, calc(100vw - 28px));
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #39101c, #15161d 68%);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .58);
    font-size: .86rem;
}

.watch-action-toast.is-success { border-color: rgba(255, 74, 113, .55); }
.watch-action-toast.is-error { border-color: rgba(255, 78, 98, .62); background: #351820; }

.watch-playlist-popup {
    position: fixed;
    z-index: 12190;
    max-height: min(480px, calc(100vh - 20px));
    overflow: auto;
    border: 1px solid rgba(255, 45, 85, .3);
    border-radius: 18px;
    color: #f7f3f8;
    background: linear-gradient(145deg, #21151e, #111219 62%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .76);
    animation: watch-popup-in .16s ease-out;
}

.watch-playlist-popup > header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(25, 17, 24, .96);
}

.watch-playlist-popup > header button {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.watch-playlist-options {
    display: grid;
    gap: 7px;
    padding: 11px;
}

.watch-playlist-options > p {
    margin: 0;
    padding: 18px 9px;
    color: #c9c0ca;
    text-align: center;
}

.watch-playlist-options > button {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #f7f3f8;
    background: rgba(255, 255, 255, .045);
    text-align: left;
    cursor: pointer;
}

.watch-playlist-options > button:hover,
.watch-playlist-options > button:focus-visible {
    border-color: rgba(255, 70, 116, .48);
    background: rgba(255, 255, 255, .09);
}

.watch-playlist-options > button:disabled { opacity: .58; cursor: wait; }
.watch-playlist-options > button > i { color: #ff4674; font-size: 1.1rem; text-align: center; }
.watch-playlist-options > button span { display: grid; gap: 3px; min-width: 0; }
.watch-playlist-options > button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-playlist-options > button small { color: #aaa1ad; }

.watch-playlist-manage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #ff8cab;
    font-weight: 800;
    text-decoration: none;
}

.watch-share-popup {
    position: fixed;
    z-index: 12180;
    width: min(620px, calc(100vw - 28px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 45, 85, .28);
    border-radius: 22px;
    color: #f7f3f8;
    background: linear-gradient(145deg, #21151e, #111219 62%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .78);
}

.watch-share-popup[hidden] {
    display: none !important;
}

.watch-share-popup.is-open {
    animation: watch-popup-in .16s ease-out;
}

.watch-share-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 15px;
}

.watch-share-dialog__head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.watch-share-dialog__head button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.watch-share-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 10px;
    padding: 8px 22px 20px;
    overflow-x: auto;
}

.watch-share-option {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 84px;
    padding: 10px 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    color: #eee8f0;
    background: #1c1c24;
    font: inherit;
    font-size: .76rem;
    text-decoration: none;
    cursor: pointer;
}

.watch-share-option:hover,
.watch-share-option:focus-visible {
    border-color: rgba(255, 70, 116, .48);
    background: #2a2029;
}

.watch-share-option[hidden] {
    display: none;
}

.watch-share-option i b {
    font-size: 1rem;
}

.watch-share-option i {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    color: #fff;
    background: #9d1740;
    font-size: 1.08rem;
}

.watch-share-option.is-whatsapp i { background: #168a4a; }
.watch-share-option.is-facebook i { background: #235dc5; }
.watch-share-option.is-x i { background: #050505; }
.watch-share-option.is-email i { background: #6a6071; }

.watch-share-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .18);
}

.watch-share-copy input {
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #ddd5df;
    background: #0d0d12;
}

.watch-share-copy button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #b31343;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.watch-share-status {
    min-height: 20px;
    margin: 0;
    padding: 0 22px 14px;
    color: #bdb5c1;
    font-size: .78rem;
}

@keyframes watch-action-pop {
    0% { transform: scale(1) rotate(0); }
    38% { transform: scale(.62) rotate(-10deg); }
    72% { transform: scale(1.42) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes watch-action-ring {
    from { opacity: .9; transform: translate(-50%, -50%) scale(.25); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes watch-action-spark {
    from { opacity: 1; transform: rotate(var(--spark-angle)) translateY(0) scale(1); }
    to { opacity: 0; transform: rotate(var(--spark-angle)) translateY(-34px) scale(.2); }
}

@keyframes watch-download-pulse {
    from { transform: translateY(-2px); opacity: .55; }
    to { transform: translateY(3px); opacity: 1; }
}

@keyframes watch-popup-in {
    from { opacity: 0; transform: translateY(-7px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
    .watch-share-popup {
        width: calc(100vw - 16px);
        border-radius: 18px;
    }

    .watch-playlist-popup {
        width: calc(100vw - 16px) !important;
        border-radius: 16px;
    }

    .watch-share-options {
        grid-template-columns: repeat(5, 82px);
        padding-right: 14px;
        padding-left: 14px;
    }

    .watch-share-copy {
        padding-right: 14px;
        padding-left: 14px;
    }

    .watch-share-copy button span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-btn-pill.is-action-animating > i,
    .action-btn-pill.is-action-animating::after,
    .watch-action-spark,
    .action-btn-pill[data-download-state="loading"] > i,
    .watch-share-popup.is-open,
    .watch-playlist-popup {
        animation: none;
    }
}
