/**
 * UPORNIA Video Website - Modern Premium Design
 * Version: 2.0.0
 * Primary Color: #da2054
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #da2054;
    --primary-dark: #b81644;
    --primary-light: #e63966;
    --primary-hover: #f2497a;
    --gradient: linear-gradient(135deg, #da2054 0%, #b81644 100%);
    --gradient-hover: linear-gradient(135deg, #f2497a 0%, #da2054 100%);
    
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-card: #1a1a26;
    --bg-hover: #232332;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-muted: #8a8a9a;
    --text-disabled: #5a5a6a;
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    --shadow-sm: 0 2px 8px rgba(218, 32, 84, 0.1);
    --shadow-md: 0 4px 16px rgba(218, 32, 84, 0.15);
    --shadow-lg: 0 8px 32px rgba(218, 32, 84, 0.2);
    --shadow-hover: 0 12px 48px rgba(218, 32, 84, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --container-max: 1440px;
    --header-height: 72px;
    --nav-height: 56px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Top Bar - REMOVED */

/* ===== Header ===== */
.main-header {
    position: relative;
    z-index: 997;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    margin-top: 0;
    margin-bottom: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    color: var(--text-primary);
    transform: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    color: var(--primary);
}

.search-section {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 10002;
    border: none !important;
    border-bottom: none !important;
}

.search-form {
    position: relative;
    width: 100%;
    z-index: 10002;
    border: none !important;
    border-bottom: none !important;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10002;
    border: none !important;
    border-bottom: none !important;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 8px;
    padding: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10003 !important;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 4px;
    display: none;
}

.search-suggestions:not(:empty) {
    display: block;
    border: 1px solid var(--border-color);
}

/* Custom scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
}

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

.suggestion-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    padding-left: 20px;
}

.suggestion-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.suggestion-item:hover svg {
    color: var(--primary);
}

.suggestion-item.active {
    background: rgba(218, 32, 84, 0.1);
    color: var(--primary);
}

.suggestion-item.active svg {
    color: var(--primary);
}

.suggestion-section {
    padding: 12px 16px 8px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.suggestion-pornstar {
    padding-left: 24px;
}

.suggestion-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.suggestion-item:hover .suggestion-count {
    color: var(--primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-signin,
.btn-signup {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-signin {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-signin:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-signup {
    background: var(--gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-signup:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===== Navigation Menu (Below Logo) ===== */
.main-nav {
    background: var(--bg-secondary);
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 24px;
    padding: 0;
}

.main-nav .container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(218, 32, 84, 0.08);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link::after {
    content: '▼';
    font-size: 0.6875rem;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-menu a svg {
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    padding: 24px 0 40px 0;
}

.content-header {
    margin-bottom: 32px;
    text-align: center;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.4;
    display: block;
    word-break: break-word;
}

.content-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    word-break: break-word;
}

/* ===== Channel Description (Collapsible) ===== */
.channel-description-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.channel-description-content {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    text-align: justify;
    word-break: break-word;
    max-height: 1.7em; /* 1 dòng */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.channel-description-content.expanded {
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.channel-description-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.channel-description-content.expanded::after {
    opacity: 0;
}

.channel-description-toggle {
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.channel-description-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.channel-description-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.channel-description-toggle.expanded svg {
    transform: rotate(180deg);
}

/* ===== Video Grid (5 Videos Per Row) ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.video-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    padding: 0;
}

.video-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.video-link {
    display: block;
    color: inherit;
    width: 100%;
    text-decoration: none;
}

.video-thumbnail-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.03);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1.2;
}

.video-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover .video-title {
    color: var(--primary);
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-stat svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.8;
    transition: var(--transition);
    z-index: 10;
    border: none;
    cursor: pointer;
}

.video-card:hover .favorite-btn {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
}

.favorite-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.favorite-btn svg {
    width: 18px;
    height: 18px;
}

.favorite-btn.active {
    opacity: 1;
    background: var(--primary);
    color: var(--text-primary);
}

/* ===== Pagination ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
    padding: 8px 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-item {
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 4px;
    font-size: 12px;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    margin-bottom: 16px;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== Model/Channel Info Bar ===== */
.model-info-bar,
.channel-info-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.model-info-content,
.channel-info-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.model-info-photo,
.channel-info-photo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.model-info-photo img,
.channel-info-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info-main,
.channel-info-main {
    flex: 1;
}

.model-info-name,
.channel-info-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.model-info-stats,
.channel-info-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.info-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-stat svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Video Player Section ===== */
.video-player-section {
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-iframe-container,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-info-section {
    margin-top: 24px;
}

.video-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.video-actors,
.video-tags {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.video-actors strong,
.video-tags strong {
    color: var(--text-primary);
    margin-right: 8px;
}

.actor-link,
.tag-link {
    color: var(--primary);
    transition: var(--transition);
}

.actor-link:hover,
.tag-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.related-videos-section {
    margin-top: 40px;
}

.section-popular,
.section-latest {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-more-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.share-btn-icon,
.favorite-btn-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.share-btn-icon:hover,
.favorite-btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.favorite-btn-icon.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1440px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-thumbnail-wrapper {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --nav-height: auto;
    }
    
    
    .header-top {
        flex-wrap: wrap;
        padding: 12px 0;
        height: auto;
    }
    
    .search-section {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .main-nav {
        margin-bottom: 16px;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 1000px;
        padding: 12px 0;
    }
    
    .nav-link {
        padding: 14px 18px;
        border-radius: var(--radius-md);
    }
    
    /* Mobile: dropdown static - click to toggle */
    .nav-dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        margin-top: 0 !important;
        margin-left: 1rem !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--border-color) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: auto !important;
        pointer-events: auto !important;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Disable hover on mobile */
    .nav-dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .nav-dropdown.active:hover .dropdown-menu {
        display: block !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .video-stats {
        font-size: 12px;
        gap: 16px;
    }
    
    .content-header {
        margin-bottom: 24px;
        padding: 0 15px;
    }
    
    .content-title {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }
    
    .content-description {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0;
        word-wrap: break-word;
    }
    
    .model-info-content,
    .channel-info-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .model-info-photo,
    .channel-info-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-thumbnail-wrapper {
        padding-bottom: 56.25%;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .video-stats {
        font-size: 11px;
        gap: 12px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .btn-signin,
    .btn-signup {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Auth Pages Mobile */
    .auth-container {
        margin: 40px auto;
        padding: 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    /* Settings Mobile */
    .settings-section {
        padding: 20px;
    }
    
    .settings-section-title {
        font-size: 20px;
    }
    
    /* Models/Channels Grid Mobile */
    .models-grid,
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .model-name,
    .channel-name {
        font-size: 14px;
    }
    
    .model-stats,
    .channel-stats {
        font-size: 12px;
        gap: 12px;
    }
    
    /* Filter Buttons Mobile */
    .model-filters {
        padding: 16px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .filter-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== Auth Pages (Login/Register) ===== */
.auth-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(218, 32, 84, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 4px;
}

.auth-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-submit:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: #22c55e;
    margin-bottom: 24px;
    font-size: 14px;
}

.success-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-image {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.captcha-refresh {
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
}

.auth-benefits {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.auth-benefits-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.benefits-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== Settings Page ===== */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.settings-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.settings-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.settings-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.settings-info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-info-value {
    color: var(--text-primary);
}

/* ===== Models/Channels Grid ===== */
.models-grid,
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.model-card,
.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.model-card:hover,
.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.model-link,
.channel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.model-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 aspect ratio - vertical */
    overflow: hidden;
    background: var(--bg-secondary);
}

.channel-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio - horizontal */
    overflow: hidden;
    background: var(--bg-secondary);
}

.model-thumbnail img,
.channel-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.model-card:hover .model-thumbnail img,
.channel-card:hover .channel-thumbnail img {
    transform: scale(1.05);
}

.model-info,
.channel-info {
    padding: 16px;
}

.model-name,
.channel-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-stats,
.channel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.model-stat,
.channel-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.model-stat svg,
.channel-stat svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Filter Buttons ===== */
.model-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--text-muted);
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.no-results h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results .text-muted {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Legal Pages (Terms, Privacy, DMCA, etc.) ===== */
.legal-content {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.legal-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.legal-content p:last-child {
    margin-bottom: 0;
}

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

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.legal-content ul,
.legal-content ol {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.legal-content ul li,
.legal-content ol li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: 1.8;
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
}

.legal-content ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-content ol {
    padding-left: 1.5rem;
    counter-reset: item;
}

.legal-content ol li {
    counter-increment: item;
    display: list-item;
    list-style: decimal;
    padding-left: 0;
    gap: 0;
    flex-direction: row;
}

.legal-content ol li::before {
    content: none;
}

.legal-content ol li strong {
    display: inline;
    color: var(--text-primary);
    font-weight: 600;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.legal-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ===== Action Buttons (Text) ===== */
.action-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 6px;
}

.action-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.favorite-btn-text.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== Share Modal ===== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: var(--transition);
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.share-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.share-modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.share-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.share-modal-close svg {
    width: 20px;
    height: 20px;
}

.share-modal-body {
    margin-bottom: 20px;
}

.share-url-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: var(--transition);
}

.share-url-input:focus {
    border-color: var(--primary);
}

.share-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-copy {
    padding: 10px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success svg {
    color: #10b981;
}

.toast.error svg {
    color: #ef4444;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .toast {
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: none;
    }
    
    .share-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Favorites Search Box */
.favorites-search-wrapper {
    margin-bottom: 32px;
    margin-top: 24px;
}

#favoriteSearch {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#favoriteSearch:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 32, 84, 0.1);
}

#favoriteSearch::placeholder {
    color: var(--text-muted);
}

#favoriteSearchLoading {
    display: none;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-muted);
}

