/* © WatchJunk */
/* coded by nya & suzunay */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #07090c;
            --bg-secondary: #0f1218;
            --bg-card: #161b22;
            --bg-hover: #1c222d;
            --bg-elevated: #161b22;
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-dim: #64748b;
            --accent: #00a3ff;
            --accent-hover: #33b5ff;
            --accent-glow: rgba(0, 163, 255, 0.15);
            --gold: #f59e0b;
            --gold-light: #fbbf24;
            --green: #10b981;
            --red: #ef4444;
            --border: rgba(255, 255, 255, 0.07);
            --border-hover: rgba(255, 255, 255, 0.13);
            --horror-accent: #1e3a5f;
            --horror-secondary: #172033;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
            --shadow-md: 0 8px 10px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 16px 16px rgba(0, 0, 0, 0.4);
            --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
        }

        /* ===== Alert Modal (legacy - now handled by CustomDialog/Swal.fire) ===== */
        .alert-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            z-index: 3000;
        }

        .alert-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: cdOverlayIn .2s ease-out;
        }

        .alert-content {
            background: #0f1218;
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: 16px;
            padding: 0;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 24px 24px rgba(0, 0, 0, .55), 0 8px 10px rgba(0, 0, 0, .3);
            animation: cdModalIn .3s cubic-bezier(.16, 1, .3, 1);
            overflow: hidden;
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
            position: relative;
        }

        .alert-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00a3ff, transparent);
            border-radius: 0 0 2px 2px;
            opacity: .6;
            z-index: 11;
        }

        .alert-header {
            display: flex;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
            background: none;
        }

        .alert-header.success,
        .alert-header.error,
        .alert-header.warning {
            background: none;
        }

        .alert-title {
            font-size: 1rem;
            font-weight: 700;
            color: #e6edf3;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert-icon {
            width: 22px;
            height: 22px;
            fill: #8b949e;
        }

        .alert-body {
            padding: 1.75rem 1.5rem 1.25rem;
            text-align: center;
        }

        .alert-message {
            color: #8b949e;
            font-size: .875rem;
            line-height: 1.6;
            margin: 0;
        }

        .alert-footer {
            padding: .85rem 1.25rem;
            border-top: 1px solid rgba(255, 255, 255, .08);
            display: flex;
            justify-content: flex-end;
            gap: .5rem;
            background: none;
        }

        .alert-footer,
        .share-footer {
            display: flex;
            gap: .5rem;
            justify-content: flex-end;
            padding: .85rem 1.25rem;
            border-top: 1px solid rgba(255, 255, 255, .08);
        }

        /* ===== Share Modal ===== */
        .share-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            z-index: 3000;
        }

        .share-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: cdOverlayIn .2s ease-out;
        }

        .share-content {
            background: #0f1218;
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: 16px;
            padding: 0;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 24px 24px rgba(0, 0, 0, .55), 0 8px 10px rgba(0, 0, 0, .3);
            animation: cdModalIn .3s cubic-bezier(.16, 1, .3, 1);
            overflow: hidden;
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
            position: relative;
        }

        .share-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00a3ff, transparent);
            border-radius: 0 0 2px 2px;
            opacity: .6;
            z-index: 11;
        }

        .share-header {
            display: flex;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }

        .share-title {
            font-size: 1rem;
            font-weight: 700;
            color: #e6edf3;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .share-body {
            padding: 1.25rem 1.5rem;
        }

        .share-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .share-option {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all var(--transition-smooth);
            border: 1px solid var(--border);
        }

        .share-option:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: var(--border-hover);
            transform: translateX(4px);
        }

        .share-icon {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .share-icon.facebook {
            background: #1877f2;
            color: white;
        }

        .share-icon.twitter {
            background: #000;
            color: white;
        }

        .share-text {
            flex: 1;
        }

        .share-platform {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        .share-description {
            font-size: 0.82rem;
            color: var(--text-dim);
            margin-top: 1px;
        }

        .share-footer {
            padding: .85rem 1.25rem;
            border-top: 1px solid rgba(255, 255, 255, .08);
            display: flex;
            justify-content: flex-end;
        }

        /* ===== Create Review Button ===== */
        .create-review-btn {
            margin: 1.5rem auto;
            display: flex;
            justify-content: center;
        }

        /* ===== Write Modal ===== */
        .write-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }

        .write-modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 5vh;
            animation: cdOverlayIn .2s ease-out;
        }

        .write-content {
            background: #0d1117;
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: 20px;
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: cdModalIn .35s cubic-bezier(.16, 1, .3, 1);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 32px 24px rgba(0, 0, 0, .6), 0 12px 12px rgba(0, 0, 0, .35);
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .write-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00a3ff, transparent);
            border-radius: 0 0 2px 2px;
            opacity: .6;
            z-index: 11;
        }

        .write-content::-webkit-scrollbar {
            width: 5px;
        }
        .write-content::-webkit-scrollbar-track {
            background: transparent;
        }
        .write-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
        }

        @keyframes cdOverlayIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        @keyframes cdModalIn {
            from { opacity: 0; transform: scale(.92) translateY(16px); }
            to   { opacity: 1; transform: none; }
        }

        .write-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, .06);
            position: sticky;
            top: 0;
            z-index: 10;
            background: #0d1117;
            border-radius: 20px 20px 0 0;
        }

        .write-header-info {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .write-header-icon {
            width: 42px;
            height: 42px;
            background: rgba(0, 163, 255, .1);
            border: 1px solid rgba(0, 163, 255, .2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #00a3ff;
            flex-shrink: 0;
        }

        .write-header h2 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 700;
            color: #e6edf3;
            letter-spacing: -.01em;
            line-height: 1.3;
        }

        .write-header-sub {
            margin: 2px 0 0;
            font-size: .76rem;
            color: #484f58;
            font-weight: 400;
        }

        .close-write-modal {
            position: relative;
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, .04);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, .06);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s;
            flex-shrink: 0;
        }

        .close-write-modal:hover {
            background: rgba(255, 255, 255, .08);
            border-color: rgba(255, 255, 255, .12);
        }

        .close-write-modal::before,
        .close-write-modal::after {
            content: '';
            position: absolute;
            width: 13px;
            height: 1.5px;
            background: #484f58;
            border-radius: 1px;
            transition: background .2s;
        }

        .close-write-modal:hover::before,
        .close-write-modal:hover::after {
            background: #e6edf3;
        }

        .close-write-modal::before { transform: rotate(45deg); }
        .close-write-modal::after { transform: rotate(-45deg); }

        .write-body {
            padding: 1.5rem;
        }

        .form-step {
            margin-bottom: 1.5rem;
        }

        .step-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: .65rem;
        }

        .step-badge {
            width: 24px;
            height: 24px;
            background: rgba(0, 163, 255, .1);
            border: 1px solid rgba(0, 163, 255, .15);
            color: #00a3ff;
            border-radius: 8px;
            font-size: .72rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .step-label {
            font-size: .84rem;
            font-weight: 600;
            color: #c9d1d9;
            letter-spacing: -.01em;
        }

        .step-body {
            padding-left: 34px;
        }

        .search-input-wrap {
            position: relative;
        }

        .search-input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            color: #484f58;
            pointer-events: none;
            transition: color .2s;
        }

        .search-input-wrap:focus-within .search-input-icon {
            color: #00a3ff;
        }

        .search-movie-input {
            width: 100%;
            padding: .6rem 1rem .6rem 40px;
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: 12px;
            background: #161b22;
            color: #e6edf3;
            font-size: .88rem;
            font-family: 'Outfit', sans-serif;
            outline: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
        }

        .search-movie-input:focus {
            border-color: rgba(0, 163, 255, .4);
            box-shadow: 0 0 0 3px rgba(0, 163, 255, .1);
            background: #1c222d;
        }

        .search-movie-input::placeholder {
            color: #484f58;
        }

        .movie-suggestions {
            max-height: 300px;
            overflow-y: auto;
            background: #0d1117;
            border-radius: 14px;
            margin-top: 8px;
            display: none;
            border: 1px solid rgba(255, 255, 255, .06);
            box-shadow: 0 12px 14px rgba(0, 0, 0, .5);
        }

        .movie-suggestions.show {
            display: block;
        }

        .suggestion-item {
            padding: 10px 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: background .15s;
            border-bottom: 1px solid rgba(255, 255, 255, .04);
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-item:hover {
            background: rgba(255, 255, 255, .04);
        }

        .suggestion-item img {
            width: 38px;
            height: 57px;
            object-fit: cover;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .suggestion-info {
            flex: 1;
            min-width: 0;
        }

        .suggestion-title {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        .suggestion-media-type {
            display: inline-block;
            background: rgba(0, 163, 255, .1);
            color: #00a3ff;
            padding: 2px 7px;
            border-radius: 5px;
            font-size: 0.62rem;
            margin-left: 8px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.3px;
        }

        .selected-movie {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 14px;
            background: rgba(0, 163, 255, .04);
            border-radius: 14px;
            margin-top: 10px;
            border: 1px solid rgba(0, 163, 255, .12);
            transition: border-color .2s;
        }

        .selected-movie img {
            width: 50px;
            height: 75px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
            flex-shrink: 0;
        }

        .selected-movie > div {
            flex: 1;
            min-width: 0;
        }

        .selected-movie > div > div:first-child {
            font-weight: 600;
            color: #e6edf3;
            font-size: .9rem;
            line-height: 1.3;
        }

        .selected-movie > div > div:last-child {
            font-size: .68rem;
            font-weight: 700;
            color: #00a3ff;
            text-transform: uppercase;
            letter-spacing: .5px;
            margin-top: 4px;
        }

        .rating-input {
            display: flex;
            gap: 4px;
            justify-content: center;
            padding: 1rem;
            background: #161b22;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, .06);
            user-select: none;
            position: relative;
            flex-wrap: wrap;
            transition: border-color .2s;
        }

        .rating-input:hover {
            border-color: rgba(255, 255, 255, .1);
        }

        .star-container {
            position: relative;
            font-size: 2.2rem;
            line-height: 1;
            display: inline-block;
        }

        .star-half {
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            cursor: pointer;
            z-index: 2;
            overflow: hidden;
        }

        .star-full {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 1;
        }

        .star-background {
            color: #283347;
            transition: transform var(--transition-fast);
        }

        .star-fill {
            position: absolute;
            top: 0;
            left: 0;
            color: transparent;
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            -webkit-background-clip: text;
            background-clip: text;
            transition: all var(--transition-smooth);
            overflow: hidden;
            width: 0%;
        }

        .star-fill.half {
            width: 50%;
        }

        .star-fill.full {
            width: 100%;
        }

        .star-container:hover .star-background {
            transform: scale(1.12);
        }

        @keyframes starPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .star-container.pulse .star-background {
            animation: starPulse 0.25s ease;
        }

        .rating-display {
            text-align: center;
            margin-top: 12px;
            font-size: 1.1rem;
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
        }

        .review-textarea {
            width: 100%;
            min-height: 200px;
            padding: .75rem 1rem;
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: 14px;
            background: #161b22;
            color: #e6edf3;
            font-size: .88rem;
            font-family: 'Outfit', sans-serif;
            line-height: 1.7;
            overflow-y: auto;
            resize: vertical;
            outline: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
        }

        .review-textarea:focus {
            border-color: rgba(0, 163, 255, .4);
            box-shadow: 0 0 0 3px rgba(0, 163, 255, .1);
            background: #1c222d;
        }

        .review-textarea::placeholder {
            color: #484f58;
        }

        .spoiler {
            background: rgba(255, 255, 255, 0.06);
            padding: 2px 6px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: all var(--transition-smooth);
        }

        .spoiler::before {
            content: "SPOILER";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--red);
            opacity: 0.8;
            pointer-events: none;
            z-index: 1;
            letter-spacing: 0.5px;
        }

        .spoiler-hidden {
            filter: blur(5px);
            user-select: none;
        }

        .spoiler:hover .spoiler-hidden {
            filter: blur(3px);
        }

        .spoiler.revealed .spoiler-hidden {
            filter: none;
            user-select: auto;
        }

        .spoiler.revealed::before {
            display: none;
        }


        .container {
            max-width: 1080px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            padding-bottom: 100px;
        }

        .page-header {
            margin-bottom: 2.5rem;
            text-align: center;
        }

        .page-subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
            font-weight: 400;
        }

        .filter-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 2rem;
            padding: 4px;
            background: #161b22;
            border-radius: 14px;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
            border: 1px solid rgba(255, 255, 255, .06);
        }

        .filter-tab {
            padding: 0.55rem 1.4rem;
            background: transparent;
            border: none;
            color: #484f58;
            cursor: pointer;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.86rem;
            transition: all .15s;
            font-family: 'Outfit', sans-serif;
        }

        .filter-tab:hover {
            color: #e6edf3;
            background: rgba(255, 255, 255, 0.04);
        }

        .filter-tab.active {
            background: rgba(0, 163, 255, 0.12);
            color: #00a3ff;
            font-weight: 700;
        }

        .filter-tab.disabled,
        .filter-tab:disabled {
            opacity: 0.35;
            cursor: not-allowed !important;
            pointer-events: none;
        }

        .reviews-grid {
            display: grid;
            gap: 1rem;
        }

        .review-card {
            background: #161b22;
            border-radius: 16px;
            padding: 1.75rem;
            border: 1px solid rgba(255, 255, 255, .06);
            transition: all .3s cubic-bezier(.4, 0, .2, 1);
            position: relative;
        }

        .review-card:hover {
            border-color: rgba(255, 255, 255, .1);
            box-shadow: 0 8px 10px rgba(0, 0, 0, .3);
        }

        .review-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.25rem;
        }

        .review-user-info {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .user-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--horror-accent), var(--bg-primary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.15rem;
            flex-shrink: 0;
            overflow: hidden;
        }

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

        .user-info {
            flex: 1;
        }

        .user-name {
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
        }

        .verified-badge {
            background: var(--accent);
            color: white;
            padding: 0.1rem 0.45rem;
            border-radius: 4px;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .review-time {
            color: var(--text-dim);
            font-size: 0.82rem;
            margin-top: 1px;
        }

        .review-actions {
            display: flex;
            gap: 6px;
        }

        .action-btn {
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-dim);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-primary);
        }

        .action-btn.edit:hover {
            color: var(--accent);
            border-color: rgba(0, 163, 255, 0.3);
        }

        .action-btn.share:hover {
            color: var(--accent);
            border-color: rgba(0, 163, 255, 0.3);
        }

        .action-btn.delete:hover {
            color: var(--red);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .review-body {
            display: flex;
            gap: 1.25rem;
        }

        .media-poster {
            width: 120px;
            height: 180px;
            border-radius: var(--radius-md);
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
            background: var(--bg-primary);
        }

        .media-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-smooth);
        }

        .media-poster:hover img {
            transform: scale(1.04);
        }

        .media-type-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0, 0, 0, 0.75);
            color: white;
            padding: 3px 7px;
            border-radius: 5px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .review-content {
            flex: 1;
            min-width: 0;
        }

        .media-title {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.35rem;
            line-height: 1.25;
        }

        .media-meta {
            color: var(--text-dim);
            font-size: 0.88rem;
            margin-bottom: 0.85rem;
        }

        .review-watchlist-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 0.75rem;
        }

        .watchlist-badge-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            background: rgba(0, 163, 255, 0.12);
            border: 1px solid rgba(0, 163, 255, 0.25);
            border-radius: 12px;
            color: #00a3ff;
            font-size: 0.78rem;
            text-decoration: none;
            transition: background 0.2s, border-color 0.2s;
        }

        .watchlist-badge-link:hover {
            background: rgba(0, 163, 255, 0.22);
            border-color: rgba(0, 163, 255, 0.45);
            color: #00a3ff;
            text-decoration: none;
        }

        .watchlist-badge-link i {
            font-size: 0.7rem;
        }

        .rating-wrapper {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .star-rating {
            display: flex;
            gap: 1px;
        }

        .star {
            font-size: 1rem;
            position: relative;
            color: #283347;
        }

        .star.filled {
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .star.half::before {
            content: '\2605';
            position: absolute;
            width: 50%;
            overflow: hidden;
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .star.empty {
            color: #283347;
        }

        .rating-number {
            font-weight: 700;
            font-size: 1rem;
            color: var(--gold);
        }

        .review-text {
            color: var(--text-secondary);
            line-height: 1.75;
            margin-bottom: 1.25rem;
            font-size: 0.95rem;
            position: relative;
        }

        .review-text strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .review-text em {
            font-style: italic;
            color: var(--text-secondary);
        }

        .review-text u {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .interaction-bar {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .vote-buttons {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .vote-btn {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 6px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: transparent;
            cursor: pointer;
            transition: all var(--transition-fast);
            color: var(--text-dim);
            font-weight: 600;
            font-size: 0.85rem;
        }

        .vote-btn:hover {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-secondary);
        }

        .vote-btn.like.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.3);
            color: var(--green);
        }

        .vote-btn.dislike.active {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            color: var(--red);
        }

        .vote-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .vote-count {
            font-size: 0.88rem;
        }

        .loading-spinner {
            border: 2px solid rgba(255, 255, 255, 0.06);
            border-radius: 50%;
            border-top: 2px solid var(--accent);
            width: 22px;
            height: 22px;
            animation: spin 0.8s linear infinite;
            margin: 12px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .no-results {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-dim);
            font-size: 0.95rem;
        }

        @media (max-width: 768px) {
            .container {
                padding: 1.25rem 0.75rem;
                padding-bottom: 80px;
            }

            .page-header {
                margin-bottom: 1.25rem;
            }

            .page-title {
                font-size: 1.5rem;
            }

            .filter-tabs {
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                gap: 3px;
                padding: 3px;
            }

            .filter-tabs::-webkit-scrollbar {
                display: none;
            }

            .filter-tab {
                padding: 0.5rem 1rem;
                font-size: 0.82rem;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .reviews-grid {
                gap: 0.75rem;
            }

            .review-card {
                padding: 1rem;
                border-radius: var(--radius-md);
            }

            .review-header {
                margin-bottom: 0.85rem;
            }

            .user-avatar {
                width: 38px;
                height: 38px;
                font-size: 0.95rem;
            }

            .user-name {
                font-size: 0.9rem;
            }

            .review-time {
                font-size: 0.75rem;
            }

            .review-body {
                gap: 0.85rem;
            }

            .media-poster {
                width: 85px;
                height: 128px;
                border-radius: 10px;
            }

            .media-type-badge {
                top: 5px;
                left: 5px;
                padding: 2px 5px;
                font-size: 0.55rem;
            }

            .media-title {
                font-size: 1.1rem;
            }

            .media-meta {
                font-size: 0.8rem;
                margin-bottom: 0.5rem;
            }

            .rating-wrapper {
                gap: 0.5rem;
                margin-bottom: 0.7rem;
            }

            .star {
                font-size: 0.85rem;
            }

            .rating-number {
                font-size: 0.9rem;
            }

            .review-text {
                font-size: 0.88rem;
                line-height: 1.65;
                margin-bottom: 0.85rem;
            }

            .interaction-bar {
                gap: 0.6rem;
            }

            .vote-btn {
                padding: 5px 10px;
                gap: 4px;
                font-size: 0.78rem;
            }

            .vote-btn svg {
                width: 14px;
                height: 14px;
            }

            .star-container {
                font-size: 1.8rem;
            }

            .write-modal.show {
                padding-top: 2vh;
            }

            .write-content {
                max-height: 95vh;
                border-radius: 16px;
            }

            .write-header {
                padding: 1rem 1.15rem;
                border-radius: 16px 16px 0 0;
            }

            .write-header-icon {
                width: 36px;
                height: 36px;
                border-radius: 10px;
            }

            .write-header-icon svg {
                width: 17px;
                height: 17px;
            }

            .write-header h2 {
                font-size: .95rem;
            }

            .write-header-sub {
                font-size: .72rem;
            }

            .write-body {
                padding: 1.25rem 1rem;
            }

            .step-body {
                padding-left: 0;
            }

            .review-textarea {
                min-height: 160px;
            }

            .cd-actions {
                flex-direction: column-reverse;
            }

            .cd-actions .hj-btn {
                width: 100%;
                justify-content: center;
            }

            .comments-modal.show {
                padding-top: 2vh;
            }

            .comments-content {
                max-height: 95vh;
                border-radius: 16px;
            }

            .comments-modal-header {
                padding: 1rem 1.15rem;
                border-radius: 16px 16px 0 0;
            }

            .comments-modal-body {
                padding: 1.25rem 1rem;
            }
        }

        @media (max-width: 420px) {
            .container {
                padding: 1rem 0.6rem;
            }

            .review-card {
                padding: 0.85rem;
            }

            .media-poster {
                width: 70px;
                height: 105px;
            }

            .media-title {
                font-size: 1rem;
            }

            .star {
                font-size: 0.78rem;
            }

            .review-text {
                font-size: 0.85rem;
            }

            .filter-tab {
                padding: 0.4rem 0.8rem;
                font-size: 0.78rem;
            }

            .user-avatar {
                width: 34px;
                height: 34px;
            }
        }
        /* ===== Comments Modal ===== */
        .comments-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }

        .comments-modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 5vh;
            animation: cdOverlayIn .2s ease-out;
        }

        .comments-content {
            background: #0d1117;
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: 20px;
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            animation: cdModalIn .35s cubic-bezier(.16, 1, .3, 1);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 32px 24px rgba(0, 0, 0, .6), 0 12px 12px rgba(0, 0, 0, .35);
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .comments-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00a3ff, transparent);
            border-radius: 0 0 2px 2px;
            opacity: .6;
            z-index: 11;
        }

        .comments-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, .06);
            background: #0d1117;
            border-radius: 20px 20px 0 0;
            flex-shrink: 0;
        }

        .comments-modal-title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 700;
            color: #e6edf3;
            letter-spacing: -.01em;
            line-height: 1.3;
        }

        .comments-modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex: 1;
        }

        .comments-modal-body::-webkit-scrollbar {
            width: 5px;
        }
        .comments-modal-body::-webkit-scrollbar-track {
            background: transparent;
        }
        .comments-modal-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
        }

        #commentsList {
            max-height: 400px;
            overflow-y: auto;
            margin-bottom: 1rem;
        }


        .comment-item {
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            padding: 10px;
            margin-bottom: 6px;
            position: relative;
        }

        .comment-header {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            position: relative;
        }

        .comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .comment-user-info {
            flex: 1;
        }

        .comment-user-info strong {
            color: var(--accent);
            font-weight: 700;
            font-size: 13px;
            line-height: 1.2;
        }

        .comment-user-info small {
            color: var(--text-secondary);
            font-size: 10px;
        }

        .comment-content {
            color: var(--text-primary);
            line-height: 1.6;
            margin: 3px 0;
            font-size: 12px;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .comment-actions {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 5px;
            flex-wrap: wrap;
        }

        .comment-like-btn, .comment-dislike-btn {
            background: transparent;
            color: var(--text-dim);
            border: 1px solid var(--border);
            padding: 2px 7px;
            font-size: 0.7rem;
            font-weight: 600;
            border-radius: 5px;
            transition: all var(--transition-fast);
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            gap: 3px;
        }

        .comment-like-btn:hover {
            background: var(--accent-glow);
            color: var(--accent);
            border-color: rgba(0, 163, 255, 0.3);
        }

        .comment-dislike-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--red);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .comment-like-btn.liked {
            background: var(--accent-glow);
            color: var(--accent);
            border-color: rgba(0, 163, 255, 0.3);
        }

        .comment-dislike-btn.disliked {
            background: rgba(239, 68, 68, 0.1);
            color: var(--red);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .comment-delete-btn {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 0.7rem;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 5px;
            transition: color var(--transition-fast);
            display: inline-flex;
            align-items: center;
            gap: 3px;
            margin-left: auto;
        }

        .comment-delete-btn:hover {
            color: var(--red);
        }

        .comment-timestamp {
            font-size: 0.65rem;
            color: var(--text-dim);
            margin-left: auto;
            flex-shrink: 0;
        }

        .comment-like-count, .comment-dislike-count {
            font-size: 0.7rem;
            font-weight: 600;
            color: inherit;
        }

        @media (max-width: 768px) {
            .create-review-btn {
                margin: 1rem auto;
            }

            .create-review-btn .hj-btn {
                font-size: 0.85rem;
                padding: 10px 20px;
            }
        }

        @media (min-width: 1600px) {
            .container {
                max-width: 1180px;
            }

            .review-card {
                padding: 2rem;
            }

            .media-poster {
                width: 135px;
                height: 203px;
            }

            .media-title {
                font-size: 1.5rem;
            }

            .review-text {
                font-size: 1rem;
            }
        }

        @media (min-width: 2560px) {
            .container {
                max-width: 1400px;
                padding: 2.5rem;
            }

            .review-card {
                padding: 2.25rem;
            }

            .media-poster {
                width: 150px;
                height: 225px;
            }

            .media-title {
                font-size: 1.6rem;
            }

            .review-text {
                font-size: 1.05rem;
                line-height: 1.8;
            }

            .user-avatar {
                width: 52px;
                height: 52px;
                font-size: 1.3rem;
            }

            .user-name {
                font-size: 1.1rem;
            }

            .star {
                font-size: 1.1rem;
            }

            .rating-number {
                font-size: 1.1rem;
            }

            .filter-tab {
                padding: 0.65rem 1.8rem;
                font-size: 0.95rem;
            }
        }
