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

body {
    font-family: "Roboto", Arial, sans-serif;
    background: #0f0f0f;
    color: #fff;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #212121;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-bar {
    display: flex;
    border: 1px solid #303030;
    border-radius: 40px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    background: #121212;
    border: none;
    color: white;
    outline: none;
}

.search-btn {
    background: #303030;
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.upload-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 10px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #212121;
    padding: 10px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    position: sticky;
    top: 70px;
}

.sidebar-item {
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: #3f3f3f;
}

.sidebar-title {
    padding: 12px;
    font-size: 12px;
    color: #aaa;
    font-weight: bold;
    margin-top: 10px;
}

/* Content */
.content {
    flex: 1;
    padding: 20px;
}

.filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.chip {
    background: #3f3f3f;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.chip:hover,
.chip.active {
    background: #fff;
    color: #000;
}

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

.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.video-thumbnail.user-video {
    background: #000;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info-card {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.video-details h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.video-details p {
    font-size: 12px;
    color: #aaa;
}

/* Upload Modal */
.upload-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #212121;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input[type="file"],
.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #3f3f3f;
    border: none;
    color: white;
    border-radius: 5px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-btn:hover {
    color: white;
}

/* Player Modal */
.player-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
}

.player-content {
    background-color: #0f0f0f;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
}

.close-player {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.close-player:hover {
    color: white;
}

.video-player-container {
    margin-top: 40px;
}

.video-player {
    width: 100%;
    height: 600px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.haha {
    font-size: 120px;
    color: white;
    font-family: Arial, sans-serif;
}

.video-info {
    padding: 20px 0;
}

.video-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-stats {
    color: #aaa;
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #3f3f3f;
    border-bottom: 1px solid #3f3f3f;
}

.video-actions button {
    background: #3f3f3f;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.video-actions button:hover {
    background: #5f5f5f;
}

.comments-section {
    padding: 20px 0;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-input-box input {
    flex: 1;
    padding: 10px;
    background: #3f3f3f;
    border: none;
    border-bottom: 2px solid #606060;
    color: white;
    font-size: 14px;
}

.comment-input-box input:focus {
    outline: none;
    border-bottom-color: #00aaff;
}

.comment-input-box button {
    padding: 10px 20px;
    background: #065fd4;
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

.comment-input-box button:hover {
    background: #0873f5;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid #3f3f3f;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-text {
    color: #ddd;
}

#pageTitle {
    margin-bottom: 20px;
    font-size: 28px;
}

.channel-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #3f3f3f;
    margin-bottom: 10px;
}

.channel-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.channel-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.channel-details h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.channel-details p {
    font-size: 12px;
    color: #aaa;
}

.subscribe-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.subscribe-button:hover {
    background: #cc0000;
}

.subscribe-button.subscribed {
    background: #3f3f3f;
    color: white;
}

.subscribe-button.subscribed:hover {
    background: #5f5f5f;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #3f3f3f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5f5f5f;
}
