* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #0e0e10;
    color: #efeff1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Nav */
.navbar {
    background: #18181b;
    border-bottom: 1px solid #27272a;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-white {
    color: #ffffff;
}

.logo-badge {
    background: #ff9000;
    color: #000000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Search Bar */
.search-box {
    display: flex;
    width: 100%;
    max-width: 480px;
    background: #27272a;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid transparent;
}

.search-box:focus-within {
    border-color: #ff9000;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.search-box button {
    background: #3f3f46;
    border: none;
    color: #a1a1aa;
    padding: 0 18px;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    background: #ff9000;
    color: #000000;
}

/* Main Area */
.main-content {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 40px;
    width: 100%;
}

.section-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #ff9000;
    padding-left: 10px;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

/* Video Card */
.video-card {
    background: #18181b;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #27272a;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-views {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #d4d4d8;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    color: #e4e4e7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loader */
.loader-box {
    text-align: center;
    padding: 60px 0;
    color: #a1a1aa;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #27272a;
    border-top: 3px solid #ff9000;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}

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

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

.btn {
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #ff9000;
    color: #000000;
}

.btn-primary:hover {
    background: #ffa733;
}

.btn-outline {
    background: #27272a;
    color: #efeff1;
}

.btn-outline:hover:not(:disabled) {
    background: #3f3f46;
}

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

.current-page {
    color: #a1a1aa;
    font-size: 0.95rem;
}

/* Modal Player */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.modal-window {
    background: #18181b;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #27272a;
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #27272a;
}

.modal-video-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-container video {
    width: 100%;
    height: 100%;
    outline: none;
}

.player-spinner {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-bottom {
    padding: 14px 18px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #27272a;
}

.btn-download {
    background: #22c55e;
    color: #ffffff;
}

.btn-download:hover {
    background: #16a34a;
}

/* Footer */
.footer {
    background: #18181b;
    border-top: 1px solid #27272a;
    padding: 24px 0;
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
}
