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

body {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    background-attachment: fixed;
    color: #e8e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 133, 51, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(26, 26, 46, 0.4) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.header, .categories, .container, .footer, 
.video-modal, .register-modal, .age-gate, 
.cookie-banner, .loading-overlay, .premium-popup {
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e8e8f0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

.upload-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    padding: 10px 25px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.categories {
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-track {
    background: transparent;
}

.categories::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 3px;
}

.category-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 500;
}

.category-tag:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.container {
    padding: 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 26px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.video-card {
    background: rgba(26, 26, 46, 0.4);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.2);
}

.thumbnail {
    width: 100%;
    height: 180px;
    background: rgba(10, 10, 20, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px);
    opacity: 0.5;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.play-icon {
    font-size: 56px;
    color: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    color: #ff6b00;
}

.duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
    color: #e8e8f0;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(232, 232, 240, 0.6);
    font-weight: 500;
}

.footer {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    color: rgba(232, 232, 240, 0.5);
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    background: rgba(15, 15, 30, 0.95);
    max-width: 1200px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.video-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0a0a14 0%, #14141e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.broken-video {
    text-align: center;
    color: rgba(232, 232, 240, 0.4);
}

.broken-video-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.broken-video-text {
    font-size: 18px;
    color: rgba(232, 232, 240, 0.5);
}

.buffering {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.buffering.show {
    display: block;
}

.buffering-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.video-controls {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.control-btn {
    background: none;
    border: none;
    color: #e8e8f0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: #ff6b00;
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b00 0%, #ff8533 100%);
    border-radius: 3px;
}

.time-display {
    color: rgba(232, 232, 240, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e8e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.download-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    transform: scale(1.1);
}

.video-info-modal {
    padding: 20px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(10px);
}

.video-title-modal {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e8e8f0;
}

.video-meta-modal {
    color: rgba(232, 232, 240, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.report-btn {
    color: rgba(232, 232, 240, 0.5);
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.report-btn:hover {
    color: #ff6b00;
}

.comments-section {
    padding: 20px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    max-height: 300px;
    overflow-y: auto;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e8e8f0;
}

.comment {
    padding: 15px;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(255, 107, 0, 0.3);
}

.comment-author {
    font-weight: 600;
    color: #ff6b00;
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-text {
    color: rgba(232, 232, 240, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.comment-time {
    color: rgba(232, 232, 240, 0.4);
    font-size: 12px;
    margin-top: 5px;
}

.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.register-modal.active {
    display: flex;
}

.register-box {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.register-title {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.register-subtitle {
    color: rgba(232, 232, 240, 0.6);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(232, 232, 240, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e8e8f0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(10, 10, 20, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

.register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(232, 232, 240, 0.6);
    font-size: 14px;
}

.login-link a {
    color: #ff6b00;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.benefits-list {
    background: rgba(10, 10, 20, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 3px solid #ff6b00;
}

.benefits-list h3 {
    color: #ff6b00;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0;
    color: rgba(232, 232, 240, 0.8);
    font-size: 14px;
}

.benefits-list li::before {
    content: "✓ ";
    color: #ff6b00;
    font-weight: bold;
    margin-right: 8px;
}

.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-gate.hidden {
    display: none;
}

.age-gate-content {
    background: rgba(26, 26, 46, 0.95);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.age-gate h1 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-gate p {
    color: rgba(232, 232, 240, 0.7);
    margin-bottom: 30px;
    font-size: 16px;
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-btn {
    padding: 15px 40px;
    border-radius: 10px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-btn.yes {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #fff;
}

.age-btn.yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.age-btn.no {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8f0;
}

.age-btn.no:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    z-index: 999;
    border-top: 1px solid rgba(255, 107, 0, 0.3);
    display: none;
}

.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    color: rgba(232, 232, 240, 0.8);
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #fff;
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8f0;
}

.premium-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    z-index: 2500;
    border: 2px solid rgba(255, 107, 0, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.premium-popup.show {
    display: block;
    animation: popupSlide 0.3s ease;
}

@keyframes popupSlide {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.premium-popup h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-popup p {
    color: rgba(232, 232, 240, 0.7);
    margin-bottom: 20px;
}

.premium-features {
    background: rgba(10, 10, 20, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.premium-features li {
    color: rgba(232, 232, 240, 0.8);
    padding: 8px 0;
    list-style: none;
}

.premium-features li::before {
    content: "⭐ ";
    color: #ff6b00;
}

.premium-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b00;
    margin: 20px 0;
}

.premium-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(232, 232, 240, 0.6);
    font-size: 24px;
    cursor: pointer;
}

.premium-close:hover {
    color: #ff6b00;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 0, 0.2);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #ff6b00;
    font-size: 18px;
    font-weight: 600;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 20px auto 10px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b00 0%, #ff8533 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-percent {
    color: rgba(232, 232, 240, 0.6);
    font-size: 14px;
    margin-top: 10px;
}

/* Custom Alert Popup */
.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    z-index: 3500;
    border: 2px solid rgba(255, 107, 0, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.custom-alert.show {
    display: block;
    animation: popupSlide 0.3s ease;
}

.custom-alert-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.custom-alert-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff6b00;
}

.custom-alert-message {
    color: rgba(232, 232, 240, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-alert-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2400;
}

.modal-overlay.show {
    display: block;
}