/* ==========================================================
   AnimeCorner v2
   Part 1
   Root + Reset + Header
========================================================== */

:root {

    --primary: #f5c451;
    --primary-dark: #e7b73b;

    --bg: #0f1117;
    --bg2: #171923;
    --bg3: #202330;

    --card: #1c1f2b;
    --card-hover: #252938;

    --border: #2b3042;

    --white: #ffffff;
    --text: #d5d7de;
    --muted: #9ca3af;

    --green: #16a34a;
    --blue: #2563eb;
    --red: #ef4444;
    --orange: #f59e0b;

    --radius: 18px;

    --shadow:
        0 10px 35px rgba(0, 0, 0, .35);

    --transition: .30s ease;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   WATCH PAGE - ANIMECORNER PREMIUM PLAYER UI
   Complete Responsive Design
========================================================== */

/* ==========================================================
ROOT VARIABLES
========================================================== */
:root {
    --primary: #ffb400;
    --primary-dark: #ff9800;
    --primary-rgb: 255, 180, 0;
    
    --bg: #0f1115;
    --bg2: #181b22;
    --bg3: #22262f;
    
    --border: #2f3642;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --text: #ffffff;
    --text2: #c8ccd3;
    --text3: #8b92a0;
    
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    
    --shadow: 0 15px 35px rgba(0, 0, 0, .35);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, .45);
    
    --transition: .3s ease;
    --transition-fast: .2s ease;
}

/* ==========================================================
LIGHT THEME
========================================================== */
[data-theme="light"] {
    --bg: #f0f2f5;
    --bg2: #e8eaed;
    --bg3: #d5d8dd;
    --border: #c5c8ce;
    --text: #1a1a2e;
    --text2: #4a4a6a;
    --text3: #8a8a9a;
    --shadow: 0 15px 35px rgba(0, 0, 0, .1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, .15);
    --border-light: rgba(0, 0, 0, 0.08);
}

/* ==========================================================
RESET & BASE
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================
SCROLLBAR
========================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==========================================================
SELECTION
========================================================== */
::selection {
    background: var(--primary);
    color: #000;
}

/* ==========================================================
CONTAINER
========================================================== */
.watch-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 25px;
    align-items: start;
}

/* ==========================================================
PLAYER CARD
========================================================== */
.player-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.player-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-card:hover {
    box-shadow: var(--shadow-hover);
}

/* ==========================================================
EPISODE HEADER
========================================================== */
.episode-header {
    margin-top: 20px;
    margin-bottom: 15px;
}

.episode-header h1 {
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.episode-meta span {
    padding: 8px 16px;
    background: var(--bg2);
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
ACTION BUTTONS
========================================================== */
.player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.action-btn {
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--bg2);
    color: var(--text);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border);
    touch-action: manipulation;
}

.action-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, .25);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.active {
    background: var(--primary);
    color: #000;
}

.action-btn .btn-icon {
    font-size: 1.1em;
}

/* ==========================================================
ANIME INFO CARD
========================================================== */
.anime-info-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    background: var(--bg2);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-top: 25px;
    transition: border-color var(--transition);
}

.anime-info-card:hover {
    border-color: var(--primary);
}

.anime-poster img {
    width: 100%;
    border-radius: 15px;
    display: block;
    object-fit: cover;
}

.anime-details h2 {
    font-size: 30px;
    color: var(--text);
    margin-bottom: 15px;
}

.anime-description {
    margin-top: 18px;
    color: var(--text2);
    line-height: 1.9;
}

/* ==========================================================
BADGES
========================================================== */
.anime-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    background: var(--bg3);
    color: var(--text);
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 13px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.badge-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.badge-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* ==========================================================
GENRES
========================================================== */
.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.genre-tag {
    text-decoration: none;
    color: var(--text);
    background: var(--bg3);
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 8px 18px;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.genre-tag:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

/* ==========================================================
SIDEBAR
========================================================== */
.watch-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--bg2);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 22px;
}

.sidebar-card h3 .card-icon {
    margin-right: 8px;
}

.anime-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.anime-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.anime-meta-list li:last-child {
    border-bottom: none;
}

.anime-meta-list strong {
    color: var(--text2);
    font-weight: 500;
}

.anime-meta-list span {
    color: var(--text);
    font-weight: 600;
}

/* ==========================================================
EPISODE NAVIGATION
========================================================== */
.episode-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.episode-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    font-family: inherit;
    cursor: pointer;
}

.episode-nav-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, .2);
}

.episode-nav-btn:active {
    transform: scale(0.96);
}

.episode-nav-btn.disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* ==========================================================
SERVER / DOWNLOAD / EPISODES CARDS
========================================================== */
.server-card,
.download-card,
.episodes-card,
.auto-next-card,
.share-box,
.comments-section {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-top: 25px;
    transition: border-color var(--transition);
}

.server-card:hover,
.download-card:hover,
.episodes-card:hover,
.share-box:hover,
.comments-section:hover {
    border-color: var(--primary);
}

.server-card h3,
.download-card h3,
.episodes-card h3,
.share-box h3 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 20px;
}

/* ==========================================================
SERVER BUTTONS
========================================================== */
.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.server-btn {
    padding: 12px 22px;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-xs);
    background: var(--bg3);
    color: var(--text);
    transition: all var(--transition);
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border);
    touch-action: manipulation;
}

.server-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

.server-btn:active {
    transform: scale(0.95);
}

.server-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ==========================================================
DOWNLOAD BUTTONS
========================================================== */
.download-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: var(--success);
    color: #fff;
    transition: all var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.download-btn:hover {
    transform: translateY(-3px);
    opacity: .9;
    box-shadow: 0 8px 25px rgba(34, 197, 94, .3);
}

.download-btn:active {
    transform: scale(0.95);
}

.download-btn .btn-icon {
    font-size: 1.2em;
}

/* ==========================================================
EPISODE GRID
========================================================== */
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.episodes-header .episode-count {
    color: var(--text3);
    font-size: 14px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    transition: all var(--transition);
    color: var(--text);
    cursor: pointer;
}

.episode-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.episode-item:active {
    transform: scale(0.97);
}

.episode-item.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.episode-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.episode-item.active .episode-number {
    background: #fff;
    color: #000;
}

.episode-content {
    flex: 1;
    min-width: 0;
}

.episode-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-content small {
    color: inherit;
    opacity: .75;
    font-size: 13px;
}

.watching-badge {
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.episode-item.active .watching-badge {
    background: #fff;
    color: #000;
}

/* ==========================================================
AUTO NEXT
========================================================== */
.auto-next-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auto-next-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

.auto-next-switch input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg3);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    flex-shrink: 0;
}

.auto-next-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text3);
    transition: all var(--transition);
}

.auto-next-switch input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.auto-next-switch input[type="checkbox"]:checked::before {
    transform: translateX(20px);
    background: #000;
}

/* ==========================================================
COMMENTS
========================================================== */
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text);
    padding: 15px;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, .1);
}

.comment-form .comment-submit {
    padding: 12px 30px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 15px;
    font-family: inherit;
}

.comment-form .comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, .25);
}

.comment-form .comment-submit:active {
    transform: scale(0.95);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 5px 0;
}

.comment-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 18px;
    min-width: 0;
}

.comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.comment-top strong {
    color: var(--text);
    font-size: 16px;
}

.comment-top span {
    color: var(--text3);
    font-size: 13px;
}

.comment-text {
    color: var(--text2);
    line-height: 1.7;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.comment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text3);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all var(--transition);
    font-family: inherit;
}

.comment-actions button:hover {
    color: var(--primary);
    background: rgba(255, 180, 0, .06);
}

.comment-actions button:active {
    transform: scale(0.95);
}

/* ==========================================================
LOGIN REQUIRED
========================================================== */
.login-required {
    text-align: center;
    padding: 35px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px dashed var(--border);
}

.login-required p {
    margin: 0;
    color: var(--text2);
}

.login-required a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition);
}

.login-required a:hover {
    text-decoration: underline;
}

/* ==========================================================
SHARE BOX
========================================================== */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-buttons a,
.share-buttons button {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-xs);
    text-decoration: none;
    background: var(--bg3);
    color: var(--text);
    transition: all var(--transition);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
}

.share-buttons a:hover,
.share-buttons button:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

.share-buttons a:active,
.share-buttons button:active {
    transform: scale(0.95);
}

/* ==========================================================
SECTION BLOCK
========================================================== */
.section-block {
    margin-top: 40px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.section-title a:hover {
    text-decoration: underline;
}

/* ==========================================================
VIDEO GRID
========================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ==========================================================
SIDEBAR VIDEOS
========================================================== */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-video {
    display: flex;
    gap: 12px;
    text-decoration: none;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.sidebar-video:hover {
    transform: translateY(-3px);
    background: #2a303b;
    border-color: var(--primary);
}

.sidebar-video img {
    width: 120px;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-video div {
    padding: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-video h4 {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-video small {
    color: var(--text3);
    font-size: 12px;
}

/* ==========================================================
CONTINUE WATCHING
========================================================== */
.continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.continue-card {
    background: var(--bg2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.continue-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.continue-thumb {
    position: relative;
    overflow: hidden;
}

.continue-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform var(--transition);
}

.continue-card:hover .continue-thumb img {
    transform: scale(1.05);
}

.watch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 0 2px 2px 0;
}

.continue-info {
    padding: 15px;
}

.continue-info h3 {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.continue-info p {
    color: var(--text3);
    font-size: 14px;
}

/* ==========================================================
ADVERTISEMENT
========================================================== */
.watch-ad {
    margin: 40px 0;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.watch-ad img {
    width: 100%;
    display: block;
}

/* ==========================================================
SKELETON LOADING
========================================================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #23262f;
    border-radius: var(--radius-sm);
}

.skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .08),
            transparent);
    animation: skeleton 1.3s infinite;
}

@keyframes skeleton {
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================
CARDS HOVER
========================================================== */
.video-card,
.anime-card {
    transition: all var(--transition);
}

.video-card:hover,
.anime-card:hover {
    transform: translateY(-6px);
}

/* ==========================================================
FADE ANIMATION
========================================================== */
.fade-up {
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
BADGES ON CARDS
========================================================== */
.corner-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.quality-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.episode-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: #000;
    padding: 5px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* ==========================================================
EMPTY STATE
========================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: .5;
}

.empty-state h2 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 24px;
}

.empty-state p {
    color: var(--text3);
    font-size: 16px;
}

/* ==========================================================
GLASS EFFECT
========================================================== */
.glass {
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .06);
}

/* ==========================================================
PREMIUM SHADOW
========================================================== */
.shadow-premium {
    box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}

/* ==========================================================
ACCESSIBILITY
========================================================== */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================
REDUCED MOTION
========================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
RESPONSIVE - 1600px
========================================================== */
@media (max-width: 1600px) {
    .watch-container {
        max-width: 1450px;
    }
    .watch-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

/* ==========================================================
RESPONSIVE - 1400px
========================================================== */
@media (max-width: 1400px) {
    .watch-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }
    .episode-header h1 {
        font-size: 30px;
    }
    .anime-info-card {
        grid-template-columns: 200px 1fr;
    }
}

/* ==========================================================
RESPONSIVE - 1200px
========================================================== */
@media (max-width: 1200px) {
    .watch-grid {
        grid-template-columns: 1fr;
    }
    .watch-sidebar {
        position: relative;
        top: 0;
    }
    .sidebar-card {
        margin-top: 25px;
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .continue-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
RESPONSIVE - 1024px
========================================================== */
@media (max-width: 1024px) {
    .watch-container {
        padding: 20px 15px;
    }
    .anime-info-card {
        grid-template-columns: 170px 1fr;
        gap: 20px;
    }
    .episode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .continue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .player-actions {
        gap: 10px;
    }
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================
RESPONSIVE - 768px (Tablet)
========================================================== */
@media (max-width: 768px) {
    .watch-container {
        padding: 15px;
    }
    
    .player-card {
        border-radius: var(--radius-sm);
    }
    
    .episode-header h1 {
        font-size: 24px;
    }
    
    .episode-meta {
        gap: 8px;
    }
    
    .episode-meta span {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .anime-info-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }
    
    .anime-poster {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .anime-badges {
        justify-content: center;
    }
    
    .genre-list {
        justify-content: center;
    }
    
    .episode-navigation {
        flex-direction: column;
    }
    
    .episode-nav-btn {
        width: 100%;
        min-width: unset;
    }
    
    .episode-grid {
        grid-template-columns: 1fr;
    }
    
    .download-list,
    .server-list,
    .share-buttons {
        flex-direction: column;
    }
    
    .download-btn,
    .server-btn,
    .share-buttons a,
    .share-buttons button {
        width: 100%;
        justify-content: center;
    }
    
    .player-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .continue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-video img {
        width: 100px;
        height: 65px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .auto-next-card {
        justify-content: center;
    }
}

/* ==========================================================
RESPONSIVE - 576px (Large Mobile)
========================================================== */
@media (max-width: 576px) {
    .watch-container {
        padding: 12px;
    }
    
    .episode-header h1 {
        font-size: 22px;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .anime-details h2 {
        font-size: 24px;
    }
    
    .player-actions {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .continue-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment-avatar {
        margin: 0 auto;
    }
    
    .comment-top {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .comment-actions {
        justify-content: center;
    }
    
    .episode-item {
        padding: 12px;
    }
    
    .episode-number {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .server-card,
    .download-card,
    .episodes-card,
    .auto-next-card,
    .share-box,
    .comments-section {
        padding: 18px;
    }
    
    .sidebar-card {
        padding: 18px;
    }
    
    .sidebar-video img {
        width: 80px;
        height: 60px;
    }
    
    .sidebar-video h4 {
        font-size: 13px;
    }
    
    .badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .genre-tag {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ==========================================================
RESPONSIVE - 480px (Small Mobile)
========================================================== */
@media (max-width: 480px) {
    .watch-container {
        padding: 10px;
    }
    
    .episode-header h1 {
        font-size: 20px;
    }
    
    .episode-meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .episode-meta span {
        font-size: 11px;
        padding: 5px 10px;
        justify-content: center;
    }
    
    .anime-info-card {
        padding: 15px;
    }
    
    .anime-details h2 {
        font-size: 20px;
    }
    
    .anime-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .server-card,
    .download-card,
    .episodes-card,
    .auto-next-card,
    .share-box,
    .comments-section {
        padding: 15px;
    }
    
    .sidebar-card {
        padding: 15px;
    }
    
    .episode-item {
        padding: 10px;
        gap: 10px;
    }
    
    .episode-number {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .episode-content h4 {
        font-size: 14px;
    }
    
    .watching-badge {
        display: none;
    }
    
    .action-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .comment-body {
        padding: 14px;
    }
    
    .comment-avatar {
        width: 45px;
        height: 45px;
        font-size: 17px;
    }
    
    .comment-top strong {
        font-size: 14px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    .sidebar-video img {
        width: 70px;
        height: 50px;
    }
    
    .sidebar-video h4 {
        font-size: 12px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .load-more-btn {
        width: 100%;
    }
}

/* ==========================================================
RESPONSIVE - 375px (iPhone SE)
========================================================== */
@media (max-width: 375px) {
    .watch-container {
        padding: 8px;
    }
    
    .episode-header h1 {
        font-size: 18px;
    }
    
    .episode-meta {
        grid-template-columns: 1fr;
    }
    
    .anime-details h2 {
        font-size: 18px;
    }
    
    .badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .genre-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .sidebar-video img {
        width: 60px;
        height: 45px;
    }
    
    .episode-number {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
    
    .episode-content h4 {
        font-size: 13px;
    }
    
    .server-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .download-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ==========================================================
RESPONSIVE - 320px (Extra Small)
========================================================== */
@media (max-width: 320px) {
    .watch-container {
        padding: 6px;
    }
    
    .episode-header h1 {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 18px;
    }
    
    .anime-details h2 {
        font-size: 16px;
    }
    
    .comment-body {
        padding: 10px;
    }
    
    .comment-avatar {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .episode-nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .episode-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .episode-number {
        margin: 0 auto;
    }
    
    .episode-content h4 {
        font-size: 12px;
        white-space: normal;
    }
    
    .sidebar-video {
        flex-direction: column;
    }
    
    .sidebar-video img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .share-buttons a,
    .share-buttons button {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* ==========================================================
PRINT STYLES
========================================================== */
@media print {
    .watch-sidebar,
    .episode-navigation,
    .player-actions,
    .server-card,
    .download-card,
    .episodes-card,
    .auto-next-card,
    .share-box,
    .comments-section,
    .watch-ad {
        display: none !important;
    }
    
    .watch-grid {
        display: block !important;
    }
    
    .player-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .anime-info-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .episode-header h1 {
        color: #000 !important;
    }
    
    .episode-meta span {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
}

/* ==========================================================
END WATCH PAGE CSS
========================================================== */

html {

    scroll-behavior: smooth;

}

body {

    background: var(--bg);

    color: var(--white);

    font-family:

        Inter,

        "Segoe UI",

        sans-serif;

    line-height: 1.6;
            min-height: 100vh;


    overflow-x: hidden;

}

img {

    display: block;

    max-width: 100%;

}

a {

    color: inherit;

    text-decoration: none;

}

button {

    cursor: pointer;

    border: none;

    outline: none;

}

.container {

    width: min(1500px, 94%);

    margin: auto;

}

/* Scrollbar */

::-webkit-scrollbar {

    width: 10px;

}

::-webkit-scrollbar-track {

    background: #12141b;

}

::-webkit-scrollbar-thumb {

    background: #3c4153;

    border-radius: 50px;

}

::-webkit-scrollbar-thumb:hover {

    background: var(--primary);

}

/* =======================================================
Header
======================================================= */

/* ==========================================================
SITE HEADER - FIXED & RESPONSIVE
==========================================================*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    background: rgba(12, 14, 20, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 9999;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 34px;
}

.logo-text {
    font-size: 34px;
    font-weight: 800;
    color: #f5c451;
}

/* ==========================================================
DESKTOP NAVIGATION
==========================================================*/

.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.desktop-nav a {
    color: #d7d7d7;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color .3s;
    font-size: 15px;
}

.desktop-nav a:hover,
.desktop-nav .active {
    color: #f5c451;
}

.desktop-nav .active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background: #f5c451;
    border-radius: 10px;
}

/* ==========================================================
MAIN NAV (Alternative navigation)
==========================================================*/

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: #b6bbc8;
    font-weight: 600;
    position: relative;
    transition: color .25s;
    text-decoration: none;
    font-size: 15px;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 20px;
}

/* ==========================================================
SEARCH BOX
==========================================================*/

.search-box {
    display: flex;
    width: 420px;
    height: 48px;
    background: #1d212d;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-box input::placeholder {
    color: #6b7280;
}

.search-box button {
    width: 58px;
    border: none;
    background: #f5c451;
    cursor: pointer;
    font-size: 18px;
    transition: background .3s;
    flex-shrink: 0;
}

.search-box button:hover {
    background: #e8a92b;
}

.search-results {
    position: absolute;
    top: 60px;
    width: 100%;
    background: var(--bg2, #1a1d27);
    border: 1px solid var(--border, rgba(255, 255, 255, .08));
    border-radius: 18px;
    display: none;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
    z-index: 99;
}

.search-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    transition: background .25s;
    cursor: pointer;
}

.search-item:hover {
    background: rgba(255, 255, 255, .04);
}

.search-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.search-item h4 {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.search-item p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ==========================================================
HEADER RIGHT
==========================================================*/

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Duplicate removed - keeping only one definition */

.upload-btn {
    padding: 12px 22px;
    background: #f5c451;
    border-radius: 999px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    transition: background .3s, transform .3s;
    white-space: nowrap;
}

.upload-btn:hover {
    background: #e8a92b;
    transform: translateY(-2px);
}

.login-btn {
    padding: 12px 30px;
    border-radius: 999px;
    background: #f5c451;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s, transform .3s;
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--primary-dark, #e8a92b);
    transform: translateY(-2px);
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(245, 196, 81, .3);
    transition: border-color .3s;
}

.avatar:hover {
    border-color: #f5c451;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1d212d;
    border: none;
    cursor: pointer;
    color: #fff;
    position: relative;
    transition: background .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #2a3040;
}

.notification-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

/* ==========================================================
HERO SECTION
==========================================================*/

.hero {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    margin: 35px 0;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    background: #1a1d27;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .8s;
}

.hero:hover .hero-image img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .85),
            rgba(0, 0, 0, .40),
            rgba(0, 0, 0, .15));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 196, 81, .18);
    color: var(--primary, #f5c451);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 13px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

.hero-description {
    color: #d2d5de;
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-meta span {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    color: #d2d5de;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-watch {
    background: var(--primary, #f5c451);
    color: #111;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .3s, box-shadow .3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 196, 81, .30);
}

.btn-details {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 999px;
    transition: background .3s, transform .3s;
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-details:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}

/* ==========================================================
HERO STATISTICS
==========================================================*/

.hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 35px;
}

.hero-stat h3 {
    color: var(--primary, #f5c451);
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.hero-stat p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ==========================================================
GENRE PILLS
==========================================================*/

.genre-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.genre-pill {
    padding: 11px 20px;
    background: var(--bg2, #1a1d27);
    border: 1px solid var(--border, rgba(255, 255, 255, .08));
    border-radius: 999px;
    color: #d4d8e3;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.genre-pill:hover {
    background: var(--primary, #f5c451);
    color: #111;
    border-color: var(--primary, #f5c451);
    transform: translateY(-2px);
}

.genre-pill.active {
    background: var(--primary, #f5c451);
    color: #111;
    border-color: var(--primary, #f5c451);
}

/* ==========================================================
RESPONSIVE - TABLET & MOBILE
==========================================================*/

/* ===== Laptops & Small Desktops ===== */
@media (max-width: 1200px) {
    .search-box {
        width: 300px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-content {
        padding: 50px;
    }
}

/* ===== Tablets ===== */
@media (max-width: 992px) {

    .desktop-nav,
    .search-box,
    .upload-btn {
        display: none;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .hero {
        min-height: 450px;
        border-radius: 18px;
        margin: 25px 0;
    }

    .hero-content {
        padding: 40px;
        max-width: 90%;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat h3 {
        font-size: 26px;
    }

    .genre-pill {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* ===== Mobile Landscape ===== */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .header-container {
        padding: 0 16px;
        gap: 16px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .header-right {
        gap: 10px;
    }

    .login-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .notification-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: 4px;
        right: 4px;
    }

    .hero {
        min-height: 380px;
        border-radius: 14px;
        margin: 20px 0;
    }

    .hero-content {
        padding: 30px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .hero-meta {
        gap: 8px;
        margin-bottom: 20px;
    }

    .hero-meta span {
        font-size: 12px;
        padding: 6px 14px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-watch,
    .btn-details {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 25px;
        flex-wrap: wrap;
    }

    .hero-stat h3 {
        font-size: 22px;
    }

    .hero-stat p {
        font-size: 12px;
    }

    .genre-list {
        gap: 8px;
        margin-bottom: 25px;
    }

    .genre-pill {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ===== Mobile Portrait ===== */
@media (max-width: 480px) {
    .site-header {
        height: 64px;
    }

    .header-container {
        padding: 0 12px;
        gap: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo {
        gap: 8px;
    }

    .header-right {
        gap: 8px;
    }

    .login-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .avatar {
        width: 34px;
        height: 34px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .notification-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: 2px;
        right: 2px;
    }

    .hero {
        min-height: 320px;
        border-radius: 12px;
        margin: 15px 0;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .hero-meta {
        gap: 6px;
        margin-bottom: 16px;
    }

    .hero-meta span {
        font-size: 10px;
        padding: 4px 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-watch,
    .btn-details {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 15px;
        margin-top: 20px;
    }

    .hero-stat h3 {
        font-size: 18px;
    }

    .hero-stat p {
        font-size: 11px;
    }

    .genre-list {
        gap: 6px;
        margin-bottom: 20px;
    }

    .genre-pill {
        padding: 6px 12px;
        font-size: 11px;
    }

    .search-results {
        top: 50px;
        width: 100%;
    }

    .search-item img {
        width: 50px;
        height: 50px;
    }

    .search-item h4 {
        font-size: 13px;
    }
}

/* ==========================================================
FIX: Hamburger Menu - Add if not present
==========================================================*/

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform .3s, opacity .3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
}

/* ==========================================================
ACCESSIBILITY - Reduced Motion
==========================================================*/

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .hero-image img,
    .btn-watch,
    .btn-details,
    .genre-pill,
    .upload-btn,
    .login-btn,
    .icon-btn,
    .avatar {
        transition: none !important;
        transform: none !important;
    }

    .hero-image img {
        transform: scale(1) !important;
    }

    .hero:hover .hero-image img {
        transform: scale(1) !important;
    }
}

/* ==========================================================
   AnimeCorner v2
   Part 3A - Premium Anime Card (Fully Responsive)
========================================================== */

/* ---------- Card Container ---------- */

.anime-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card, #1a1d27);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 20px;
    overflow: hidden;
    color: var(--white, #ffffff);
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    height: 100%;
    min-height: 320px;
}

.anime-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 196, 81, .35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

/* ---------- Thumbnail ---------- */

.anime-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #101114;
    flex-shrink: 0;
}

.anime-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, opacity .35s ease;
}

/* ---------- Preview Video ---------- */

.preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

/* ---------- Overlay ---------- */

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, .80),
        rgba(0, 0, 0, .15),
        transparent);
    transition: background .35s;
}

/* ---------- Hover Effects ---------- */

.anime-card:hover .thumb-image {
    transform: scale(1.08);
    opacity: 0;
}

.anime-card:hover .preview-video {
    opacity: 1;
}

.anime-card:hover .overlay {
    background: linear-gradient(to top,
        rgba(0, 0, 0, .90),
        rgba(0, 0, 0, .25),
        transparent);
}

/* ---------- Play Button ---------- */

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.8);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 196, 81, .95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: transform .35s, opacity .35s;
    box-shadow: 0 15px 35px rgba(245, 196, 81, .35);
    z-index: 15;
    border: none;
    cursor: pointer;
}

.anime-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- Badges ---------- */

.episode-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    z-index: 20;
}

.quality-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    z-index: 20;
}

.subtitle-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #2563eb;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    z-index: 20;
}

.duration {
    position: absolute;
    top: 48px;
    left: 12px;
    background: rgba(0, 0, 0, .70);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 20;
}

/* ---------- NEW Ribbon ---------- */

.ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    width: 120px;
    background: #ef4444;
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    padding: 4px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    z-index: 25;
    text-transform: uppercase;
}

/* ---------- Gradient Shadow ---------- */

.anime-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    pointer-events: none;
    z-index: 5;
}

/* ==========================================================
   Part 3B - Card Content
========================================================== */

/* Card Body */

.anime-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1;
    background: var(--card, #1a1d27);
}

/* Title */

.anime-info h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 46px;
    transition: color .3s;
    margin: 0;
}

.anime-card:hover h3 {
    color: var(--primary, #f5c451);
}

/* Anime Name */

.anime-name {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Row */

.anime-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

/* Rating */

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFD43B;
    font-size: 14px;
    font-weight: 700;
}

.rating i {
    font-size: 14px;
}

/* Views */

.views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 13px;
}

/* Bottom Row */

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}

/* Season */

.season {
    font-size: 13px;
    color: #d1d5db;
}

/* Status */

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status.ongoing {
    background: #16a34a;
    color: #fff;
}

.status.completed {
    background: #2563eb;
    color: #fff;
}

.status.upcoming {
    background: #ea580c;
    color: #fff;
}

/* Footer */

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
}

/* Subtitle */

.subtitle {
    font-size: 12px;
    color: #9ca3af;
}

/* Like */

.like-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9ca3af;
}

/* ---------- Floating Buttons ---------- */

.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s;
    z-index: 40;
}

.anime-card:hover .card-actions {
    opacity: 1;
}

.card-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .25s, transform .25s;
    border: none;
    cursor: pointer;
}

.card-action:hover {
    background: var(--primary, #f5c451);
    color: #111;
    transform: scale(1.08);
}

/* Favorite */

.favorite.active {
    color: #ff3b30;
}

/* Watch Progress */

.watch-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: #222;
    z-index: 50;
}

.watch-progress span {
    display: block;
    height: 100%;
    background: var(--primary, #f5c451);
    border-radius: 50px;
    transition: width .5s ease;
}

/* Card Animation */

.anime-card {
    animation: cardFade .45s ease both;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Focus */

.anime-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 196, 81, .35);
}

/* ---------- Card Sizes ---------- */

.anime-card.small {
    max-width: 260px;
}

.anime-card.large {
    max-width: 420px;
}

/* Aspect Ratios */

.landscape .anime-thumb {
    aspect-ratio: 16/9;
}

.portrait .anime-thumb {
    aspect-ratio: 2/3;
}

/* Premium Glow */

.anime-card:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45),
                0 0 25px rgba(245, 196, 81, .10);
}

/* ---------- Skeleton Loading ---------- */

.card-skeleton {
    border-radius: 20px;
    overflow: hidden;
    background: #1c1f2b;
}

.card-skeleton .thumb {
    aspect-ratio: 16/9;
    background: #2b2f3c;
}

.card-skeleton .line {
    height: 14px;
    margin: 14px;
    border-radius: 6px;
    background: #2b2f3c;
}

.card-skeleton .line.small {
    width: 55%;
}

.card-skeleton .line.medium {
    width: 80%;
}

.card-skeleton .line.large {
    width: 95%;
}

.card-skeleton .thumb,
.card-skeleton .line {
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { opacity: .45; }
    50% { opacity: 1; }
    100% { opacity: .45; }
}

/* ==========================================================
   RESPONSIVE - TABLET & MOBILE
========================================================== */

/* ===== Tablets & Small Laptops ===== */
@media (max-width: 1024px) {
    .anime-card {
        min-height: 280px;
        border-radius: 16px;
    }
    
    .anime-info {
        padding: 14px;
        gap: 8px;
    }
    
    .anime-info h3 {
        font-size: 15px;
        min-height: 42px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .episode-badge,
    .quality-badge,
    .subtitle-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .duration {
        font-size: 10px;
        padding: 3px 7px;
        top: 42px;
    }
}

/* ===== Mobile Landscape & Small Tablets ===== */
@media (max-width: 768px) {
    .anime-card {
        min-height: 260px;
        border-radius: 14px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
    }
    
    .anime-card:hover {
        transform: translateY(-4px);
    }
    
    .anime-thumb {
        aspect-ratio: 16/10;
    }
    
    .anime-info {
        padding: 12px;
        gap: 6px;
    }
    
    .anime-info h3 {
        font-size: 14px;
        min-height: 38px;
        -webkit-line-clamp: 2;
    }
    
    .anime-name {
        font-size: 12px;
    }
    
    .anime-rating {
        margin-top: 2px;
    }
    
    .rating {
        font-size: 13px;
    }
    
    .views {
        font-size: 12px;
    }
    
    .season {
        font-size: 12px;
    }
    
    .status {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .card-footer {
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .like-count {
        font-size: 12px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
        box-shadow: 0 10px 25px rgba(245, 196, 81, .30);
    }
    
    .episode-badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 4px 8px;
    }
    
    .quality-badge {
        right: 8px;
        bottom: 8px;
        font-size: 9px;
        padding: 3px 8px;
        border-radius: 6px;
    }
    
    .subtitle-badge {
        left: 8px;
        bottom: 8px;
        font-size: 9px;
        padding: 3px 8px;
        border-radius: 6px;
    }
    
    .duration {
        top: 36px;
        left: 8px;
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 4px;
    }
    
    .ribbon {
        width: 100px;
        font-size: 9px;
        top: 10px;
        right: -30px;
        padding: 3px 0;
    }
    
    .card-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .card-action {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .watch-progress {
        height: 4px;
    }
    
    /* Hide card actions on hover for mobile (use tap instead) */
    .anime-card .card-actions {
        opacity: 1;
    }
    
    /* Card sizes on mobile */
    .anime-card.small {
        max-width: 100%;
    }
    
    .anime-card.large {
        max-width: 100%;
    }
}

/* ===== Mobile Portrait ===== */
@media (max-width: 480px) {
    .anime-card {
        min-height: 220px;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    }
    
    .anime-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    }
    
    .anime-thumb {
        aspect-ratio: 16/11;
    }
    
    .anime-info {
        padding: 10px;
        gap: 4px;
    }
    
    .anime-info h3 {
        font-size: 13px;
        min-height: 34px;
        line-height: 1.3;
    }
    
    .anime-name {
        font-size: 11px;
    }
    
    .anime-rating {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .rating {
        font-size: 12px;
        gap: 4px;
    }
    
    .rating i {
        font-size: 12px;
    }
    
    .views {
        font-size: 11px;
        gap: 4px;
    }
    
    .anime-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .season {
        font-size: 11px;
    }
    
    .status {
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 16px;
    }
    
    .card-footer {
        margin-top: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .subtitle {
        font-size: 10px;
    }
    
    .like-count {
        font-size: 11px;
    }
    
    .play-button {
        width: 42px;
        height: 42px;
        font-size: 16px;
        box-shadow: 0 8px 20px rgba(245, 196, 81, .25);
    }
    
    .anime-card:hover .play-button {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .episode-badge {
        top: 6px;
        left: 6px;
        font-size: 8px;
        padding: 3px 6px;
        border-radius: 20px;
    }
    
    .quality-badge {
        right: 6px;
        bottom: 6px;
        font-size: 8px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    .subtitle-badge {
        left: 6px;
        bottom: 6px;
        font-size: 8px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    .duration {
        top: 30px;
        left: 6px;
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 4px;
    }
    
    .ribbon {
        width: 80px;
        font-size: 8px;
        top: 8px;
        right: -24px;
        padding: 2px 0;
        letter-spacing: .4px;
    }
    
    .card-actions {
        top: 6px;
        right: 6px;
        gap: 4px;
    }
    
    .card-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
        background: rgba(0, 0, 0, .75);
    }
    
    .watch-progress {
        height: 3px;
    }
    
    /* Skeleton loading on mobile */
    .card-skeleton .line {
        height: 10px;
        margin: 10px;
    }
    
    .card-skeleton .thumb {
        aspect-ratio: 16/11;
    }
}

/* ===== Very Small Phones ===== */
@media (max-width: 360px) {
    .anime-card {
        min-height: 190px;
        border-radius: 10px;
    }
    
    .anime-info {
        padding: 8px;
        gap: 3px;
    }
    
    .anime-info h3 {
        font-size: 12px;
        min-height: 30px;
        -webkit-line-clamp: 2;
    }
    
    .anime-name {
        font-size: 10px;
    }
    
    .rating {
        font-size: 11px;
    }
    
    .views {
        font-size: 10px;
    }
    
    .season {
        font-size: 10px;
    }
    
    .status {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .play-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .episode-badge {
        font-size: 7px;
        padding: 2px 5px;
    }
    
    .quality-badge,
    .subtitle-badge {
        font-size: 7px;
        padding: 2px 5px;
    }
    
    .duration {
        font-size: 7px;
        padding: 2px 4px;
        top: 26px;
    }
    
    .ribbon {
        width: 70px;
        font-size: 7px;
        top: 6px;
        right: -20px;
        padding: 2px 0;
    }
    
    .card-action {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* ==========================================================
   ACCESSIBILITY - Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .anime-card,
    .anime-card *,
    .anime-thumb img,
    .preview-video,
    .overlay,
    .play-button,
    .card-actions,
    .card-action,
    .watch-progress span {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .anime-card:hover {
        transform: none !important;
    }
    
    .anime-card:hover .thumb-image {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .anime-card:hover .preview-video {
        opacity: 0 !important;
    }
    
    .anime-card:hover .play-button {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(.8) !important;
    }
    
    .card-skeleton .thumb,
    .card-skeleton .line {
        animation: none !important;
        opacity: .6 !important;
    }
}

/* ==========================================================
   GRID SYSTEM - For card layouts
========================================================== */

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================
   PRINT STYLES
========================================================== */

@media print {
    .anime-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #333;
        transform: none !important;
    }
    
    .anime-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .play-button,
    .card-actions,
    .watch-progress,
    .ribbon {
        display: none !important;
    }
    
    .anime-thumb::after {
        display: none !important;
    }
    
    .anime-info h3 {
        color: #000 !important;
    }
    
    .anime-card {
        background: #fff !important;
    }
}
/* ==========================================================
   AnimeCorner v2
   Part 4 - Carousel + Continue Watching (Fully Responsive)
========================================================== */

/* ==========================================================
SECTION
========================================================== */

.anime-section {
    margin: 50px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin: 0;
}

.section-header p {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 5px;
}

.section-header a {
    color: var(--primary, #f5c451);
    font-weight: 700;
    transition: color .3s;
    text-decoration: none;
    white-space: nowrap;
}

.section-header a:hover {
    color: #fff;
}

/* ==========================================================
CAROUSEL
========================================================== */

.carousel-wrapper {
    position: relative;
    padding: 0 4px;
}

.anime-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 5px 0 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.anime-carousel::-webkit-scrollbar {
    display: none;
}

.anime-carousel .anime-card {
    min-width: 290px;
    max-width: 290px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* ==========================================================
CAROUSEL BUTTONS
========================================================== */

.carousel-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, .70);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, transform .3s, color .3s;
    z-index: 50;
}

.carousel-btn:hover {
    background: var(--primary, #f5c451);
    color: #111;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(.95);
}

.carousel-btn.prev {
    left: -22px;
}

.carousel-btn.next {
    right: -22px;
}

.carousel-btn i {
    font-size: 18px;
}

/* ==========================================================
FADE EFFECT
========================================================== */

.carousel-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 90px;
    height: 100%;
    background: linear-gradient(90deg, var(--bg, #0c0e14), transparent);
    pointer-events: none;
    z-index: 20;
}

.carousel-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 90px;
    height: 100%;
    background: linear-gradient(-90deg, var(--bg, #0c0e14), transparent);
    pointer-events: none;
    z-index: 20;
}

/* ==========================================================
CONTINUE WATCHING
========================================================== */

.continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.continue-card {
    background: var(--card, #1a1d27);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
    display: block;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .04);
}

.continue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
    border-color: rgba(245, 196, 81, .20);
}

.continue-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #101114;
}

.continue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.continue-card:hover img {
    transform: scale(1.08);
}

/* ==========================================================
WATCH PROGRESS
========================================================== */

.progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: #272b38;
    z-index: 5;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #f5c451), #ffd54a);
    transition: width .5s ease;
}

/* ==========================================================
CONTINUE INFO
========================================================== */

.continue-info {
    padding: 18px;
}

.continue-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 44px;
}

.continue-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 13px;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================
RESUME BUTTON
========================================================== */

.resume-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary, #f5c451);
    color: #111;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .3s, box-shadow .3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 196, 81, .30);
}

.resume-btn:active {
    transform: translateY(0);
}

/* ==========================================================
EMPTY STATE
========================================================== */

.empty-state {
    text-align: center;
    padding: 70px 20px;
    border: 2px dashed rgba(255, 255, 255, .08);
    border-radius: 20px;
}

.empty-state i {
    font-size: 60px;
    color: #555;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.empty-state p {
    color: #9ca3af;
}

/* ==========================================================
HOVER ZOOM
========================================================== */

.anime-carousel .anime-card:hover {
    z-index: 20;
}

/* ==========================================================
LOADING
========================================================== */

.carousel-loading {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 5px 0 15px;
}

.carousel-loading .card-skeleton {
    width: 290px;
    flex-shrink: 0;
}

/* ==========================================================
RESPONSIVE - TABLET & MOBILE
========================================================== */

/* ===== Laptops & Small Desktops ===== */
@media (max-width: 1200px) {
    .continue-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* ===== Tablets ===== */
@media (max-width: 992px) {
    .anime-section {
        margin: 40px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 13px;
    }
    
    .anime-carousel .anime-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-btn i {
        font-size: 16px;
    }
    
    .carousel-btn.prev {
        left: -16px;
    }
    
    .carousel-btn.next {
        right: -16px;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 60px;
    }
    
    .continue-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }
}

/* ===== Mobile Landscape & Small Tablets ===== */
@media (max-width: 768px) {
    .anime-section {
        margin: 30px 0;
    }
    
    .section-header {
        margin-bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .section-header h2 {
        font-size: 22px;
        gap: 8px;
    }
    
    .section-header p {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .section-header a {
        font-size: 14px;
    }
    
    .anime-carousel {
        gap: 16px;
        padding: 3px 0 12px;
    }
    
    .anime-carousel .anime-card {
        min-width: 220px;
        max-width: 220px;
    }
    
    /* Hide carousel buttons on touch devices */
    .carousel-btn {
        display: none;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 40px;
    }
    
    .continue-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .continue-info {
        padding: 14px;
    }
    
    .continue-info h3 {
        font-size: 15px;
        min-height: 40px;
    }
    
    .continue-meta {
        font-size: 12px;
    }
    
    .resume-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 12px;
    }
    
    .empty-state {
        padding: 50px 20px;
    }
    
    .empty-state i {
        font-size: 48px;
    }
    
    .empty-state h3 {
        font-size: 20px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    .carousel-loading .card-skeleton {
        width: 220px;
    }
}

/* ===== Mobile Portrait ===== */
@media (max-width: 480px) {
    .anime-section {
        margin: 24px 0;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-header h2 {
        font-size: 18px;
        gap: 6px;
    }
    
    .section-header p {
        font-size: 11px;
    }
    
    .section-header a {
        font-size: 13px;
    }
    
    .anime-carousel {
        gap: 12px;
        padding: 2px 0 10px;
    }
    
    .anime-carousel .anime-card {
        min-width: 170px;
        max-width: 170px;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 30px;
    }
    
    .continue-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .continue-card {
        border-radius: 14px;
    }
    
    .continue-info {
        padding: 12px;
    }
    
    .continue-info h3 {
        font-size: 13px;
        min-height: 34px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    
    .continue-meta {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }
    
    .resume-btn {
        padding: 6px 14px;
        font-size: 12px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .progress {
        height: 4px;
    }
    
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-state i {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    .empty-state p {
        font-size: 13px;
    }
    
    .carousel-loading .card-skeleton {
        width: 170px;
    }
}

/* ===== Very Small Phones ===== */
@media (max-width: 360px) {
    .anime-section {
        margin: 18px 0;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .section-header p {
        font-size: 10px;
    }
    
    .section-header a {
        font-size: 12px;
    }
    
    .anime-carousel {
        gap: 10px;
    }
    
    .anime-carousel .anime-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .continue-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .continue-info h3 {
        font-size: 12px;
        min-height: 30px;
    }
    
    .continue-meta {
        font-size: 10px;
    }
    
    .resume-btn {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 20px;
    }
    
    .carousel-loading .card-skeleton {
        width: 150px;
    }
}

/* ==========================================================
TOUCH DEVICE OPTIMIZATIONS
========================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Hide carousel buttons on touch devices */
    .carousel-btn {
        display: none;
    }
    
    /* Keep fade effects on touch */
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        display: block;
    }
    
    /* Better touch targets */
    .resume-btn {
        min-height: 44px;
        padding: 12px 18px;
    }
    
    /* Remove hover effects that don't work on touch */
    .continue-card:hover {
        transform: none;
    }
    
    .continue-card:hover img {
        transform: none;
    }
    
    .anime-carousel .anime-card:hover {
        z-index: auto;
    }
}

/* ==========================================================
ACCESSIBILITY - Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .anime-carousel {
        scroll-behavior: auto !important;
    }
    
    .anime-carousel .anime-card,
    .continue-card,
    .continue-card *,
    .resume-btn,
    .carousel-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .continue-card:hover {
        transform: none !important;
    }
    
    .continue-card:hover img {
        transform: none !important;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%) !important;
    }
    
    .progress-fill {
        transition: none !important;
    }
    
    .empty-state i {
        animation: none !important;
    }
}

/* ==========================================================
DARK MODE SUPPORT
========================================================== */

@media (prefers-color-scheme: dark) {
    .carousel-wrapper::before {
        background: linear-gradient(90deg, var(--bg, #0c0e14), transparent);
    }
    
    .carousel-wrapper::after {
        background: linear-gradient(-90deg, var(--bg, #0c0e14), transparent);
    }
}

/* ==========================================================
PRINT STYLES
========================================================== */

@media print {
    .anime-section {
        margin: 20px 0;
        break-inside: avoid;
    }
    
    .carousel-btn {
        display: none !important;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        display: none !important;
    }
    
    .anime-carousel {
        overflow-x: visible !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .anime-carousel .anime-card {
        min-width: auto !important;
        max-width: 100% !important;
    }
    
    .continue-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #333;
    }
    
    .continue-card:hover {
        transform: none !important;
    }
    
    .continue-thumb img {
        max-height: 150px;
        object-fit: contain;
    }
    
    .resume-btn {
        background: #f5c451 !important;
        color: #000 !important;
    }
    
    .empty-state {
        border: 1px solid #333;
    }
}

/* ==========================================================
UTILITY CLASSES
========================================================== */

/* Scroll hint for mobile */
.scroll-hint {
    display: none;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    margin-top: 8px;
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint {
        animation: none !important;
    }
}

/* Carousel with gradient mask instead of pseudo-elements */
.carousel-wrapper.mask-fade {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

@media (max-width: 768px) {
    .carousel-wrapper.mask-fade {
        mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    }
}

@media (max-width: 480px) {
    .carousel-wrapper.mask-fade {
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }
}

/* Grid layout for continue watching - alternative for smaller screens */
@media (max-width: 480px) {
    .continue-grid.auto-fit {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 360px) {
    .continue-grid.auto-fit {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive carousel item sizes */
.anime-carousel.small-items .anime-card {
    min-width: 200px;
    max-width: 200px;
}

.anime-carousel.large-items .anime-card {
    min-width: 350px;
    max-width: 350px;
}

@media (max-width: 992px) {
    .anime-carousel.small-items .anime-card {
        min-width: 180px;
        max-width: 180px;
    }
    
    .anime-carousel.large-items .anime-card {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .anime-carousel.small-items .anime-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .anime-carousel.large-items .anime-card {
        min-width: 220px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .anime-carousel.small-items .anime-card {
        min-width: 130px;
        max-width: 130px;
    }
    
    .anime-carousel.large-items .anime-card {
        min-width: 170px;
        max-width: 170px;
    }
}

/* ==========================================================
   AnimeCorner v2
   Part 5A
   Latest Episodes Grid + Category Filters
==========================================================*/

/* ==========================================================
MAIN CONTENT
==========================================================*/

.home-content {
    margin: 50px 0;
}

.content-section {
    margin-bottom: 60px;
}

/* ==========================================================
SECTION TITLE
==========================================================*/

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title p {
    color: #9ca3af;
    font-size: 14px;
}

.section-title a {
    color: var(--primary);
    font-weight: 700;
    transition: .3s;
}

.section-title a:hover {
    color: #fff;
}

/* ==========================================================
CATEGORY FILTERS
==========================================================*/

.category-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 999px;

    background: var(--bg2);

    border: 1px solid var(--border);

    color: #d5d7de;

    font-size: 14px;

    font-weight: 600;

    transition: .30s;

}

.category-btn i {

    font-size: 14px;

}

.category-btn:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #111;

    transform: translateY(-2px);

}

.category-btn.active {

    background: var(--primary);

    border-color: var(--primary);

    color: #111;

}

/* ==========================================================
LATEST VIDEO GRID
==========================================================*/

.video-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(290px, 1fr));

    gap: 28px;

    align-items: start;

}

/* Loading State */

.video-grid.loading {

    opacity: .55;

    pointer-events: none;

}

/* ==========================================================
GRID CARD SPACING
==========================================================*/

.video-grid .anime-card {

    width: 100%;

    height: 100%;

}

/* ==========================================================
NO RESULT
==========================================================*/

.no-results {

    width: 100%;

    grid-column: 1/-1;

    padding: 80px 20px;

    text-align: center;

    border-radius: 20px;

    border: 2px dashed rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .02);

}

.no-results h3 {

    font-size: 28px;

    margin-bottom: 10px;

}

.no-results p {

    color: #9ca3af;

}

/* ==========================================================
FILTER ANIMATION
==========================================================*/

.video-grid .anime-card {

    animation: gridFade .35s ease both;

}

@keyframes gridFade {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

/* ==========================================================
CATEGORY BADGE
==========================================================*/

.genre-tags {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 12px;

}

.genre-tag {

    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .05);

    color: #cbd5e1;

    font-size: 11px;

    transition: .3s;

}

.genre-tag:hover {

    background: var(--primary);

    color: #111;

}

/* ==========================================================
VIEW TOGGLE
==========================================================*/

.view-toggle {

    display: flex;

    gap: 10px;

}

.view-btn {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--bg2);

    border: 1px solid var(--border);

    transition: .3s;

}

.view-btn:hover {

    background: var(--primary);

    color: #111;

}

.view-btn.active {

    background: var(--primary);

    color: #111;

}

/* ==========================================================
LIST VIEW (Optional)
==========================================================*/

.video-grid.list {

    grid-template-columns: 1fr;

}

.video-grid.list .anime-card {

    display: grid;

    grid-template-columns: 320px 1fr;

    align-items: stretch;

}

.video-grid.list .anime-thumb {

    height: 100%;

}

.video-grid.list .anime-info {

    padding: 22px;

}

/* ==========================================================
GRID SPACING
==========================================================*/

.video-grid>* {

    min-width: 0;

}

/* ==========================================================
SMOOTH FILTER CHANGE
==========================================================*/

.video-grid {

    transition: opacity .25s ease;

}

/* ==========================================================
   AnimeCorner v2
   Part 5B
   Pagination + Loading + Responsive Grid
==========================================================*/

/* ==========================================================
PAGINATION
==========================================================*/

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 60px 0 30px;

}

.pagination a,
.pagination button,
.pagination span {

    min-width: 48px;

    height: 48px;

    padding: 0 18px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--bg2);

    border: 1px solid var(--border);

    color: #d5d7de;

    font-weight: 600;

    transition: .30s;

}

.pagination a:hover,
.pagination button:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #111;

    transform: translateY(-2px);

}

.pagination .active {

    background: var(--primary);

    color: #111;

    border-color: var(--primary);

    box-shadow:

        0 10px 25px rgba(245, 196, 81, .20);

}

.pagination .disabled {

    opacity: .45;

    pointer-events: none;

}

/* ==========================================================
LOAD MORE BUTTON
==========================================================*/

.load-more {

    display: flex;

    justify-content: center;

    margin: 40px 0;

}

.load-more button {

    padding: 15px 36px;

    border-radius: 999px;

    background: var(--primary);

    color: #111;

    font-size: 15px;

    font-weight: 700;

    transition: .3s;

}

.load-more button:hover {

    transform: translateY(-2px);

    box-shadow:

        0 15px 35px rgba(245, 196, 81, .25);

}

/* ==========================================================
AJAX LOADER
==========================================================*/

.ajax-loader {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 60px 0;

}

.loader {

    width: 52px;

    height: 52px;

    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, .10);

    border-top-color: var(--primary);

    animation: spin 1s linear infinite;

}

@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}

/* ==========================================================
SKELETON GRID
==========================================================*/

.skeleton-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(290px, 1fr));

    gap: 28px;

}

.skeleton-card {

    background: var(--card);

    border-radius: 20px;

    overflow: hidden;

}

.skeleton-thumb {

    aspect-ratio: 16/9;

    background: #2a2d39;

}

.skeleton-content {

    padding: 18px;

}

.skeleton-line {

    height: 14px;

    border-radius: 6px;

    background: #2a2d39;

    margin-bottom: 12px;

}

.skeleton-line.large {

    width: 90%;

}

.skeleton-line.medium {

    width: 70%;

}

.skeleton-line.small {

    width: 45%;

}

.skeleton-thumb,
.skeleton-line {

    animation: skeleton 1.3s infinite;

}

@keyframes skeleton {

    0% {

        opacity: .45;

    }

    50% {

        opacity: 1;

    }

    100% {

        opacity: .45;

    }

}

/* ==========================================================
EMPTY GRID
==========================================================*/

.grid-empty {

    grid-column: 1/-1;

    text-align: center;

    padding: 100px 20px;

}

.grid-empty i {

    font-size: 70px;

    color: #555;

    margin-bottom: 20px;

}

.grid-empty h3 {

    font-size: 28px;

    margin-bottom: 10px;

}

.grid-empty p {

    color: #9ca3af;

}

/* ==========================================================
GRID ANIMATION
==========================================================*/

.video-grid>.anime-card {

    animation: fadeUp .4s ease both;

}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

/* ==========================================================
LAZY IMAGE
==========================================================*/

img.lazy {

    opacity: 0;

    transition: opacity .35s;

}

img.lazy.loaded {

    opacity: 1;

}

/* ==========================================================
TABLET
==========================================================*/

@media(max-width:1200px) {

    .video-grid {

        grid-template-columns:
            repeat(4, 1fr);

    }

}

/* ==========================================================
SMALL LAPTOP
==========================================================*/

@media(max-width:992px) {

    .video-grid {

        grid-template-columns:
            repeat(3, 1fr);

        gap: 22px;

    }

    .pagination {

        margin-top: 40px;

    }

}

/* ==========================================================
TABLET
==========================================================*/

@media(max-width:768px) {

    .video-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 18px;

    }

    .pagination {

        gap: 8px;

    }

    .pagination a,
    .pagination button {

        min-width: 42px;

        height: 42px;

        font-size: 14px;

    }

}

/* ==========================================================
MOBILE
==========================================================*/

@media(max-width:576px) {

    .video-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .load-more button {

        width: 100%;

    }

    .pagination {

        justify-content: center;

    }

}

/* ==========================================================
UTILITY
==========================================================*/

.hide {

    display: none !important;

}

.show {

    display: block !important;

}

.fade {

    animation: fadeIn .3s ease;

}

@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}

/* ==========================================================
   AnimeCorner v2
   Part 6A
   Responsive Header + Mobile Navigation + Search Overlay
==========================================================*/

/* ==========================================================
HEADER STICKY EFFECT
==========================================================*/

.site-header.scrolled {

    background: rgba(15, 17, 23, .97);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);

    border-bottom: 1px solid rgba(255, 255, 255, .06);

}

/* ==========================================================
MOBILE MENU BUTTON
==========================================================*/

.mobile-toggle {

    width: 46px;

    height: 46px;

    border-radius: 12px;

    display: none;

    align-items: center;

    justify-content: center;

    background: var(--bg2);

    border: 1px solid var(--border);

    color: #fff;

    transition: .3s;

}

.mobile-toggle:hover {

    background: var(--primary);

    color: #111;

}

.mobile-toggle svg,

.mobile-toggle i {

    font-size: 20px;

}

/* ==========================================================
MOBILE DRAWER
==========================================================*/

.mobile-menu {

    position: fixed;

    top: 0;

    left: -320px;

    width: 300px;

    height: 100vh;

    background: var(--bg);

    border-right: 1px solid rgba(255, 255, 255, .08);

    z-index: 3000;

    transition: .35s;

    display: flex;

    flex-direction: column;

    overflow-y: auto;

}

.mobile-menu.active {

    left: 0;

}

.mobile-menu-header {

    padding: 25px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);

}

.mobile-menu-header h2 {

    color: var(--primary);

    font-size: 24px;

    font-weight: 800;

}

.mobile-menu nav {

    display: flex;

    flex-direction: column;

    padding: 20px;

}

.mobile-menu nav a {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px 18px;

    border-radius: 12px;

    color: #d1d5db;

    font-weight: 600;

    transition: .25s;

}

.mobile-menu nav a:hover {

    background: rgba(255, 255, 255, .05);

    color: #fff;

}

.mobile-menu nav a.active {

    background: var(--primary);

    color: #111;

}

.mobile-menu nav i {

    width: 22px;

    text-align: center;

}

/* ==========================================================
MENU OVERLAY
==========================================================*/

.mobile-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .65);

    backdrop-filter: blur(5px);

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    z-index: 2500;

}

.mobile-overlay.active {

    opacity: 1;

    visibility: visible;

}

/* ==========================================================
SEARCH OVERLAY
==========================================================*/

.search-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .88);

    backdrop-filter: blur(12px);

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding-top: 90px;

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    z-index: 4000;

}

.search-overlay.active {

    opacity: 1;

    visibility: visible;

}

.search-panel {

    width: min(820px, 92%);

}

.search-panel input {

    width: 100%;

    height: 68px;

    border-radius: 18px;

    border: 2px solid var(--border);

    background: var(--bg2);

    color: #fff;

    padding: 0 28px;

    font-size: 20px;

    transition: .3s;

}

.search-panel input:focus {

    border-color: var(--primary);

}

.search-close {

    position: absolute;

    right: 40px;

    top: 35px;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: var(--primary);

    color: #111;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

}

/* ==========================================================
LIVE SEARCH RESULTS
==========================================================*/

.search-list {

    margin-top: 20px;

    background: var(--bg2);

    border-radius: 18px;

    overflow: hidden;

    max-height: 70vh;

    overflow-y: auto;

}

.search-list::-webkit-scrollbar {

    width: 8px;

}

.search-list::-webkit-scrollbar-thumb {

    background: #3a3f4e;

}

.search-row {

    display: flex;

    gap: 15px;

    padding: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .05);

    transition: .25s;

}

.search-row:hover {

    background: rgba(255, 255, 255, .04);

}

.search-row img {

    width: 80px;

    height: 110px;

    object-fit: cover;

    border-radius: 10px;

}

.search-row h4 {

    font-size: 16px;

    margin-bottom: 8px;

}

.search-row p {

    color: #9ca3af;

    font-size: 13px;

}

/* ==========================================================
HEADER USER
==========================================================*/

.user-menu {

    display: flex;

    align-items: center;

    gap: 12px;

}

.user-name {

    font-weight: 700;

    color: #fff;

}

.user-role {

    font-size: 12px;

    color: #9ca3af;

}

/* ==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:1200px) {

    .main-nav {

        gap: 18px;

    }

    .search-box {

        max-width: 320px;

    }

}

@media(max-width:992px) {

    .main-nav {

        display: none;

    }

    .mobile-toggle {

        display: flex;

    }

    .search-box {

        display: none;

    }

    .header-inner {

        height: 74px;

    }

    .logo h1 {

        font-size: 18px;

    }

}

@media(max-width:768px) {

    .header-right {

        gap: 10px;

    }

    .login-btn {

        display: none;

    }

    .user-name,

    .user-role {

        display: none;

    }

    .logo {

        font-size: 26px;

    }

}

@media(max-width:576px) {

    .header-inner {

        height: 68px;

    }

    .logo h1 {

        font-size: 17px;

    }

    .icon-btn {

        width: 40px;

        height: 40px;

    }

    .avatar {

        width: 40px;

        height: 40px;

    }

    .mobile-menu {

        width: 280px;

    }

    .search-panel input {

        height: 58px;

        font-size: 17px;

    }

}

/* ==========================================================
   AnimeCorner v2
   Part 6B-1
   Premium Footer
==========================================================*/

/* ==========================================================
FOOTER
==========================================================*/

.site-footer {

    margin-top: 80px;

    background: linear-gradient(180deg,
            #171923,
            #101218);

    border-top: 1px solid rgba(255, 255, 255, .06);

}

.footer-top {

    padding: 70px 0 50px;

}

.footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

}

/* ==========================================================
FOOTER BRAND
==========================================================*/

.footer-brand {

    max-width: 420px;

}

.footer-logo {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;

}

.footer-logo i {

    color: var(--primary);

    font-size: 34px;

}

.footer-logo h2 {

    color: var(--primary);

    font-size: 28px;

    font-weight: 800;

}

.footer-brand p {

    color: #9ca3af;

    line-height: 1.8;

    margin-bottom: 25px;

}

/* ==========================================================
SOCIAL
==========================================================*/

.footer-social {

    display: flex;

    gap: 14px;

}

.footer-social a {

    width: 46px;

    height: 46px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, .06);

    color: #fff;

    transition: .3s;

}

.footer-social a:hover {

    background: var(--primary);

    color: #111;

    transform: translateY(-4px);

}

/* ==========================================================
FOOTER WIDGET
==========================================================*/

.footer-widget h3 {

    color: #fff;

    font-size: 19px;

    margin-bottom: 22px;

    position: relative;

}

.footer-widget h3:after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 55px;

    height: 3px;

    background: var(--primary);

    border-radius: 30px;

}

/* ==========================================================
LINKS
==========================================================*/

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 14px;

}

.footer-links a {

    color: #9ca3af;

    transition: .25s;

    display: flex;

    align-items: center;

    gap: 8px;

}

.footer-links a:hover {

    color: var(--primary);

    transform: translateX(6px);

}

.footer-links i {

    font-size: 12px;

}

/* ==========================================================
POPULAR TAGS
==========================================================*/

.footer-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.footer-tags a {

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .05);

    color: #d1d5db;

    font-size: 13px;

    transition: .3s;

}

.footer-tags a:hover {

    background: var(--primary);

    color: #111;

}

/* ==========================================================
NEWSLETTER
==========================================================*/

.newsletter {

    margin-top: 25px;

}

.newsletter p {

    color: #9ca3af;

    margin-bottom: 16px;

}

.newsletter-form {

    display: flex;

    gap: 10px;

}

.newsletter-form input {

    flex: 1;

    height: 50px;

    padding: 0 18px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: var(--bg2);

    color: #fff;

}

.newsletter-form input:focus {

    border-color: var(--primary);

}

.newsletter-form button {

    width: 54px;

    border-radius: 12px;

    background: var(--primary);

    color: #111;

    transition: .3s;

}

.newsletter-form button:hover {

    background: var(--primary-dark);

}

/* ==========================================================
FOOTER STATS
==========================================================*/

.footer-stats {

    display: flex;

    gap: 25px;

    margin-top: 28px;

}

.footer-stat h4 {

    color: var(--primary);

    font-size: 24px;

    font-weight: 800;

}

.footer-stat span {

    color: #9ca3af;

    font-size: 13px;

}

/* ==========================================================
BOTTOM
==========================================================*/

.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, .06);

    padding: 22px 0;

}

.footer-bottom-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

.footer-bottom p {

    color: #8b93a7;

    font-size: 14px;

}

.footer-bottom-links {

    display: flex;

    gap: 20px;

}

.footer-bottom-links a {

    color: #8b93a7;

    font-size: 14px;

    transition: .25s;

}

.footer-bottom-links a:hover {

    color: var(--primary);

}

/* ==========================================================
PAYMENT / PARTNER ICONS
==========================================================*/

.footer-partners {

    display: flex;

    gap: 12px;

    margin-top: 22px;

}

.footer-partners img {

    width: 42px;

    height: 42px;

    object-fit: contain;

    opacity: .75;

    transition: .3s;

}

.footer-partners img:hover {

    opacity: 1;

    transform: scale(1.08);

}

/* ==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:1200px) {

    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

@media(max-width:768px) {

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }

    .footer-bottom-inner {

        flex-direction: column;

        text-align: center;

    }

    .footer-bottom-links {

        flex-wrap: wrap;

        justify-content: center;

    }

    .newsletter-form {

        flex-direction: column;

    }

    .newsletter-form button {

        width: 100%;

        height: 50px;

    }

    .footer-stats {

        justify-content: space-between;

    }

}

@media(max-width:576px) {

    .footer-top {

        padding: 50px 0 30px;

    }

    .footer-logo h2 {

        font-size: 24px;

    }

    .footer-stat h4 {

        font-size: 20px;

    }

    .footer-social {

        justify-content: center;

    }

    .footer-brand {

        text-align: center;

        max-width: 100%;

    }

    .footer-logo {

        justify-content: center;

    }

}

/* ==========================================================
   AnimeCorner v2
   Part 6B-2
   User Menu + Mobile Navigation + Utilities
==========================================================*/

/* ==========================================================
USER DROPDOWN
==========================================================*/

.user-dropdown {

    position: relative;

}

.user-dropdown-toggle {

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

}

.user-dropdown-toggle img {

    width: 46px;

    height: 46px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255, 255, 255, .08);

}

.user-dropdown-menu {

    position: absolute;

    top: 65px;

    right: 0;

    width: 260px;

    background: var(--bg2);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: .3s;

    z-index: 5000;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);

}

.user-dropdown.active .user-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: none;

}

.dropdown-header {

    padding: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);

}

.dropdown-header h4 {

    color: #fff;

    font-size: 17px;

    margin-bottom: 4px;

}

.dropdown-header span {

    color: #9ca3af;

    font-size: 13px;

}

.dropdown-menu {

    display: flex;

    flex-direction: column;

}

.dropdown-menu a {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px 20px;

    color: #d1d5db;

    transition: .25s;

}

.dropdown-menu a:hover {

    background: rgba(255, 255, 255, .05);

    color: #fff;

}

.dropdown-menu a.logout {

    color: #ef4444;

}

.dropdown-menu a.logout:hover {

    background: rgba(239, 68, 68, .12);

}

/* ==========================================================
NOTIFICATION BADGE
==========================================================*/

.notification {

    position: relative;

}

.notification-count {

    position: absolute;

    top: -5px;

    right: -5px;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    background: #ef4444;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 700;

}

/* ==========================================================
BACK TO TOP
==========================================================*/

.back-to-top {

    position: fixed;

    right: 28px;

    bottom: 28px;

    width: 54px;

    height: 54px;

    border-radius: 50%;

    background: var(--primary);

    color: #111;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .35);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: .35s;

    z-index: 1000;

}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: none;

}

.back-to-top:hover {

    transform: translateY(-5px);

}

/* ==========================================================
MOBILE BOTTOM NAVIGATION
==========================================================*/

.mobile-bottom-nav {

    position: fixed;

    left: 0;

    bottom: 0;

    width: 100%;

    height: 72px;

    background: rgba(18, 20, 28, .96);

    backdrop-filter: blur(18px);

    border-top: 1px solid rgba(255, 255, 255, .08);

    display: none;

    justify-content: space-around;

    align-items: center;

    z-index: 3000;

}

.mobile-bottom-nav a {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color: #9ca3af;

    font-size: 11px;

    transition: .25s;

}

.mobile-bottom-nav a i {

    font-size: 22px;

}

.mobile-bottom-nav a.active {

    color: var(--primary);

}

.mobile-bottom-nav a:hover {

    color: var(--primary);

}

/* ==========================================================
FLOATING SEARCH BUTTON
==========================================================*/

.mobile-search-btn {

    position: fixed;

    right: 22px;

    bottom: 95px;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: var(--primary);

    color: #111;

    display: none;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);

    z-index: 2900;

}

/* ==========================================================
UTILITY CLASSES
==========================================================*/

.text-primary {

    color: var(--primary) !important;

}

.text-muted {

    color: #9ca3af !important;

}

.bg-primary {

    background: var(--primary) !important;

}

.rounded {

    border-radius: 18px !important;

}

.shadow {

    box-shadow: var(--shadow) !important;

}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.pt-1 {
    padding-top: 8px;
}

.pt-2 {
    padding-top: 16px;
}

.pt-3 {
    padding-top: 24px;
}

.pb-1 {
    padding-bottom: 8px;
}

.pb-2 {
    padding-bottom: 16px;
}

.pb-3 {
    padding-bottom: 24px;
}

.d-flex {

    display: flex;

}

.align-center {

    align-items: center;

}

.justify-between {

    justify-content: space-between;

}

.justify-center {

    justify-content: center;

}

.flex-column {

    flex-direction: column;

}

.gap-1 {

    gap: 8px;

}

.gap-2 {

    gap: 16px;

}

.gap-3 {

    gap: 24px;

}

.w-100 {

    width: 100%;

}

.text-center {

    text-align: center;

}

.hidden {

    display: none !important;

}

.visible {

    display: block !important;

}

/* ==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:768px) {

    .mobile-bottom-nav {

        display: flex;

    }

    .mobile-search-btn {

        display: flex;

    }

    .back-to-top {

        bottom: 95px;

        right: 20px;

    }

    .user-dropdown-menu {

        right: -20px;

    }

}

@media(max-width:576px) {

    .back-to-top {

        width: 48px;

        height: 48px;

        font-size: 18px;

    }

    .mobile-bottom-nav {

        height: 68px;

    }

    .mobile-bottom-nav a i {

        font-size: 20px;

    }

}

/* ==========================================================
   AnimeCorner v2
   Part 7
   Final Polish + Animations + Accessibility
==========================================================*/

/* ==========================================================
GLASS EFFECTS
==========================================================*/

.glass {

    background: rgba(255, 255, 255, .06);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, .08);

}

.glass-dark {

    background: rgba(15, 17, 23, .85);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .06);

}

/* ==========================================================
PREMIUM SHADOWS
==========================================================*/

.shadow-sm {

    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);

}

.shadow-md {

    box-shadow: 0 15px 35px rgba(0, 0, 0, .30);

}

.shadow-lg {

    box-shadow: 0 25px 70px rgba(0, 0, 0, .45);

}

/* ==========================================================
HOVER EFFECTS
==========================================================*/

.hover-scale {

    transition: .3s;

}

.hover-scale:hover {

    transform: scale(1.03);

}

.hover-lift {

    transition: .3s;

}

.hover-lift:hover {

    transform: translateY(-6px);

}

.hover-glow:hover {

    box-shadow:

        0 0 25px rgba(245, 196, 81, .25);

}

/* ==========================================================
BUTTON EFFECT
==========================================================*/

.btn {

    transition:

        transform .25s,

        box-shadow .25s,

        background .25s;

}

.btn:hover {

    transform: translateY(-2px);

}

.btn:active {

    transform: scale(.97);

}

/* ==========================================================
IMAGE EFFECTS
==========================================================*/

img {

    image-rendering: auto;

}

.img-blur {

    filter: blur(8px);

    transition: .4s;

}

.img-blur.loaded {

    filter: none;

}

/* ==========================================================
FADE ANIMATIONS
==========================================================*/

.fade-in {

    animation: fadeIn .45s ease both;

}

.slide-up {

    animation: slideUp .45s ease both;

}

.slide-left {

    animation: slideLeft .45s ease both;

}

.slide-right {

    animation: slideRight .45s ease both;

}

.zoom-in {

    animation: zoomIn .35s ease both;

}

@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}

@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

@keyframes slideLeft {

    from {

        opacity: 0;

        transform: translateX(-25px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

@keyframes slideRight {

    from {

        opacity: 0;

        transform: translateX(25px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

@keyframes zoomIn {

    from {

        opacity: 0;

        transform: scale(.95);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}

/* ==========================================================
PAGE TRANSITION
==========================================================*/

.page-enter {

    animation: pageEnter .45s ease;

}

@keyframes pageEnter {

    0% {

        opacity: 0;

        transform: translateY(20px);

    }

    100% {

        opacity: 1;

        transform: none;

    }

}

/* ==========================================================
FLOATING ANIMATION
==========================================================*/

.float {

    animation: float 3s ease infinite;

}

@keyframes float {

    0%, 100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-10px);

    }

}

/* ==========================================================
PULSE
==========================================================*/

.pulse {

    animation: pulseGlow 2s infinite;

}

@keyframes pulseGlow {

    0% {

        box-shadow: 0 0 0 rgba(245, 196, 81, 0);

    }

    50% {

        box-shadow: 0 0 25px rgba(245, 196, 81, .25);

    }

    100% {

        box-shadow: 0 0 0 rgba(245, 196, 81, 0);

    }

}

/* ==========================================================
BADGES
==========================================================*/

.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

}

.badge-success {

    background: #16a34a;

}

.badge-danger {

    background: #ef4444;

}

.badge-warning {

    background: #f59e0b;

    color: #111;

}

.badge-primary {

    background: var(--primary);

    color: #111;

}

/* ==========================================================
LAZY LOAD
==========================================================*/

.lazy-load {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity .45s,
        transform .45s;
}

.lazy-load.show {
    opacity: 1;
    transform: none;
}

/* ==========================================================
SELECTION
==========================================================*/

::selection {
    background: var(--primary);
    color: #111;
}

/* ==========================================================
FOCUS
==========================================================*/

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ==========================================================
REDUCED MOTION
==========================================================*/

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
PRINT
==========================================================*/

@media print {

    .site-header,
    .site-footer,
    .mobile-bottom-nav,
    .back-to-top,
    .search-overlay,
    .mobile-menu,
    .carousel-btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .anime-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* ==========================================================
PERFORMANCE
==========================================================*/

.hero,
.anime-card,
.continue-card,
.carousel-wrapper {
    will-change: transform;
}

.preview-video {
    contain: paint;
}

/* ==========================================================
ACCESSIBILITY
==========================================================*/

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
HELPERS
==========================================================*/

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: .25;
}

.opacity-50 {
    opacity: .5;
}

.opacity-75 {
    opacity: .75;
}

.opacity-100 {
    opacity: 1;
}

.rounded-sm {
    border-radius: 8px;
}

.rounded-md {
    border-radius: 14px;
}

.rounded-lg {
    border-radius: 22px;
}

.rounded-full {
    border-radius: 999px;
}

.border {
    border: 1px solid rgba(255, 255, 255, .08);
}

.border-primary {
    border-color: var(--primary);
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

/* ==========================================================
END
==========================================================*/

.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 60px;
}



.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s;
    /* Fixed: added 'opacity' property */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .82),
            rgba(0, 0, 0, .2));
}

.hero-content {
    position: absolute;
    left: 70px;
    bottom: 90px;
    max-width: 700px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 900;
    margin: 20px 0;
}

.hero-content p {
    font-size: 19px;
    line-height: 1.8;
    color: #d0d0d0;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 35px;
}

.watch-btn {
    background: #ffcc55;
    color: #111;
    padding: 15px 38px;
    border-radius: 12px;
    font-weight: 800;
}

.detail-btn {
    padding: 15px 38px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    color: #fff;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 65px;
    width: 230px;
    background: #181c26;
    border-radius: 18px;
    display: none;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 15px 22px;
    color: #fff;
    text-decoration: none;
    transition: .25s;
}

.dropdown-menu a:hover {
    background: #232939;
}

.hamburger {
    display: none;
}

@media (max-width: 992px) {

    .desktop-nav,
    .search-box,
    .upload-btn {
        display: none;
    }

    .hamburger {
        display: block;
        width: 46px;
        height: 46px;
        background: #1d212d;
        border: none;
        border-radius: 12px;
        color: #fff;
    }
}


/* ==========================================
   MOBILE IMPROVEMENTS
========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-slider {
        height: 500px;
        border-radius: 16px;
    }

    .hero-content h1 {
        font-size: 40px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
        border-radius: 12px;
        margin-bottom: 30px;
    }

    .hero-content {
        left: 30px;
        bottom: 50px;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 30px;
        margin: 12px 0;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 14px;
        margin-top: 25px;
    }

    .watch-btn,
    .detail-btn {
        padding: 13px 30px;
        font-size: 15px;
    }

    .filter-tabs {
        gap: 8px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .hero-content {
        left: 20px;
        bottom: 30px;
        max-width: 95%;
    }

    .hero-content h1 {
        font-size: 22px;
        margin: 8px 0;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .watch-btn,
    .detail-btn {
        padding: 12px 20px;
        text-align: center;
        font-size: 14px;
        width: 100%;
        border-radius: 10px;
    }

    .filter-link {
        padding: 12px 16px;
        font-size: 12px;
        min-height: 44px;
    }

    .avatar-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger {
        width: 44px;
        height: 44px;
    }

    .dropdown-menu {
        width: 200px;
        right: -10px;
        top: 55px;
    }

    .dropdown-menu a {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ==========================================
   ACTION BAR
========================================== */

.action-bar {
    width: 100%;
    margin: 30px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   FILTER BUTTON
========================================== */

.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #1b1f2b;
    color: #cfcfcf;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .28s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Hover */
.filter-link:hover {
    background: #262c3b;
    color: #ffffff;
    border-color: #f5c451;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 196, 81, .18);
}

/* Active */
.filter-link.active {
    background: linear-gradient(135deg,
            #f5c451,
            #e8a92b);
    color: #111;
    border-color: #f5c451;
    font-weight: 700;
    box-shadow:
        0 10px 25px rgba(245, 196, 81, .30);
}

/* Shine animation */
.filter-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background:
        linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, .35),
            transparent);
    transition: .7s;
}

.filter-link:hover::before {
    left: 140%;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
    .action-bar {
        margin: 25px 0;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-link {
        flex-shrink: 0;
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .filter-link {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.avatar-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: #f5c451;
    cursor: pointer;
    font-weight: 700;
}

.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FOOTER STYLES ===== */
.community-footer {
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.75rem;
    color: #5a6a7a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0c4d8;
    margin-bottom: 0.8rem;
}

.footer-description {
    font-size: 0.8rem;
    color: #7a8fa8;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #7a8fa8;
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.2s;
}

.social-link:hover {
    background: rgba(246, 211, 101, 0.06);
    border-color: rgba(246, 211, 101, 0.08);
    color: #f6d365;
}

.social-label {
    font-size: 0.7rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #7a8fa8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #f6d365;
}

/* SEO Keywords */
.footer-seo {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.seo-tag {
    font-size: 0.65rem;
    color: #4a5a6a;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: 0.2s;
}

.seo-tag:hover {
    color: #f6d365;
    border-color: rgba(246, 211, 101, 0.04);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.footer-bottom a {
    color: #7a8c9e;
    text-decoration: none;
    margin-left: 1rem;
    transition: 0.2s;
}

.footer-bottom a:hover {
    color: #f6d365;
}

.schema-badge {
    background: rgba(255, 215, 100, 0.02);
    padding: 0.1rem 0.9rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 100, 0.03);
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    color: #5d6f82;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .social-link .social-label {
        display: none;
    }
}

@media (max-width: 500px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .seo-keywords {
        gap: 0.3rem;
    }

    .seo-tag {
        font-size: 0.55rem;
        padding: 0.05rem 0.6rem;
    }
}

.mobile-menu {

    position: fixed;

    top: 82px;

    left: -100%;

    width: 280px;

    height: 100vh;

    background: #171923;

    transition: .35s;

    z-index: 9998;

    display: flex;

    flex-direction: column;

    padding: 25px;

    gap: 18px;

}

.mobile-menu.active {

    left: 0;

}

.mobile-menu a {

    color: #fff;

    text-decoration: none;

    padding: 12px;

    border-radius: 10px;

}

.mobile-menu a:hover {

    background: #242938;

}

.play-btn-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 5;
        backdrop-filter: blur(4px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    .play-btn-overlay.hidden {
        opacity: 0;
        display: none;
        pointer-events: none;
    }