/* ========= Base Reset & Theme ========= */
:root {
    --bg: #0d0d14;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-modal: #1a1a26;
    --accent: #00c9a7;
    --accent-hover: #00e8c0;
    --accent-dim: rgba(0,201,167,0.15);
    --danger: #ff4757;
    --danger-hover: #ff6b7a;
    --text: #e8e8f4;
    --text-muted: #7878a0;
    --text-dim: #555570;
    --border: #2a2a3a;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Noto Sans JP', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ========= Layout ========= */
.gf-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ========= Header / Nav ========= */
.gf-header {
    background: rgba(13,13,20,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gf-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gf-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text) !important;
    white-space: nowrap;
}

.gf-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #0066ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 1rem;
}

.gf-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.gf-nav-link {
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.gf-nav-link:hover, .gf-nav-link.active {
    color: var(--text);
    background: var(--accent-dim);
}

.gf-nav-link.active { color: var(--accent) !important; }

.gf-nav-submit {
    background: var(--accent);
    color: #000 !important;
    font-weight: 600;
    margin-left: 0.5rem;
}

.gf-nav-submit:hover { background: var(--accent-hover); color: #000 !important; }

.gf-menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ========= Main Content ========= */
.gf-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========= Page Header ========= */
.gf-page-header { margin-bottom: 2rem; }
.gf-page-title { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.gf-page-desc { color: var(--text-muted); margin-top: 0.4rem; }

/* ========= Grid ========= */
.gf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ========= Card ========= */
.gf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.gf-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

/* Rank badge */
.gf-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.gf-rank-badge.rank-1 { background: var(--gold); color: #000; }
.gf-rank-badge.rank-2 { background: var(--silver); color: #000; }
.gf-rank-badge.rank-3 { background: var(--bronze); color: #fff; }
.gf-rank-badge.rank-other { background: rgba(0,0,0,0.7); color: var(--text-muted); border: 1px solid var(--border); }

/* Thumbnail */
.gf-card-thumb-link { display: block; }

.gf-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a12;
    overflow: hidden;
}

.gf-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* === MOSAIC / PIXELATION EFFECT === */
    filter: blur(8px) contrast(1.05);
    transform: scale(1.1);
    transform-origin: center center;
    image-rendering: auto;
    pointer-events: none;
    user-select: none;
}

.gf-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a18, #14142a);
}

.gf-thumb-icon { font-size: 3rem; opacity: 0.3; }

.gf-mosaic-label {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.5);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

/* Card Body */
.gf-card-body { padding: 0.9rem 1rem 1rem; }

.gf-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gf-meta-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.gf-meta-icon { font-size: 0.8rem; }

.gf-card-date { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.75rem; }

.gf-card-actions { display: flex; gap: 0.5rem; }

/* ========= Buttons ========= */
.gf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
}

.gf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gf-btn-primary {
    background: var(--accent);
    color: #000 !important;
    flex: 1;
}
.gf-btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.gf-btn-secondary {
    background: var(--border);
    color: var(--text);
}
.gf-btn-secondary:hover:not(:disabled) { background: #333348; }

.gf-btn-danger {
    background: var(--danger);
    color: #fff !important;
}
.gf-btn-danger:hover:not(:disabled) { background: var(--danger-hover); }

.gf-btn-report {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}
.gf-btn-report:hover { border-color: var(--danger); color: var(--danger); }

.w-100 { width: 100% !important; }
.mt-3 { margin-top: 0.75rem !important; }

/* ========= Loading / Empty ========= */
.gf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
    color: var(--text-muted);
    gap: 1rem;
}

.gf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
    gap: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.gf-empty-icon { font-size: 4rem; opacity: 0.3; }

/* ========= Pagination ========= */
.gf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.gf-page-info { color: var(--text-muted); font-size: 0.9rem; }

/* ========= Modal ========= */
.gf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gf-modal {
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.gf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.gf-modal-header h5 { font-size: 1rem; font-weight: 700; color: var(--text); }

.gf-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}
.gf-modal-close:hover { color: var(--text); }

.gf-modal-body { padding: 1.25rem; }
.gf-modal-desc { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }

.gf-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gf-reason-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.gf-reason-btn:hover { border-color: var(--accent); color: var(--accent); }
.gf-reason-btn.selected { border-color: var(--danger); background: rgba(255,71,87,0.1); color: var(--danger); }

.gf-field-error { color: var(--danger); font-size: 0.82rem; margin-bottom: 0.5rem; }

.gf-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* ========= Alerts ========= */
.gf-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gf-alert-success { background: rgba(0,201,167,0.15); border: 1px solid var(--accent); color: var(--accent); }
.gf-alert-error { background: rgba(255,71,87,0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ========= Fetch Status ========= */
.gf-fetch-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.gf-spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,201,167,0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ========= Submit Page ========= */
.gf-submit-container { max-width: 600px; }

.gf-submit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.gf-form-group { margin-bottom: 1.25rem; }

.gf-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.gf-required { color: var(--danger); }

.gf-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.gf-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.gf-input:disabled { opacity: 0.5; }
.gf-input::placeholder { color: var(--text-dim); }

.gf-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.55;
}

.gf-turnstile-container {
    min-height: 65px;
    display: flex;
    align-items: center;
}

.gf-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.gf-hint code { background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; font-size: 0.82rem; }

.gf-submit-info {
    background: rgba(0,201,167,0.06);
    border: 1px solid rgba(0,201,167,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.gf-submit-info h4 { font-size: 0.88rem; color: var(--accent); margin-bottom: 0.5rem; }
.gf-submit-info ul { padding-left: 1.2rem; }
.gf-submit-info li { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.2rem; }

/* ========= Footer ========= */
.gf-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.gf-footer-note { margin-top: 0.25rem; }

.gf-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-top: 0.75rem;
}

.gf-footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s;
}

.gf-footer-links a:hover { color: var(--accent); }

/* ========= Legal Pages ========= */
.gf-legal {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.gf-legal-hero {
    margin-bottom: 2rem;
}

.gf-legal-hero h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.gf-legal-hero .gf-legal-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.gf-legal section {
    margin-bottom: 2rem;
}

.gf-legal h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 0.7rem;
    margin-bottom: 0.75rem;
}

.gf-legal p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.65rem;
}

.gf-legal ul, .gf-legal ol {
    padding-left: 1.4rem;
    margin-bottom: 0.65rem;
}

.gf-legal li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.2rem;
}

.gf-legal strong {
    color: var(--text);
    font-weight: 600;
}

.gf-legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gf-legal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.gf-legal-box p { margin-bottom: 0; }

.gf-legal-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.gf-legal-nav a {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.gf-legal-nav a:hover,
.gf-legal-nav a.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========= Error UI ========= */
#blazor-error-ui {
    display: none;
    background: var(--danger);
    color: #fff;
    padding: 0.75rem 1.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.blazor-error-boundary { background: var(--danger); padding: 1rem; color: #fff; border-radius: var(--radius-sm); }

/* ========= Card Thumbnail Button ========= */
.gf-card-thumb-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.gf-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    pointer-events: none;
}

.gf-thumb-overlay-icon { font-size: 1.6rem; }

.gf-card-thumb-btn:hover .gf-thumb-overlay {
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.9);
}

/* ========= X Badge on Card ========= */
.gf-card-x-badge {
    margin-bottom: 0.4rem;
}

.gf-card-x-badge a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #1d9bf0;
    background: rgba(29,155,240,0.1);
    border: 1px solid rgba(29,155,240,0.25);
    border-radius: 20px;
    padding: 2px 8px;
    transition: background 0.15s;
}

.gf-card-x-badge a:hover { background: rgba(29,155,240,0.2); }

/* ========= Detail Modal ========= */
.gf-detail-modal {
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.gf-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 2rem);
}

.gf-detail-body { padding: 1.25rem; }

/* Thumbnail grid in detail modal */
.gf-detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.gf-detail-thumb-item {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.gf-detail-no-thumb {
    aspect-ratio: unset;
    padding: 2rem;
    border-radius: var(--radius-sm);
    background: #0a0a12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Metadata grid */
.gf-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.gf-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gf-detail-meta-icon { font-size: 1.3rem; opacity: 0.6; }
.gf-detail-meta-label { font-size: 0.72rem; color: var(--text-muted); }
.gf-detail-meta-val   { font-size: 0.9rem;  font-weight: 600; color: var(--text); }

/* X source section */
.gf-detail-x-source {
    background: rgba(29,155,240,0.06);
    border: 1px solid rgba(29,155,240,0.2);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gf-detail-x-icon { font-size: 1.2rem; color: #1d9bf0; }

.gf-detail-x-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gf-detail-x-author {
    font-weight: 700;
    color: #1d9bf0;
    font-size: 0.9rem;
}

.gf-detail-x-link {
    font-size: 0.85rem;
    color: #1d9bf0;
    border: 1px solid rgba(29,155,240,0.4);
    border-radius: 20px;
    padding: 2px 10px;
}

.gf-detail-x-link:hover { background: rgba(29,155,240,0.1); }

.gf-detail-x-video-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.gf-detail-video {
    width: 100%;
    max-height: 240px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

/* Detail actions */
.gf-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

/* ========= X Section in Submit ========= */
.gf-x-section {
    background: rgba(29,155,240,0.05);
    border: 1px solid rgba(29,155,240,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.gf-x-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d9bf0;
    margin-bottom: 0.75rem;
}

.gf-x-logo { font-size: 1.1rem; }
.gf-x-logo-sm { font-size: 0.9rem; }

.gf-x-input-row {
    display: flex;
    gap: 0.5rem;
}

.gf-x-input-row .gf-input { flex: 1; }

.gf-btn-x {
    background: #1d9bf0;
    color: #fff !important;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.18s;
    min-width: 60px;
    justify-content: center;
}

.gf-btn-x:hover:not(:disabled) { background: #1a8cd8; }
.gf-btn-x:disabled { opacity: 0.5; cursor: not-allowed; }

.gf-x-result {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(29,155,240,0.15);
}

.gf-x-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.gf-x-handle { color: var(--text-muted); font-weight: 400; }

.gf-x-found-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.gf-x-not-found   { font-size: 0.82rem; color: var(--danger); margin-top: 0.5rem; }

.gf-x-url-list { display: flex; flex-direction: column; gap: 0.3rem; }

.gf-x-url-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    word-break: break-all;
}

.gf-x-url-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.gf-x-url-btn.selected { border-color: var(--accent); background: var(--accent-dim); font-weight: 600; }

/* ========= Period Tabs ========= */
.gf-period-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gf-period-tab {
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.gf-period-tab:hover { border-color: var(--accent); color: var(--text); }

.gf-period-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ========= Detail Modal: Related Content ========= */
.gf-detail-related {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.gf-detail-related-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d9bf0;
    margin-bottom: 0.75rem;
}

.gf-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
}

.gf-detail-related-item {
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.15s, transform 0.15s;
}

.gf-detail-related-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gf-detail-related-thumb {
    aspect-ratio: 16 / 9;
}

.gf-detail-related-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--bg-card);
}

/* ========= Bulk Register Result ========= */
.gf-bulk-results {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.gf-bulk-results-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.gf-bulk-result-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gf-bulk-result-item.success { color: var(--accent); }
.gf-bulk-result-item.fail    { color: var(--danger); }

.gf-bulk-url {
    flex: 1;
    word-break: break-all;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.gf-bulk-msg { font-size: 0.75rem; white-space: nowrap; }

/* ========= Submit Divider ========= */
.gf-submit-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.gf-submit-divider::before,
.gf-submit-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========= X Section desc ========= */
.gf-x-section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

/* ========= Report: not-found reason ========= */
.gf-reason-btn.reason-notfound {
    border-color: rgba(255,71,87,0.3);
    color: var(--danger);
}

.gf-reason-btn.reason-notfound.selected {
    border-color: var(--danger);
    background: rgba(255,71,87,0.12);
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
    .gf-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .gf-nav.open { display: flex; }
    .gf-nav-link { padding: 0.6rem 1rem; }
    .gf-menu-toggle { display: block; margin-left: auto; }
    .gf-header-inner { position: relative; }
    .gf-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .gf-main { padding: 1.5rem 1rem; }
}

/* ========= Notice Banner ========= */
.gf-notice {
    display: flex;
    gap: 1rem;
    background: rgba(255, 200, 80, 0.05);
    border: 1px solid rgba(255, 200, 80, 0.25);
    border-left: 3px solid #f5c842;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.gf-notice-icon {
    font-size: 1.2rem;
    color: #f5c842;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.gf-notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.gf-notice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f5c842;
    letter-spacing: 0.02em;
}

.gf-notice-text {
    font-size: 0.83rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.gf-notice-text strong {
    color: var(--text);
    font-weight: 600;
}

.gf-notice-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gf-notice-link:hover { color: var(--accent-hover); }

.gf-btn-notice {
    margin-top: 0.75rem;
    background: rgba(245, 200, 66, 0.12);
    color: #f5c842;
    border: 1px solid rgba(245, 200, 66, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.gf-btn-notice:hover {
    background: rgba(245, 200, 66, 0.22);
}

.gf-notice-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gf-notice-list li {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.gf-notice-list em {
    font-style: normal;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========= Ad Banner ========= */
.gf-ad-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    overflow: hidden;
}

.gf-ad-banner iframe {
    max-width: 100%;
    display: block;
}

@media (max-width: 480px) {
    .gf-grid { grid-template-columns: 1fr; }
    .gf-page-title { font-size: 1.4rem; }
}
