/* ===================================================
   TOONFLIX - Streaming Platform Styles
   =================================================== */

:root {
    --tf-primary: #e50914;
    --tf-bg: #141414;
    --tf-bg-secondary: #1a1a1a;
    --tf-bg-card: #222;
    --tf-text: #ffffff;
    --tf-text-muted: #999;
    --tf-border: #333;
    --tf-nav-height: 68px;
    --tf-radius: 6px;
    --tf-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.toonflix-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: var(--tf-bg);
    color: var(--tf-text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION (HBO Max style) ===== */
.toonflix-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tf-nav-height);
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
    transition: background 0.3s;
}

.toonflix-nav.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.toonflix-nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.toonflix-logo {
    text-decoration: none;
}

.toonflix-logo img {
    height: 32px;
    width: auto;
}

.toonflix-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tf-primary);
    letter-spacing: -0.5px;
}

.toonflix-nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.toonflix-nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.toonflix-nav-links a:hover,
.toonflix-nav-links a.active {
    color: #fff;
    border-bottom-color: var(--tf-primary);
}

.toonflix-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toonflix-nav-icon {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.toonflix-nav-icon:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Search */
.toonflix-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toonflix-search-input {
    width: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--tf-text);
    font-size: 0.85rem;
    transition: width 0.3s ease, opacity 0.3s;
    opacity: 0;
    position: absolute;
    right: 40px;
}

.toonflix-search-input.active {
    width: 220px;
    opacity: 1;
}

.toonflix-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--tf-bg-secondary);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    display: none;
    z-index: 1001;
}

.toonflix-search-results.active {
    display: block;
}

.toonflix-search-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    text-decoration: none;
    color: var(--tf-text);
    transition: background 0.15s;
}

.toonflix-search-item:hover {
    background: rgba(255,255,255,0.05);
}

.toonflix-search-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.toonflix-search-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toonflix-search-item-info span {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
}

/* Profile Menu */
.toonflix-profile-menu {
    position: relative;
}

.toonflix-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.toonflix-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    overflow: hidden;
}

.toonflix-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toonflix-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--tf-bg-secondary);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    min-width: 160px;
    box-shadow: var(--tf-shadow);
    display: none;
    z-index: 1002;
}

.toonflix-profile-dropdown.active {
    display: block;
}

.toonflix-profile-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--tf-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.toonflix-profile-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--tf-text);
}

/* ===== MAIN CONTENT ===== */
.toonflix-main {
    padding-top: var(--tf-nav-height);
    min-height: 100vh;
}

/* ===== HERO SLIDER (HBO Max style) ===== */
.toonflix-hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.toonflix-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.toonflix-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.toonflix-slide.active {
    opacity: 1;
}

.toonflix-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%),
                linear-gradient(0deg, var(--tf-bg) 0%, transparent 40%);
}

.toonflix-slide-content {
    position: absolute;
    bottom: 15%;
    left: 4%;
    max-width: 500px;
    z-index: 2;
}

.toonflix-slide-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.toonflix-slide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.toonflix-slide-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 20px;
}

.toonflix-slide-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Slider Dots */
.toonflix-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.toonflix-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.toonflix-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.toonflix-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* ===== HERO FALLBACK (sem banners) ===== */
.toonflix-hero {
    position: relative;
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 80px 4%;
}

.toonflix-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--tf-bg) 0%, rgba(20,20,20,0.4) 50%, rgba(20,20,20,0.2) 100%);
}

.toonflix-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.toonflix-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.toonflix-hero-desc {
    font-size: 1rem;
    color: var(--tf-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.toonflix-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.toonflix-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--tf-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.toonflix-btn-primary {
    background: var(--tf-primary);
    color: white;
}

.toonflix-btn-primary:hover {
    background: #f40612;
    transform: scale(1.02);
}

.toonflix-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.toonflix-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.toonflix-btn-icon {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.toonflix-btn-icon.active {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}

/* ===== BADGES ===== */
.toonflix-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--tf-primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.toonflix-status-badge {
    padding: 3px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.8rem;
}

.toonflix-status-badge.ongoing {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* ===== SECTIONS & CAROUSELS ===== */
.toonflix-section {
    padding: 30px 4%;
}

.toonflix-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.toonflix-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.toonflix-carousel::-webkit-scrollbar {
    display: none;
}

/* ===== CARDS ===== */
.toonflix-card {
    flex: 0 0 180px;
    text-decoration: none;
    color: var(--tf-text);
    border-radius: var(--tf-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s;
    background: var(--tf-bg-card);
}

.toonflix-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    z-index: 10;
}

.toonflix-card-img {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.toonflix-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toonflix-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--tf-text-muted);
    background: var(--tf-bg-secondary);
}

.toonflix-card-info {
    padding: 10px;
}

.toonflix-card-info h3 {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toonflix-card-genre {
    font-size: 0.7rem;
    color: var(--tf-text-muted);
}

/* ===== GRID (Archive) ===== */
.toonflix-archive {
    padding: 30px 4%;
}

.toonflix-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.toonflix-filters {
    display: flex;
    gap: 12px;
}

.toonflix-filter-select {
    padding: 8px 16px;
    background: var(--tf-bg-secondary);
    color: var(--tf-text);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    font-size: 0.85rem;
    cursor: pointer;
}

.toonflix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.toonflix-grid .toonflix-card {
    flex: unset;
}

.toonflix-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--tf-text-muted);
    font-size: 1.1rem;
}

/* ===== SINGLE CONTENT ===== */
.toonflix-single {
    max-width: 1200px;
    margin: 0 auto;
}

.toonflix-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.toonflix-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.toonflix-content-info {
    padding: 30px 4%;
}

.toonflix-content-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.toonflix-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.toonflix-meta span {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
}

.toonflix-content-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.toonflix-content-description {
    font-size: 0.95rem;
    color: var(--tf-text-muted);
    line-height: 1.7;
    max-width: 700px;
}

/* ===== SERIES HERO ===== */
.toonflix-series-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px 4%;
}

.toonflix-series-hero .toonflix-hero-content {
    max-width: 650px;
}

/* ===== EPISODES ===== */
.toonflix-episodes-section {
    padding: 30px 4%;
}

.toonflix-episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.toonflix-season-select {
    padding: 8px 16px;
    background: var(--tf-bg-secondary);
    color: var(--tf-text);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    font-size: 0.9rem;
}

.toonflix-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toonflix-episode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--tf-bg-secondary);
    border-radius: var(--tf-radius);
    text-decoration: none;
    color: var(--tf-text);
    transition: background 0.2s;
}

.toonflix-episode-card:hover {
    background: rgba(255,255,255,0.08);
}

.toonflix-episode-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tf-text-muted);
    min-width: 30px;
    text-align: center;
}

.toonflix-episode-thumb {
    width: 130px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.toonflix-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toonflix-episode-info {
    flex: 1;
}

.toonflix-episode-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.toonflix-episode-info span {
    font-size: 0.8rem;
    color: var(--tf-text-muted);
}

/* ===== EPISODE BREADCRUMB ===== */
.toonflix-episode-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.toonflix-episode-breadcrumb a {
    color: var(--tf-text-muted);
    text-decoration: none;
}

.toonflix-episode-breadcrumb a:hover {
    color: var(--tf-text);
}

/* Next Episode */
.toonflix-next-episode {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--tf-border);
}

.toonflix-next-episode h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--tf-text-muted);
}

.toonflix-next-episode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--tf-text);
    padding: 12px;
    background: var(--tf-bg-secondary);
    border-radius: var(--tf-radius);
    transition: background 0.2s;
}

.toonflix-next-episode-card:hover {
    background: rgba(255,255,255,0.08);
}

.toonflix-next-thumb {
    width: 160px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.toonflix-next-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toonflix-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.toonflix-next-episode-card:hover .toonflix-play-overlay {
    opacity: 1;
}

/* ===== PROGRESS BAR ===== */
.toonflix-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.toonflix-progress-bar-fill {
    height: 100%;
    background: var(--tf-primary);
    transition: width 0.3s;
}

/* ===== MODAL ===== */
.toonflix-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.toonflix-modal-content {
    background: var(--tf-bg-secondary);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.toonflix-modal-video {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.toonflix-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

/* ===== PROFILES PAGE ===== */
.toonflix-profiles-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.toonflix-profiles-wrapper {
    text-align: center;
    padding: 40px;
}

.toonflix-profiles-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.toonflix-profiles-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.toonflix-profile-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
    width: 120px;
}

.toonflix-profile-card:hover {
    transform: scale(1.1);
}

.toonflix-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--tf-radius);
    background: var(--tf-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 10px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    overflow: hidden;
}

.toonflix-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toonflix-profile-card:hover .toonflix-profile-avatar {
    border-color: var(--tf-text);
}

.toonflix-profile-avatar-add {
    font-size: 2.5rem;
    color: var(--tf-text-muted);
    background: transparent;
    border: 2px solid var(--tf-text-muted);
}

.toonflix-profile-name {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
    display: block;
}

.toonflix-profile-kids-badge {
    font-size: 0.7rem;
    background: #e8b708;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Avatars grid in modal */
.toonflix-avatars-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.tf-avatar-select-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 3px solid #444;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.tf-avatar-select-item:hover {
    border-color: #aaa;
    transform: scale(1.05);
}

/* Quando o radio está selecionado */
input[name="avatar"]:checked + .tf-avatar-select-item {
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* ===== LOGIN PAGE ===== */
.toonflix-login-body {
    background: var(--tf-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toonflix-login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.toonflix-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.toonflix-login-logo {
    max-height: 50px;
}

.toonflix-login-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tf-primary);
}

.toonflix-login-box {
    background: var(--tf-bg-secondary);
    border-radius: 12px;
    padding: 40px;
}

.toonflix-login-box h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--tf-text);
}

.toonflix-login-error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid var(--tf-primary);
    color: var(--tf-primary);
    padding: 12px;
    border-radius: var(--tf-radius);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.toonflix-form-group {
    margin-bottom: 16px;
}

.toonflix-form-group input[type="text"],
.toonflix-form-group input[type="email"],
.toonflix-form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: #333;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    color: var(--tf-text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.toonflix-form-group input:focus {
    outline: none;
    border-color: var(--tf-primary);
}

.toonflix-remember {
    display: flex;
    align-items: center;
}

.toonflix-remember label {
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toonflix-login-btn {
    width: 100%;
    padding: 14px;
    background: var(--tf-primary);
    color: white;
    border: none;
    border-radius: var(--tf-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.toonflix-login-btn:hover {
    background: #f40612;
}

/* ===== LOADING ===== */
.toonflix-loading {
    text-align: center;
    padding: 40px;
    color: var(--tf-text-muted);
}

/* ===== FOOTER ===== */
.toonflix-footer {
    padding: 40px 4%;
    text-align: center;
    color: var(--tf-text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--tf-border);
    margin-top: 40px;
}

/* ===== PAGINATION ===== */
.toonflix-pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.nav-links a,
.nav-links span {
    padding: 8px 14px;
    background: var(--tf-bg-secondary);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    color: var(--tf-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links .current {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .toonflix-nav-links {
        display: none;
    }

    .toonflix-hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .toonflix-slide-title {
        font-size: 1.6rem;
    }

    .toonflix-slide-desc {
        display: none;
    }

    .toonflix-slide-content {
        bottom: 20%;
        max-width: 80%;
    }

    .toonflix-hero {
        height: 50vh;
        min-height: 350px;
    }

    .toonflix-hero-title {
        font-size: 1.8rem;
    }

    .toonflix-card {
        flex: 0 0 130px;
    }

    .toonflix-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .toonflix-archive-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toonflix-episode-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .toonflix-episode-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .toonflix-profiles-grid {
        gap: 16px;
    }

    .toonflix-profile-card {
        width: 90px;
    }

    .toonflix-profile-avatar {
        width: 80px;
        height: 80px;
    }

    .toonflix-login-box {
        padding: 24px;
    }

    .toonflix-search-input.active {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .toonflix-hero-slider {
        height: 50vh;
    }

    .toonflix-slide-title {
        font-size: 1.3rem;
    }

    .toonflix-hero {
        height: 40vh;
        padding: 40px 4%;
    }

    .toonflix-hero-title {
        font-size: 1.4rem;
    }

    .toonflix-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
