* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../img/videohero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: min(600px, 90%);
    line-height: 1.6;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-section {
    background: #f8fafc;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.video-desc {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.video-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.view-count svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer {
    background-color: #f8fafc;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.path {
    color: #64748b;
    font-size: 0.875rem;
}

.path a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.path a:hover {
    color: #2563eb;
}
/* Add to your existing CSS */
.like-count,
.comment-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.like-count:hover,
.comment-count:hover {
    color: #3b82f6;
}

.like-count.liked {
    color: #3b82f6;
}

.like-count svg,
.comment-count svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: 600;
    color: #1e293b;
}

.comment-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

.comment-form {
    margin-top: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 100px;
}

.comment-form button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.comment-form button:hover {
    background: #2563eb;
}
/* Modal and Comments Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    border-radius: 1rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.close {
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.comments-container {
    padding: 1.5rem;
    overflow-y: auto;
}

.comments-list {
    margin-bottom: 1.5rem;
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: 600;
    color: #1f2937;
}

.comment-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.comment-text {
    color: #4b5563;
    line-height: 1.5;
}

.comment-form {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.user-input {
    margin-bottom: 1rem;
}

.user-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    resize: vertical;
    font-size: 0.875rem;
}

.comment-submit {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-submit:hover {
    background: #2563eb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these to your existing video-meta styles */
.comment-count {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-count:hover {
    color: #3b82f6;
}
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.view-count,
.like-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.like-count {
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-count:hover {
    color: #3b82f6;
}

.like-count.liked {
    color: #3b82f6;
}
