/* Custom styles — loaded after Tailwind build to survive rebuilds */

/* Desktop Team dropdown */
.team-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--rule);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}

.group:hover .team-dropdown {
    opacity: 1;
    visibility: visible;
}

.team-dropdown a {
    display: flex;
    flex-direction: column;
    padding: 6px 16px;
    text-decoration: none;
}

.team-dropdown a:hover {
    background: #f5f5f5;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu[data-open="true"] {
    display: block;
}

/* Mobile dropdown chevron animation */
.mobile-dropdown-chevron {
    transition: transform 0.2s;
}

/* Video thumbnails */
.video-thumb {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    display: block;
}

.video-thumb-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio fallback for older browsers */
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.video-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    opacity: 1;
    transition: opacity 0.2s;
}

.video-thumb:hover .video-thumb-overlay {
    opacity: 0.7;
}

.video-thumb-label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: var(--ink-light);
    letter-spacing: 0.05em;
}

/* Video modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    cursor: pointer;
}

.video-modal[data-open="true"] {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 80%;
    max-width: 960px;
    cursor: default;
}

.video-modal-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-modal-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 101;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
