* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    padding-bottom: 60px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #111;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 18px;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

.video-card {
    margin-bottom: 20px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.video-card video {
    width: 100%;
    display: block;
    background: #000;
    max-height: 80vh;
    object-fit: contain;
}

.video-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-info .user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-info .user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.video-info .actions {
    display: flex;
    gap: 15px;
}

.video-info .actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-info .actions button span {
    font-size: 12px;
}

.liked {
    color: #ff0050 !important;
}

#feed {
    padding: 10px;
}

#profile-info {
    text-align: center;
    padding: 20px;
}

#profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #ff0050;
}

#stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

#user-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

#user-videos video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #000;
}

form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #222;
    border-radius: 10px;
}

form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

form button {
    background: #ff0050;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#upload-progress {
    margin: 10px auto;
    display: block;
}

@media (max-width: 600px) {
    header h1 { font-size: 16px; }
    .video-info .actions button { font-size: 18px; }
    #user-videos { grid-template-columns: repeat(3, 1fr); }
}