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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #222;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.modal-icon { margin-bottom: 16px; line-height: 1; }

.modal-content h2 {
    color: #c62828;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}
.modal-content p {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 14px;
}
.modal-sub { font-size: 12px; color: #999 !important; }

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}
.modal-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.modal-btn.primary {
    background: #1a1a2e;
    color: #fff;
    border: none;
}
.modal-btn.primary:hover { background: #2d2d44; }
.modal-btn.secondary {
    background: #fff;
    color: #c62828;
    border: 1px solid #ddd;
}
.modal-btn.secondary:hover { background: #fafafa; }

/* Report Modal */
.report-modal { text-align: left; max-width: 460px; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.modal-header h2 { color: #222; font-size: 16px; }

.close-btn {
    background: none; border: none;
    font-size: 22px; cursor: pointer; color: #999;
}
.close-btn:hover { color: #333; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-weight: 500; color: #333; font-size: 13px;
}
.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a2e;
}
.submit-report-btn {
    width: 100%;
    padding: 11px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.submit-report-btn:hover { background: #b71c1c; }

/* ── Top Navigation ── */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    background: #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left { display: flex; align-items: center; }
.logo { display: flex; align-items: center; }
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
}

.nav-center { flex: 1; max-width: 380px; margin: 0 24px; }
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    padding: 0 14px;
    height: 36px;
    gap: 8px;
}
.search-bar input {
    border: none; background: none; outline: none;
    flex: 1; font-size: 13px; color: #fff;
}
.search-bar input::placeholder { color: rgba(255,255,255,.45); }
.search-icon { color: rgba(255,255,255,.5); display: flex; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.install-btn {
    background: #fff;
    color: #1a1a2e;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.install-btn:hover { background: #eee; }

.lang-dropdown {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-link {
    color: #ff8a80;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}
.report-link:hover { color: #ff5252; }
.report-link svg { stroke: currentColor; }

.user-avatar {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 500; font-size: 13px;
}

/* ── Ad Banner ── */
.ad-banner {
    background: #e8f5e9;
    display: flex;
    justify-content: center;
}
.banner-link { display: block; width: 100%; max-width: 1100px; }
.banner-img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

/* ── Main Content ── */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    margin-bottom: 0;
}

.telegram-section { display: flex; align-items: center; gap: 12px; }

.tg-logo {
    width: 40px; height: 40px;
    object-fit: contain;
    display: block;
}

.telegram-info { display: flex; flex-direction: column; gap: 1px; }

.username { font-weight: 600; font-size: 15px; color: #222; }

.telegram-link {
    font-size: 14px;
    color: #0088cc;
    font-weight: 600;
    text-decoration: none;
}
.telegram-link:hover { text-decoration: underline; }

.verified-badge {
    font-size: 11px;
    color: #43a047;
    font-weight: 500;
}

.view-more-btn {
    background: #fff;
    border: 1px solid #1a1a2e;
    color: #1a1a2e;
    padding: 7px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.view-more-btn:hover { background: #1a1a2e; color: #fff; }

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

.share-btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 170px;
    text-decoration: none;
}
.share-btn .sub-text {
    font-size: 10px;
    opacity: .65;
    margin-top: 2px;
}
.share-btn.outline {
    background: #fff;
    border: 1px solid #1a1a2e;
    color: #1a1a2e;
}
.share-btn.outline:hover { background: #f5f5f5; }
.share-btn.filled {
    background: #1a1a2e;
    border: 1px solid #1a1a2e;
    color: #fff;
}
.share-btn.filled:hover { background: #2d2d44; }

/* Warning */
.warning-message {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 10px 16px;
    margin: 0;
    border-left: 3px solid #f9a825;
}
.warning-message p {
    color: #e65100;
    font-size: 12px;
    line-height: 1.5;
}

/* Tabs */
.tabs {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 0 16px;
}
.tab {
    background: none; border: none;
    padding: 12px 20px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    position: relative;
    font-weight: 400;
}
.tab:hover { color: #444; }
.tab.active { color: #1a1a2e; font-weight: 500; }
.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: #1a1a2e;
}

/* File Section */
.file-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 16px 20px;
    margin-bottom: 16px;
}

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

.all-file {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    padding-left: 10px;
    border-left: 3px solid #1a1a2e;
}

.file-table {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 2px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 36px 1fr 140px 80px 100px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}
.table-row {
    display: grid;
    grid-template-columns: 36px 1fr 140px 80px 100px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.table-row.clickable { cursor: pointer; }
.table-row.clickable:hover { background: #fafafa; }

.col-checkbox { display: flex; align-items: center; }
.col-checkbox input { width: 16px; height: 16px; cursor: pointer; accent-color: #1a1a2e; }

.table-row .col-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.folder-icon { display: flex; align-items: center; }
.file-name { font-size: 14px; color: #222; font-weight: 400; }
.col-date { font-size: 13px; color: #999; }
.col-size { text-align: left; }
.file-size { font-weight: 500; color: #555; font-size: 13px; }

.col-actions { display: flex; gap: 4px; }
.icon-btn {
    background: none; border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    color: #888;
    display: flex; align-items: center;
}
.icon-btn:hover { background: #f0f0f0; color: #444; }
.icon-btn.report-btn:hover { background: #ffebee; color: #c62828; }

/* ── Hot Section ── */
.hot-section {
    background: #fff;
    padding: 16px 20px;
    border: 1px solid #e8e8e8;
}

.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.hot-title { display: flex; align-items: center; gap: 6px; }

.hot-text {
    font-weight: 600;
    font-size: 15px;
    color: #c62828;
}
.recently-text {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

.hot-filters { display: flex; gap: 6px; }
.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 400;
    color: #666;
}
.filter-btn:hover { border-color: #aaa; }
.filter-btn.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.video-source {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.video-thumb {
    aspect-ratio: 9/16;
    border-radius: 4px;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
    cursor: pointer;
}
.video-thumb:hover { opacity: .9; }

.thumb-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    z-index: 1;
}
.thumb-placeholder {
    width: 100%; height: 100%;
    background: #e0e0e0;
    position: absolute; top: 0; left: 0;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.15);
    opacity: 0;
    transition: opacity .15s;
    z-index: 2;
}
.video-thumb:hover .video-overlay { opacity: 1; }

.play-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #222;
    font-size: 13px;
}

.video-duration {
    position: absolute;
    bottom: 28px; right: 6px;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    z-index: 3;
}
.video-views {
    position: absolute;
    bottom: 6px; left: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    z-index: 3;
}

.view-more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #888;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid #e0e0e0;
}
.view-more-card:hover { background: #eee; color: #555; }

/* ── Footer ── */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.5);
    padding: 16px 24px;
    margin-top: 32px;
}
.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.footer-bottom p { font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .top-nav { flex-wrap: wrap; gap: 12px; padding: 10px 16px; height: auto; }
    .nav-center { order: 3; width: 100%; max-width: none; margin: 8px 0 0; }
    .action-bar { flex-direction: column; gap: 16px; }
    .share-buttons { flex-direction: column; width: 100%; }
    .share-btn { width: 100%; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .table-header, .table-row { grid-template-columns: 36px 1fr 80px; }
    .col-date, .col-actions { display: none; }
}
