/* ==========================================================================
   SIÊU TẦM PHIM - USER PROFILE, TỦ PHIM & TIẾP TỤC XEM (LOCALSTORAGE)
   ========================================================================== */

/* 1. Header Profile Button */
.stp-header-profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.stp-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    box-sizing: border-box;
}

.stp-profile-btn:hover {
    border-color: #eb3941;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 57, 65, 0.2);
}

/* State: Chưa có hồ sơ (Nút tròn +) */
.stp-profile-btn.is-empty {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border: 1.5px dashed #eb3941;
    color: #eb3941;
}

.stp-profile-btn.is-empty .stp-profile-plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 17px;
    font-weight: 700;
}

.stp-profile-btn.is-empty:hover {
    background: #eb3941;
    color: #ffffff;
    border-style: solid;
}

/* State: Đã có hồ sơ */
.stp-profile-btn.has-profile {
    border: 2px solid #eb3941;
    background: #ffffff;
    overflow: visible;
}

.stp-profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.stp-profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #eb3941 0%, #ff6b72 100%);
    text-transform: uppercase;
}

.stp-profile-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #eb3941;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
    box-sizing: content-box;
}

/* 2. Profile Popover Dropdown */
.stp-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

.stp-profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.stp-dropdown-header {
    background: linear-gradient(135deg, #1e2030 0%, #151722 100%);
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.stp-dropdown-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #eb3941;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2d40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stp-dropdown-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stp-dropdown-header-info {
    flex: 1;
    min-width: 0;
}

.stp-dropdown-header-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stp-dropdown-header-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stp-dropdown-header-sub .status-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.stp-dropdown-header-actions {
    display: flex;
    gap: 6px;
}

.stp-btn-icon-sm {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #e2e8f0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.stp-btn-icon-sm:hover {
    background: #eb3941;
    color: #ffffff;
}

/* Dropdown Navigation Tabs */
.stp-dropdown-tabs {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 0 8px;
}

.stp-tab-btn {
    flex: 1;
    padding: 11px 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.stp-tab-btn:hover {
    color: #eb3941;
}

.stp-tab-btn.active {
    color: #eb3941;
    border-bottom-color: #eb3941;
    background: #ffffff;
}

.stp-tab-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.stp-tab-btn.active .stp-tab-badge {
    background: #ffe3e3;
    color: #eb3941;
}

/* Tab Panels */
.stp-tab-panel {
    display: none;
    max-height: 340px;
    overflow-y: auto;
    padding: 12px;
}

.stp-tab-panel.active {
    display: block;
}

.stp-tab-panel::-webkit-scrollbar {
    width: 5px;
}

.stp-tab-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Phim Item List in Dropdown */
.stp-movie-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stp-movie-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    border: 1px solid #f1f5f9;
}

.stp-movie-item-compact:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.stp-movie-thumb-compact {
    width: 44px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e2030;
    position: relative;
}

.stp-movie-thumb-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stp-movie-info-compact {
    flex: 1;
    min-width: 0;
}

.stp-movie-title-compact {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.stp-movie-title-compact a {
    color: inherit;
    text-decoration: none;
}

.stp-movie-title-compact a:hover {
    color: #eb3941;
}

.stp-movie-meta-compact {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stp-movie-meta-compact .tag-ep {
    background: #ffe3e3;
    color: #eb3941;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10.5px;
}

.stp-movie-actions-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stp-btn-play-compact {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eb3941;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.stp-btn-play-compact:hover {
    background: #d3252d;
    transform: scale(1.08);
}

.stp-btn-del-compact {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.stp-btn-del-compact:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Empty State */
.stp-empty-state {
    text-align: center;
    padding: 30px 16px;
    color: #94a3b8;
}

.stp-empty-icon {
    font-size: 34px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: inline-block;
}

.stp-empty-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.stp-empty-subtext {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Profiles Switcher in Dropdown */
.stp-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stp-profile-switch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.stp-profile-switch-item:hover {
    background: #f1f5f9;
}

.stp-profile-switch-item.is-active {
    background: #fff5f5;
    border-color: #eb3941;
}

.stp-profile-switch-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    background: #e2e8f0;
}

.stp-profile-switch-item.is-active .stp-profile-switch-avatar {
    border-color: #eb3941;
}

.stp-profile-switch-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stp-profile-switch-info {
    flex: 1;
    min-width: 0;
}

.stp-profile-switch-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.stp-profile-switch-counts {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.stp-profile-active-tag {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 10px;
}

.stp-btn-add-profile-outline {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.stp-btn-add-profile-outline:hover {
    border-color: #eb3941;
    color: #eb3941;
    background: #fff5f5;
}

/* Dropdown Footer */
.stp-dropdown-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94a3b8;
}

.stp-dropdown-footer a,
.stp-dropdown-footer button {
    color: #64748b;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 11.5px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.stp-btn-icon-sm.stp-btn-danger-icon:hover {
    background: #ef4444;
    color: #ffffff;
}

.stp-dropdown-footer a:hover,
.stp-dropdown-footer button:hover {
    color: #eb3941;
}

.stp-btn-footer-delete {
    color: #ef4444 !important;
    background: #fee2e2 !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stp-btn-footer-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. NÚT "TỦ PHIM" Ở TRANG CHI TIẾT (CẠNH NÚT "XEM PHIM")
   ========================================================================== */
.stp-watch-actions-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.main .post-container .post-info .movie-introduce .all-info .watch-movie {
    margin-top: 0 !important;
    width: auto !important;
}

.btn-movie-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    color: #334155;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    outline: none;
    font-family: inherit;
}

.btn-movie-favorite:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-movie-favorite.is-in-library {
    background-color: #fff1f2;
    border-color: #f43f5e;
    color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}

.btn-movie-favorite.is-in-library:hover {
    background-color: #ffe4e6;
    border-color: #e11d48;
    color: #be123c;
}

.btn-movie-favorite i {
    font-size: 15px;
    transition: transform 0.2s;
}

.btn-movie-favorite:hover i {
    transform: scale(1.15);
}

.stp-fav-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.stp-fav-svg {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-movie-favorite:hover .stp-fav-svg {
    transform: scale(1.18);
}

/* ==========================================================================
   4. MODAL TẠO / CHỈNH SỬA HỒ SƠ & MODAL QUẢN LÝ
   ========================================================================== */
.stp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stp-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.stp-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

.stp-modal-overlay.is-active .stp-modal-dialog {
    transform: translateY(0) scale(1);
}

.stp-modal-header {
    background: linear-gradient(135deg, #1e2030 0%, #11131c 100%);
    padding: 18px 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eb3941;
}

.stp-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stp-modal-title i {
    color: #eb3941;
}

.stp-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.stp-modal-close-btn:hover {
    background: #eb3941;
    color: #ffffff;
    transform: rotate(90deg);
}

.stp-modal-body {
    padding: 22px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Avatar Preview Box */
.stp-avatar-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.stp-avatar-circle-preview {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid #eb3941;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(235, 57, 65, 0.25);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stp-avatar-circle-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stp-avatar-preview-name {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Form Groups */
.stp-form-group {
    margin-bottom: 18px;
}

.stp-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.stp-form-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13.5px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.stp-form-input:focus {
    border-color: #eb3941;
    box-shadow: 0 0 0 3px rgba(235, 57, 65, 0.15);
}

/* Avatar Selection Grid */
.stp-avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.stp-avatar-grid-item {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stp-avatar-grid-item img,
.stp-avatar-grid-item svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.stp-avatar-grid-item:hover {
    transform: scale(1.12);
    border-color: #cbd5e1;
}

.stp-avatar-grid-item.selected {
    border-color: #eb3941;
    box-shadow: 0 0 0 3px rgba(235, 57, 65, 0.2);
    transform: scale(1.08);
}

/* Custom Avatar URL / File Section */
.stp-avatar-custom-wrap {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
}

.stp-avatar-custom-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.stp-btn-subtab {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    color: #475569;
}

.stp-btn-subtab.active {
    background: #eb3941;
    color: #ffffff;
    border-color: #eb3941;
}

.stp-file-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border: 1.5px dashed #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    text-align: center;
    transition: all 0.2s;
}

.stp-file-dropzone:hover {
    border-color: #eb3941;
    color: #eb3941;
}

.stp-file-dropzone i {
    font-size: 22px;
    margin-bottom: 6px;
}

/* Modal Footer */
.stp-modal-footer {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.stp-btn {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.stp-btn-cancel {
    background: #e2e8f0;
    color: #475569;
}

.stp-btn-cancel:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.stp-btn-primary {
    background: #eb3941;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(235, 57, 65, 0.3);
}

.stp-btn-primary:hover {
    background: #d3252d;
    box-shadow: 0 6px 16px rgba(235, 57, 65, 0.4);
}

.stp-btn-danger {
    background: #fee2e2;
    color: #ef4444;
}

.stp-btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   5. TOAST NOTIFICATION
   ========================================================================== */
.stp-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100003;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.stp-toast {
    pointer-events: auto;
    background: #1e2030;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-left: 4px solid #eb3941;
    animation: stpToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    max-width: 340px;
}

.stp-toast.is-leaving {
    animation: stpToastOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stp-toast i {
    font-size: 16px;
    color: #eb3941;
}

@keyframes stpToastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stpToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }
}

/* ==========================================================================
   6. MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .stp-header-profile-wrap {
        margin-right: 8px;
    }
    .stp-profile-dropdown {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .stp-modal-dialog {
        border-radius: 16px;
    }
    .stp-avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .btn-movie-favorite {
        width: 100%;
        justify-content: center;
    }
    .main .post-container .post-info .movie-introduce .all-info .watch-movie {
        width: 100% !important;
    }
    .main .post-container .post-info .movie-introduce .all-info .watch-movie a {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Drawer Profile Banner */
.drawer-profile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.drawer-profile-banner:hover {
    background: #f1f5f9;
}

.drawer-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #eb3941;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-profile-avatar i {
    color: #eb3941;
    font-size: 20px;
}

.drawer-profile-info {
    min-width: 0;
}

.drawer-profile-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-profile-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.drawer-profile-action {
    color: #94a3b8;
    font-size: 12px;
}

/* ==========================================================================
   7. WATCHLIST NOTIFICATIONS (TẬP MỚI & SERVER MỚI)
   ========================================================================== */
.stp-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    animation: stpPulseDot 1.8s infinite;
}

@keyframes stpPulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.stp-tab-badge.has-news {
    background: #ff4757 !important;
    color: #ffffff !important;
    animation: stpBadgeBounce 2s infinite;
}

@keyframes stpBadgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.stp-movie-item-compact.has-update-notice {
    background: #fff5f5;
    border-color: #fca5a5;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.12);
}

.stp-update-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.stp-badge-new-ep {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    transition: all 0.2s;
}

.stp-badge-new-ep:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-1px);
}

.stp-badge-new-server {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.stp-btn-mark-read {
    font-size: 10px;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.stp-btn-mark-read:hover {
    color: #475569;
    background: #e2e8f0;
}
