/* Video Top Page Styles */
/* Base Layout */
body {
    background-color: #202020;
    color: #fff;
}
.video-top-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Section */
.video-search-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}
.video-search-form {
    display: flex !important;
    width: 100%;
    max-width: 600px;
    align-items: stretch !important;
}
.video-search-field {
    flex-grow: 1;
    height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid #444;
    border-radius: 20px 0 0 20px;
    font-size: 16px;
    background: #121212;
    color: #fff;
    outline: none;
    box-sizing: border-box !important;
}
.video-search-submit {
    height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid #444;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
.video-search-submit svg {
    width: 20px !important;
    height: 20px !important;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* Video Card */
.video-card {
    display: flex;
    flex-direction: column;
}
.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-thumbnail:hover img {
    transform: scale(1.1);
}

/* Video Actions (Hover Overlay) */
.video-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.video-thumbnail:hover .video-actions {
    opacity: 1;
}
.btn-video-action {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.btn-video-action:hover {
    background: rgba(255, 255, 255, 0.2);
}
.btn-video-action.active {
    color: #ffff00;
}
.btn-favorite.active {
    color: #ff4e45;
}

/* 1. ログイン状況メッセージの非表示（確実版） */
.logged-in-as {
    display: none !important;
}

/* 2. サムネイルのホバーズーム（確実版） */
.video-thumbnail {
    overflow: hidden; /* はみ出し防止 */
}
.video-thumbnail img {
    transition: transform 0.3s ease-out !important;
}
.video-thumbnail:hover img {
    transform: scale(1.1) !important;
}

/* Video Info */
.video-info {
    padding: 12px 0;
}
.video-title {
    font-size: 17.5px;
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.video-title a {
    color: #fff;
    text-decoration: none;
}
.video-title a:hover {
    text-decoration: underline;
}
.video-meta {
    font-size: 13px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Section Headings - Green Band Design */
.section-title {
    background-color: #10b981 !important; /* hilu green */
    color: #fff !important;
    padding: 12px 20px !important;
    font-size: 20px !important;
    margin: 40px 0 20px !important;
    border: none !important;
    border-radius: 4px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Simple Membership Login Form Centering */
.swpm-login-widget-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 40px auto !important;
    text-align: center !important;
}
.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"] {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 12px !important;
    font-size: 16px !important;
}
.swpm-login-widget-form .swpm-login-submit {
    width: 100% !important;
    padding: 12px !important;
}
.swpm-login-widget-form label,
.swpm-login-widget-form .swpm-label,
.swpm-login-widget-form .swpm-rememberme-label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
    color: #fff !important;
}
.swpm-login-form-pw-reset-link a,
.swpm-password-reset-link a {
    color: #fff !important;
}

/* Pagination */
.video-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}
.video-pagination .page-numbers {
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
.video-pagination .page-numbers.current {
    background: #10b981;
}

/* Single Video Page */
.video-single-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.video-single-actions .btn-video-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    background: #222;
    border: 1px solid #333;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}
.video-single-actions .btn-video-action:hover {
    background: #333;
    border-color: #444;
}
.video-single-actions .btn-video-action.active.btn-like {
    color: #3b82f6; /* Blue for Like */
    border-color: #3b82f6;
}
.video-single-actions .btn-video-action.active.btn-favorite {
    color: #ef4444; /* Red for Favorite */
    border-color: #ef4444;
}
.video-single-actions .btn-video-action.active.btn-watch-later {
    color: #10b981; /* Green for Watch Later */
    border-color: #10b981;
}
.hilu-like-count {
    font-weight: 700;
    margin-right: 2px;
}
.btn-back-to-list {
    display: inline-block;
    padding: 8px 20px;
    background: #10b981;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    margin-left: auto;
}
.btn-back-to-list:hover {
    background: #0ea5e9;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-single-actions {
        justify-content: center;
    }
    .btn-back-to-list {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* My Profile Page */
.my-profile-section {
    margin-bottom: 40px;
}
.my-profile-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #10b981;
}
.no-videos-message {
    color: #aaa;
    font-size: 15px;
}

/* Video Duration Badge */
.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
}

/* Single Video Actions */
.single-video-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #333;
}
.single-video-actions .btn-video-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.single-video-actions .btn-video-action svg {
    display: block;
}
.single-video-actions .btn-video-action:hover {
    background: #222;
    color: #fff;
    border-color: #444;
    transform: translateY(-2px);
}
.single-video-actions .btn-video-action.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}
.single-video-actions .btn-video-action.active .favorite-icon-empty {
    fill: #fff;
}
