        :root {
            --background-primary: #000000;
            --background-secondary: #1A1A1A;
            --background-tertiary: #2C2C2C;
            --text-primary: #F0F0F0;
            --text-secondary: #A0A0A0;
            --accent-color: #5E81AC;
            --accent-color-hover: #81A1C1;
            --success-color: #A3BE8C;
            --error-color: #BF616A;
            --warning-color: #EBCB8B;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--background-primary);
            color: var(--text-primary);
            font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-bottom: 80px; 
        }

        body.modal-open {
            overflow: hidden;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* NEW MODAL STYLES FOR LIST MANAGEMENT */
        #list-management-modal .modal-content {
            background-color: #1c1c1e;
            color: var(--text-primary);
            max-width: 420px;
        }
        #list-management-modal h2 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 24px;
            text-align: left;
        }
        .modal-section {
            margin-bottom: 20px;
        }
        .modal-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            text-transform: uppercase;
        }
        .status-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .status-btn {
            background-color: var(--background-tertiary);
            border: 1px solid transparent;
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .status-btn:hover {
            background-color: #3f3f3f;
        }
        .status-btn.active {
            background-color: var(--accent-color);
            color: #fff;
            font-weight: 600;
            border-color: var(--accent-color-hover);
        }
        .playlists-list {
            max-height: 150px;
            overflow-y: auto;
            padding-right: 5px; /* for scrollbar */
        }
        .playlist-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
        }
        .playlist-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            accent-color: var(--accent-color);
        }
        .playlist-item label {
            font-size: 16px;
        }
        .create-playlist-btn {
            background: none;
            border: none;
            color: var(--accent-color);
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        #new-playlist-form {
            display: none;
            margin-top: 10px;
        }
        #new-playlist-input {
            width: 100%;
            padding: 10px;
            background-color: var(--background-secondary);
            border: 1px solid var(--background-tertiary);
            border-radius: 8px;
            color: var(--text-primary);
        }
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 24px;
        }
        .modal-actions .btn {
            padding: 10px 20px;
            border-radius: 20px;
            font-weight: 600;
            cursor: pointer;
            border: none;
        }
        .modal-actions .btn-secondary {
            background-color: var(--background-tertiary);
            color: var(--text-primary);
        }
         .modal-actions .btn-primary {
            background-color: var(--accent-color);
            color: #fff;
        }
        
    /* ... (The rest of your original CSS) ... */
     header {
            position: relative; 
            z-index: 1001; 
            background-color: transparent;
            padding: 10px 0;
            border-bottom: 1px solid #33333300;
        }

        .header-content {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 0 20px;
        }
        .header-content .nav-icons {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-content .nav-icon {
            position: relative;
            background-color: rgb(134 134 134 / 32%);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform, box-shadow, background-color, border-color;
        }
        
        .header-content .nav-icon svg {
            width: 22px;
            height: 22px;
            stroke: white;
            fill: none;
            transition: transform 0.3s ease;
        }

        .header-content .nav-icon.search:hover {
            transform: scale(1.15) translateY(-2px);
            background-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .header-content .nav-icon.search:hover svg {
            transform: scale(1.1);
        }

        .header-content .nav-icon.search svg circle,
        .header-content .nav-icon.search svg path {
            stroke: white;
            stroke-width: 2;
        }
        
        .header-content .nav-icon.profile {
            width: 48px;
            height: 48px;
            background: none;
            padding: 0;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
        }

        .header-content .nav-icon.profile:hover {
            transform: scale(1.1);
            box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
            border-color: rgba(255, 255, 255, 0.7);
        }

        .header-content .nav-icon.profile .profile-avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .profile-menu {
            position: absolute;
            right: 25px;
            top: 65px;
            background: #161617;
            border-radius: 14px;
            box-shadow: 0 10px 25px rgba(0,0,0,.3),0 4px 12px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.05);
            width: 300px;
            z-index: 1000;
            display: none;
            font-family: Inter,"Segoe UI",sans-serif;
            overflow: hidden;
            border: 1px solid #33415500;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }
        .profile-menu.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        .profile-header {
            display: flex;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #8989892d;
            background: linear-gradient(135deg,#252525 0,#000 100%);
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .profile-header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to top, rgba(26,26,29,1) 0%, rgba(26,26,29,0.5) 100%);
            z-index: 1;
        }
         .profile-header img, .profile-header div {
            position: relative;
            z-index: 2;
        }
        .profile-pic {
            width: 52px;
            height: 52px;
            border-radius: 30%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid #c3cfdf30;
            box-shadow: 0 2px 8px rgba(0,0,0,.3);
        }
        .profile-name { font-weight: 600; font-size: 16px; color: #f1f5f9; }
        .menu-options { padding: 10px 0; }
        .menu-option {
            font-size: 15px;
            position: relative;
            display: flex;
            align-items: center;
            padding: 14px 20px;
            text-decoration: none;
            color: #e2e8f0;
            font-weight: 500;
            transition: .25s cubic-bezier(.4, 0, .2, 1);
        }
        .menu-option:hover {
            background: rgba(255,255,255,.05);
            color: #fff;
            padding-left: 22px;
        }
        .logout-btn {
            font-size: 15px;
            position: relative;
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
            padding: 15px;
            background: linear-gradient(135deg,rgba(239,68,68,.1) 0,rgba(220,38,38,.1) 100%);
            border: none;
            border-top: 1px solid #535353;
            color: #f87171;
            font-weight: 600;
            cursor: pointer;
            transition: .3s;
            overflow: hidden;
        }
        
        .profile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
        }
        body.profile-menu-open .profile-menu-overlay {
            opacity: 1;
            visibility: visible;
        }
        
        body.search-active { overflow: hidden; }

        #search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(12px) saturate(150%);
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            z-index: 9999;
            display: flex;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px;
        }

        #search-overlay.visible {
            opacity: 1;
            pointer-events: all;
        }
        #search-container {
            width: 100%;
            max-width: 680px;
            margin-top: 12vh;
            transform: scale(0.95) translateY(-10px);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        #search-overlay.visible #search-container {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
        #search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background-color: #2c2c2e;
            border-radius: 12px;
            border: 1px solid transparent;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        #search-input-wrapper:focus-within {
            border-color: #4a4a4e;
            box-shadow: 0 0 0 4px rgba(90, 90, 94, 0.4);
        }
        #search-input {
            width: 100%;
            height: 56px;
            padding: 0 50px 0 55px;
            border: none;
            background-color: transparent;
            color: #f2f2f2;
            font-size: 17px;
            font-weight: 500;
            outline: none;
        }
        #search-input-wrapper .search-icon, #search-input-wrapper #search-close-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #8e8e93;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #search-input-wrapper .search-icon { left: 20px; width: 22px; height: 22px; }
        #search-input-wrapper #search-close-btn {
            right: 12px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: background-color 0.2s, color 0.2s;
        }
        #search-results-info {
            padding: 16px 8px 4px 8px;
            color: #b1b1b3;
            font-size: 14px;
            font-weight: 500;
            opacity: 0;
            transition: opacity 0.2s;
        }
        #search-results-info.visible { opacity: 1; }
        #search-results {
            margin-top: 4px;
            max-height: calc(75vh - 100px);
            overflow-y: auto;
            padding-right: 8px;
        }
        .search-result-item {
            display: flex;
            align-items: center;
            padding: 8px;
            border-radius: 10px;
            margin-bottom: 8px;
            background-color: rgba(44, 44, 46, 0.7);
            text-decoration: none;
            transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
        }
        .search-result-item:hover {
            background-color: #3a3a3c;
            transform: scale(1.01);
        }
        .search-result-poster { width: 48px; height: 68px; border-radius: 6px; object-fit: cover; margin-right: 16px; flex-shrink: 0; background-color: #3a3a3c; }
        .search-result-info { display: flex; flex-direction: column; color: #f2f2f2; overflow: hidden; gap: 6px; }
        .search-result-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .search-result-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #f2f2f2; font-weight: 500; }
        .meta-tag { display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 50px; }
        .meta-tag.rating { background-color: #30D158; color: #000; font-weight: 600; }
        .meta-tag.episodes, .meta-tag.year { background-color: #48484a; }
        .meta-tag .star-icon { width: 14px; height: 14px; fill: #000; }

        @media (max-width: 768px) {
            .header-content { justify-content: flex-end; }
            .header-content .nav-icons { gap: 8px; }
            .header-content .nav-icon { width: 38px; height: 38px; }
            .header-content .nav-icon svg { width: 20px; height: 20px; }
            .header-content .nav-icon.profile { width: 44px; height: 44px; }
            .profile-menu {
                width: 280px;
                right: 15px;
                top: 60px;
            }
        }
        /* MAIN CONTENT */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        
        /* BACKGROUND */
        .background-container {
            position: fixed;
            width: 100%;
            height: 100vh;
            z-index: -1;
            top: 0;
            left: 0;
            overflow: hidden;
        }

        .background-image {
            position: absolute;
            top: 50%;
            left: 50%;
            height: 120vh;
            width: 120vw;
            max-width: 1800px;
            z-index: -2;
            filter: blur(32px);
            transform: translate(-50%, -50%) scale(1.1);
            object-fit: cover;
            transition: transform 6s ease-in-out;
        }

        .background-container::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, var(--background-primary) 70%), 
                        linear-gradient(to bottom, transparent 0%, var(--background-primary) 90%);
            z-index: -1;
        }

        .info-wrapper {
            padding: 16px;
        }
        
        .anime-header-info {
             text-align: center;
             margin-bottom: 20px;
        }
        
        .anime-header-info h1 {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 4px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .anime-header-info .original-title {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 12px;
        }
        
        .meta-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .meta-tag {
            background-color: var(--background-tertiary);
            color: var(--text-secondary);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .watch-button {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #ffffff;
            color: #000000;
            border: none;
            border-radius: 25px;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
            width: 100%;
            gap: 8px;
        }

        .watch-button:hover {
            background-color: #e0e0e0;
            transform: scale(1.05);
        }
        
        .actions-container {
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            text-align: center;
        }
        
        .action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .action-item:hover {
            color: var(--text-primary);
            transform: translateY(-3px);
        }
        
        .action-icon-wrapper {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: var(--background-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            font-size: 20px;
            color: var(--text-primary);
            transition: background-color 0.2s ease;
        }
        
        .action-item:hover .action-icon-wrapper {
            background-color: #3a3a3a;
        }

        /* TABS */
        .content-tabs {
            padding: 0 16px;
            border-bottom: 1px solid var(--background-tertiary);
        }

        .tab-buttons {
            display: flex;
            gap: 16px;
            position: relative;
        }

        .tab-btn {
            padding: 16px 8px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: color 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .tab-btn::before {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 2px;
            transform: scaleX(0);
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .tab-btn.active {
            color: var(--text-primary);
        }
        
        .tab-btn.active::before {
            transform: scaleX(1);
        }
        
        .tab-content {
            padding: 24px 16px;
        }
        
        .tab-pane {
            display: none;
        }
        
        .tab-pane.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .description {
            color: #E0E0E0;
            line-height: 1.7;
            font-size: 15px;
            font-weight: 400;
        }
        
        .details-grid {
            display: grid;
            grid-template-columns: 140px 1fr;
            gap: 12px;
            align-items: center;
        }
        .details-label { font-weight: 600; color: var(--text-secondary); }
        .details-value { font-weight: 400; color: var(--text-primary); }

        /* RECOMMENDATIONS AND OTHERS */
        .section-heading {
            font-size: 20px;
            font-weight: 700;
            padding: 0 16px;
            margin: 24px 0 16px;
        }
        
        .recommendations {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 0 16px 16px;
            scrollbar-width: none;
        }
        .recommendations::-webkit-scrollbar { display: none; }
        
        .anime-card {
            flex: 0 0 130px;
            width: 130px;
            transition: transform 0.3s ease;
        }
        .anime-card:hover {
            transform: translateY(-5px);
        }
        .anime-poster {
            width: 98%;
            height: 182px;
            border-radius: 14px;
            object-fit: cover;
            margin-bottom: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        .anime-title {
            font-size: 14px;
            font-weight: 500;
            color: #e0e0e0;
            line-height: 1.3;
        }

        /* COMMENTS */
        .comments-container {
            padding: 0 16px;
        }
        .comment-form textarea {
            width: 100%;
            background-color: var(--background-secondary);
            border: 1px solid var(--background-tertiary);
            border-radius: 23px;
            padding: 12px;
            color: var(--text-primary);
            min-height: 80px;
            resize: none;
            font-family: inherit;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .comment-form textarea:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(94, 129, 172, 0.3);
        }
        .button-row {
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
        }
        .send-btn {
            background-color: var(--accent-color);
            color: var(--text-primary);
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
        }
        .send-btn:hover {
            background-color: var(--accent-color-hover);
            transform: scale(1.05);
        }

        .comment-item {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        .comment-username {
            font-weight: 700;
        }
        .comment-time {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 8px;
        }
        .comment-text {
            margin-top: 4px;
            line-height: 1.6;
            color: #d0d0d0;
        }


        /* BOTTOM NAVIGATION */
        .bottom-nav {
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          background: #111;
          display: flex;
          justify-content: space-around;
          align-items: center;
          padding: 8px 0;
          border-top: 1px solid #222;
          z-index: 1000;
        }

        .bottom-nav a {
          text-decoration: none;
          color: #aaa;
          font-size: 12px;
          display: flex;
          flex-direction: column;
          align-items: center;
          flex: 1;
          transition: 0.3s;
        }

        .bottom-nav a i, .bottom-nav a svg {
          font-size: 22px;
          margin-bottom: 3px;
        }
        
        .bottom-nav a svg {
            width: 22px;
            height: 22px;
            margin-bottom: 3px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }


        .bottom-nav a.active,
        .bottom-nav a:hover {
          color: #fff;
        }

        .center-logo {
          position: fixed;
          bottom: 25px; 
          left: 50%;
          transform: translateX(-50%);
          width: 65px;
          height: 65px;
          border-radius: 50%;
          overflow: hidden;
          box-shadow: 0 4px 12px rgba(0,0,0,0.5);
          z-index: 1001;
          pointer-events: none; 
        }

        .center-logo img {
          width: 100%;
          height: 100%;
          object-fit: cover; 
          border-radius: 50%;
        }

        /* MOBILE POSTER STYLES */
        .poster-column {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            perspective: 1000px;
        }
        .mobile-poster {
            width: 60%;
            max-width: 220px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            animation: subtle-float-3d 8s ease-in-out infinite alternate;
        }
        
        .initial-actions {
            margin-bottom: 20px;
        }
        .desktop-poster {
            display: none;
        }
        .poster-sub-info {
            text-align: center;
            margin-top: 16px;
        }
        .poster-original-title {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 10px;
        }
        .in-favorites-indicator {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: rgba(163, 190, 140, 0.15);
            color: var(--success-color);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid rgba(163, 190, 140, 0.3);
        }

        @keyframes subtle-float-3d {
            0% { transform: translateZ(0) rotateY(-10deg) rotateX(5deg) translateY(0); }
            100% { transform: translateZ(20px) rotateY(10deg) rotateX(-5deg) translateY(-10px); }
        }

        /* DESKTOP STYLES */
        @media (min-width: 768px) {
            body {
                padding-bottom: 0;
            }
            .bottom-nav, .center-logo, .mobile-poster, .initial-actions {
                display: none;
            }
            .actions-container .watch-button {
                display: none;
            }
            
            .main-container {
                display: flex;
                gap: 48px;
                padding: 32px;
            }
            .poster-column {
                flex: 0 0 280px;
                width: 280px;
                padding: 0;
                display: block;
            }
            .content-column {
                flex: 1;
                min-width: 0;
            }
            .desktop-poster {
                display: block;
                width: 100%;
                border-radius: 12px;
                box-shadow: 0 10px 25px rgba(0,0,0,.5);
                max-width: none;
                animation: none;
                transition: 0.5s;
                transform-style: preserve-3d;
            }
            .desktop-poster:hover {
                animation: 2s ease-in-out infinite alternate subtle-tilt;
                box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
            }
            @keyframes subtle-tilt {
                0% { transform: rotateY(-8deg) rotateX(3deg); }
                100% { transform: rotateY(8deg) rotateX(-3deg); }
            }
            .info-wrapper {
                padding: 0;
                display: block;
            }
            .anime-header-info {
                text-align: left;
                margin-bottom: 24px;
            }
            .meta-tags {
                justify-content: flex-start;
            }
            .anime-header-info h1 {
                font-size: 32px;
            }
            .actions-container {
                justify-content: flex-start;
                gap: 16px;
                padding: 0;
                align-items: center;
                flex-wrap: wrap;
            }
            .actions-container .watch-button {
                display: flex;
                order: -1;
                padding: 12px 28px;
                font-size: 16px;
                width: auto;
                min-width: 200px;
            }
            .action-item {
                margin-top: 0;
            }
            .content-tabs {
                padding: 0;
                margin-top: 24px;
            }
            .tab-content {
                padding: 24px 0;
            }
            .section-heading, .recommendations, .comments-container {
                padding-left: 0;
                padding-right: 0;
            }
        }
        
        /* MODAL STYLES */
        .modal { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); justify-content: center; align-items: center; }
        .modal.show { display: flex; animation: fadeInModal 0.3s; }
        @keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
        .modal-content { background-color: black; padding: 24px; border-radius: 12px; max-width: 500px; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.95); animation: zoomInModal 0.3s forwards; position: relative; }
        @keyframes zoomInModal { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: var(--text-secondary); transition: color 0.2s, transform 0.2s; z-index: 10; }
        .modal-close:hover { color: var(--text-primary); transform: scale(1.1); }
        
        /* PLAYER MODAL */
        #player-modal { top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; }
        #player-modal .modal-content { background: black; border: none; width: 100%; height: 100%; max-width: 100%; padding: 0; border-radius: 0; }
        #player-modal .modal-close { top: 20px; right: 30px; background-color: rgba(0,0,0,0.5); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
        #player-iframe { width: 100%; height: 100%; border: 0; }
        
        /* FRAME MODAL */
        #frame-modal .modal-content { padding: 0; background: transparent; width: 90vw; height: 90vh; max-width: 1600px; }
        #full-screen-frame { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

        /* SHARE MODAL */
        #share-modal .modal-content { text-align: center; }
        #share-modal .modal-title { margin-bottom: 24px; font-size: 22px; }
        .share-options { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
        .share-option { display: flex; flex-direction: column; align-items: center; color: var(--text-primary); text-decoration: none; gap: 8px; font-size: 14px; transition: transform 0.2s; }
        .share-option:hover { transform: scale(1.1); }
        .share-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; }
        .share-icon.telegram { background: #2AABEE; }
        .share-icon.vk { background: #4C75A3; }
        .share-icon.link { background: #6c757d; }

        /* DETAILS MODAL */
        #details-modal { align-items: flex-start; padding-top: 5vh; }
        #details-modal .modal-content {
            max-width: 800px;
            width: 95%;
            background-color: rgba(28, 28, 30, 0); /* Transparent background */
            max-height: 90vh;
            overflow-y: auto;
        }
        #details-modal .details-modal-header { text-align: left; }
        .details-modal-title { font-size: 24px; font-weight: 800; text-align: left; }
        .details-modal-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; text-align: left; }
        .details-modal-label { font-weight: 700; color: var(--text-secondary); text-align: left; }
        .details-modal-value { font-weight: 500; color: var(--text-primary); text-align: left; }
        #details-modal .description, #details-modal .next-episode { text-align: left; margin-top: 24px; }
        
        @media (max-width: 600px) {
            .details-modal-grid { grid-template-columns: 1fr; gap: 12px; }
            .details-modal-label { text-align: left; font-size: 14px; margin-bottom: -8px; }
        }

        /* NOTIFICATION MODAL */
        .notification-modal { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); justify-content: center; align-items: center; }
        .notification-modal.show { display: flex; animation: fadeInModal 0.3s; }
        .notification-modal.show .notification-modal-content { animation: zoomInModal 0.3s forwards; }
        .notification-modal-content { background-color: #1a1a1d; color: #f0f0f0; padding: 35px; border-radius: 16px; width: 90%; max-width: 440px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
        .notification-modal-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; line-height: 32px; text-align: center; background-color: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; font-size: 24px; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
        .notification-modal-close:hover { background-color: rgba(255,255,255,0.2); transform: rotate(90deg); }
        .notification-modal-header { font-size: 1.7rem; font-weight: 600; margin-bottom: 10px; }
        .notification-modal-subheader { font-size: 1rem; color: #a9a9b3; margin-bottom: 30px; line-height: 1.6; }
        .notification-modal-body { display: flex; flex-direction: column; gap: 15px; }
        .modal-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: #f0f0f0; color: #121212; border: none; padding: 14px 25px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%; box-sizing: border-box; border-radius: 12px; transition: background-color 0.2s ease, transform 0.2s ease; }
        .modal-button:hover { background-color: #dcdcdc; transform: translateY(-2px); }
        .modal-button.telegram-btn { background-color: #0088cc; color: white; }
        .modal-button.telegram-btn:hover { background-color: #007ab5; }
        #verification-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
        #verification-form input[type="text"] { background-color: #2c2c31; border: 1px solid #444; color: #fff; padding: 14px; text-align: center; font-size: 1.1rem; letter-spacing: 3px; width: 100%; box-sizing: border-box; border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
        #verification-form input[type="text"]:focus { outline: none; border-color: #6a5acd; box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.3); }
        #verification-message { font-size: 0.9em; color: #a9a9b3; min-height: 20px; }
        .toggle-container { display: flex; justify-content: space-between; align-items: center; background-color: #2c2c31; padding: 15px 20px; border-radius: 12px; cursor: pointer; }
        .toggle-container .toggle-label { font-size: 1rem; font-weight: 500; color: #f0f0f0; }
        .toggle-switch { position: relative; display: inline-block; width: 51px; height: 31px; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; border-radius: 34px; transition: 0.4s; }
        .slider:before { position: absolute; content: ""; height: 27px; width: 27px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: 0.4s; }
        input:checked + .slider { background-color: #34c759; }
        input:checked + .slider:before { transform: translateX(20px); }
        #subscription-message { font-size: 0.9em; color: #a9a9b3; min-height: 20px; margin-top: 5px; }

        /* TOAST NOTIFICATION */
        .toast-notification {
            position: fixed;
            bottom: -100px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            padding: 14px 24px;
            border-radius: 8px;
            z-index: 10002;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            opacity: 0;
            font-weight: 600;
        }
        .toast-notification.show {
            bottom: 90px;
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }
        .toast-notification.hide {
            bottom: -100px;
            opacity: 0;
            transform: translateX(-50%) scale(0.8);
        }
        @media (min-width: 768px) {
            .toast-notification.show { bottom: 30px; }
        }
        .toast-notification.success { background-color: var(--success-color); }
        .toast-notification.error { background-color: var(--error-color); }
        .toast-notification.warning { background-color: var(--warning-color); color: #000; }
        .toast-notification .toast-icon { font-size: 20px; }

        /* Episodes Tab */
        .episodes-header {
            margin-bottom: 20px;
        }
        .dub-selector {
            background-color: #1a1a1a;
            border: 1px solid var(--background-tertiary);
            padding: 8px;
            border-radius: 27px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        @media (max-width: 768px) {
            .dub-selector {
                width: 100%;
                justify-content: center;
            }
            .dub-selector i {
                margin-right: 8px;
            }
        }
        .dub-selector .dub-logo {
            font-weight: 700;
        }
        .episode-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .episode-item {
            display: flex;
            gap: 15px;
            align-items: center;
            background-color: #080808;
            border-radius: 23px;
            padding: 10px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .episode-item:hover {
            background-color: var(--background-tertiary);
        }
        .episode-thumbnail-container {
            position: relative;
            width: 126px;
            height: 77px;
            flex-shrink: 0;
        }
        .episode-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 16px; /* Slightly more rounded */
        }
        .episode-duration {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            padding: 2px 6px;
            font-size: 12px;
            border-radius: 4px;
        }
        .episode-details {
            overflow: hidden;
        }
        .episode-title {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .episode-description {
            font-size: 14px;
            color: var(--text-secondary);
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Sidebar Nav */
        .nav-wrapper {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            z-index: 999;
            transition: all 0.3s ease;
        }
        .nav-panel {
            position: relative;
            width: 60px;
            height: 100%;
            background-color: #0d0d0d;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 0;
            transition: transform 0.3s ease;
        }
        .nav-panel.closed { transform: translateX(-60px); }
        .toggle-button {
            position: absolute;
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 50px;
            background-color: #333;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .nav-wrapper:hover .toggle-button { opacity: 1; }
        .toggle-button:after { content: "◀"; color: white; font-size: 12px; }
        .nav-panel.closed + .toggle-button:after { content: "▶"; }
        .nav-panel a { color: white; text-decoration: none; margin: 15px 0; font-size: 20px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
        .nav-panel a:hover { opacity: 0.8; }
        .top-icons { flex: 1; display: flex; flex-direction: column; align-items: center; }
        .bottom-icons { display: flex; flex-direction: column; align-items: center; }

        @media (max-width: 768px) {
            .nav-wrapper { display: none; }
            .actions-container .watch-button { display: none; } /* Hide PC watch button on mobile */
        }