body {
    font-family: monospace;
    margin: 0;
    padding: 0;
    position: relative;
    color: #a9b1d6;
    background-color: #1a1b26;
    padding-bottom: 50px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        to bottom,
        #1a1b2655,
        #1a1b2655 3px,
        #24283b55 3px,
        #24283b55 5px
    );
}

header {
    background-color: #24283b;
    color: #a9b1d6;
    padding: 1rem 0;
    max-width: 850px;
    margin: 40px auto 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    text-align: left;
    padding-left: 20px !important;
}

nav ul li {
    display: inline;
    margin-right: 25px;
}

nav ul li a {
    color: #a9b1d6;
    text-decoration: none;
    font-weight: normal;
    padding-bottom: 2px;
    font-size: 14px;
}

nav ul li a:hover {
    color: #c0caf5;
    border-bottom-color: #7aa2f7;
}

.header {
    background-color: #24283b;
    color: #a9b1d6;
    padding: 0.25rem 1rem;
    max-width: 850px;
    margin: 40px auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav {
    position: relative;
    z-index: 2;
}

.nav a {
    color: #a9b1d6;
    text-decoration: none;
    font-weight: normal;
    padding-bottom: 2px;
    font-size: 14px;
    margin-left: 20px;
}

.nav a:hover {
    color: #c0caf5;
    border-bottom: 1px solid #7aa2f7;
}

.github-nav-link {
    color: #9aa5ce;
    transition: color 0.2s ease;
    position: relative;
    z-index: 0;
}

.github-nav-link:hover {
    color: #ffffff;
}

main {
    padding: 30px;
    max-width: 850px;
    margin: 20px auto;
    color: #c0caf5;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 400px;
    margin: 200px auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form {
    border: 1px solid #565f89;
    padding: 30px;
    background: #24283b;
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 20px auto;
}

h1 {
    color: #c0caf5;
}

.title {
    font-size: 24px;
    font-weight: normal;
    color: #c0caf5;
}

.title a {
    color: #c0caf5;
    text-decoration: none;
}

.title a:hover {
    color: #9ece6a;
}

.two-column-layout {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.column {
    flex: 1;
}

.column h2 {
    color: #9aa5ce;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.column h3 {
    margin: 25px 0 5px 0;
    font-size: 1em;
}

.column h3 a {
    color: #9ece6a;
    text-decoration: none;
    border-bottom: 1px solid #565f89;
}

.column h3 a:hover {
    border-bottom-color: #9ece6a;
}

.column h3.startup {
    color: #f7768e;
}

.column p {
    margin: 3px 0;
    line-height: 1.4;
}

.column p.role, .column p.date {
    color: #9aa5ce;
    font-size: 0.9em;
}

.column a {
    color: #9ece6a;
    text-decoration: none;
    border-bottom: 1px solid #565f89;
}

.column a:hover {
    border-bottom-color: #9ece6a;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #565f89;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #1a1b26;
    color: #c0caf5;
    font-family: monospace;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #7aa2f7;
}

input::placeholder, textarea::placeholder {
    color: #565f89;
}

.search {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #565f89;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: #1a1b26;
    color: #c0caf5;
    font-family: monospace;
    position: relative;
    z-index: 2;
}

.filters {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 12px;
    border: 1px solid #565f89;
    background-color: #1a1b26;
    color: #c0caf5;
    font-family: monospace;
    font-size: 16px;
    min-width: 140px;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23565f89' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.filter-row select:hover {
    border-color: #7aa2f7;
}

.filter-row select:focus {
    outline: none;
    border-color: #7aa2f7;
}

.filter-row select option {
    background-color: #1a1b26;
    color: #c0caf5;
    padding: 8px 12px;
}

.filter-row select option:hover {
    background-color: #24283b;
}

.filter-row select option:checked {
    background-color: #414868;
}

button {
    width: 100%;
    padding: 12px;
    background: #414868;
    color: #c0caf5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: monospace;
}

button:hover {
    background: #565f89;
}

button:disabled {
    background: #24283b;
    color: #565f89;
    cursor: not-allowed;
}

.cancel {
    background: #1a1b26 !important;
    color: #c0caf5 !important;
    border: 1px solid #565f89 !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
    width: auto !important;
    padding: 12px 24px !important;
}

.cancel:hover {
    background: #24283b !important;
}

.hidden {
    display: none;
}

.video-player {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.video-player video {
    max-width: 100%;
    height: auto;
}

.video-info {
    margin-top: 15px;
    text-align: left;
    color: #c0caf5;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.video-card {
    border: 1px solid #565f89;
    padding: 15px;
    cursor: pointer;
    background: #24283b;
}

.video-card:hover {
    background: #414868;
}

.video-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #c0caf5;
}

.video-meta {
    font-size: 14px;
    color: #9aa5ce;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #9aa5ce;
    position: relative;
    z-index: 2;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #c0caf5;
}

textarea {
    height: 100px;
    resize: vertical;
}

.file-upload {
    border: 2px dashed #565f89;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: #1a1b26;
    color: #a9b1d6;
}

.file-upload:hover {
    border-color: #7aa2f7;
}

.file-info {
    padding: 15px;
    border: 1px solid #565f89;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #24283b;
    color: #c0caf5;
}

.progress {
    width: 100%;
    height: 4px;
    background: #414868;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: #7aa2f7;
    transition: width 0.3s;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

#error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f7768e;
    color: #1a1b26;
    padding: 15px;
    z-index: 1000;
    border-radius: 4px;
}

#success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #9ece6a;
    color: #1a1b26;
    padding: 15px;
    z-index: 1000;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
    }

    .modal {
        padding: 0;
    }

    .modal-content {
        width: 95% !important;
        height: 95vh !important;
        margin: 2.5vh auto !important;
        max-width: none !important;
    }

    .modal-body {
        padding: 10px;
    }

    .modal-header {
        padding: 10px 15px;
    }

    .modal-buttons {
        padding: 10px 15px;
    }

    .container {
        margin: 100px auto;
        padding: 20px;
    }

    .header {
        margin: 20px auto 0;
        padding: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 27, 38, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #24283b;
    margin: auto;
    padding: 0;
    border: 1px solid #565f89;
    width: 80%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
    padding: 15px 20px;
    background-color: #1a1b26;
    border-bottom: 1px solid #565f89;
}

.modal-header h2 {
    color: #c0caf5;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.modal-header p {
    color: #a9b1d6;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-size: 0.9em;
}

#modal-custom-description {
    color: #a9b1d6;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #565f89;
}

#modal-custom-description h3 {
    color: #7aa2f7;
    margin: 0 0 10px 0;
    font-size: 1em;
}

#modal-custom-description ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#modal-custom-description li {
    color: #a9b1d6;
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

#modal-custom-description li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #565f89;
}

.modal-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.slideshow-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container img,
.slideshow-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    max-width: 800px;
    max-height: 450px;
}

.close {
    color: #565f89;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -5px;
}

.close:hover {
    color: #7aa2f7;
}

.modal-buttons {
    flex-shrink: 0;
    margin: 0;
    padding: 15px 20px;
    background-color: #1a1b26;
    border-top: 1px solid #565f89;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-buttons {
    display: flex;
    gap: 15px;
}

.modal-buttons a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #414868;
    color: #c0caf5;
    text-decoration: none;
    border-radius: 4px;
    border: none;
}

.modal-buttons a:hover {
    background-color: #565f89;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-buttons button {
    padding: 5px 10px;
    background-color: #414868;
    color: #c0caf5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-buttons button:hover {
    background-color: #565f89;
}

#slideCounter {
    color: #9aa5ce;
    font-size: 14px;
    margin: 0 5px;
}

.slideshow-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slideshow-nav button {
    padding: 8px 16px;
    background-color: #414868;
    color: #c0caf5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slideshow-nav button:hover {
    background-color: #565f89;
}

.github-activity {
    margin-top: 40px;
    padding: 20px;
    background: rgba(36, 40, 59, 0.5);
    border-radius: 8px;
}

.github-activity h2 {
    margin-bottom: 15px;
}

.github-activity img {
    border-radius: 4px;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.modal-description {
    display: block;
}

@media (max-width: 768px) {
    .modal-description {
        display: none;
    }
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.title-content {
    flex: 1;
}

.ascii-art {
    color: rgb(255, 255, 255);
    font-family: "Courier New";
    font-size: 3px;
    line-height: 3.5px;
    white-space: pre;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    word-spacing: 0;
    display: block;
    transform: none;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .title-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .ascii-art {
        transform: none;
        margin-bottom: 20px;
        margin-top: 0px;
        font-size: 4px;
        line-height: 4.5px;
    }
}

.github-icon, .website-icon {
    display: inline;
}

@media (max-width: 768px) {
    .github-icon, .website-icon {
        display: none;
    }
}

/* Watch Page Styles */
.video-player-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1b26;
    min-height: calc(100vh - 80px);
}

.video-player-container {
    background: #1a1b26;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video-player-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

.video-info-panel {
    background: #24283b;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-header h1 {
    color: #c0caf5;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-metadata-grid {
    margin-bottom: 20px;
}

.metadata-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-section {
    padding: 15px;
    background: #1a1b26;
    border-radius: 6px;
    border: 1px solid #565f89;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-text {
    color: #a9b1d6;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #414868;
}

.rate-label {
    color: #9aa5ce;
    font-size: 0.85rem;
}

.your-rating-text {
    color: #7aa2f7;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label {
    color: #9aa5ce;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 70px;
}

.detail-value {
    color: #c0caf5;
    font-size: 0.9rem;
}

.genre-tag {
    background: #414868;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-description p {
    color: #a9b1d6;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.video-actions {
    border-top: 1px solid #414868;
    padding-top: 20px;
}



/* Mobile responsiveness for watch page */
@media (max-width: 768px) {
    .video-player-page {
        padding: 10px;
    }
    
    .video-info-panel {
        padding: 15px;
    }
    
    .video-header h1 {
        font-size: 1.4rem;
    }
    
    .video-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .metadata-section {
        gap: 15px;
    }
    
    .rating-section {
        padding: 12px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
    }
}