:root {
    --primary: #1a1a1a;
    --secondary: #FF1744;
    --accent: #FF69B4;
    --bg-light: #121212;
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
}

.rule34-video-scraper-wrapper {
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
}

.rule34-video-archive {
    background: var(--bg-dark);
    padding: 2rem 1.5rem;
}

.rule34-video-filters {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.rule34-video-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.rule34-filter-group {
    flex: 1;
    min-width: 200px;
}

.rule34-filter-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rule34-filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rule34-filter-select:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(255, 23, 68, 0.2);
}

.rule34-filter-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.3);
}

.rule34-filter-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.rule34-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.rule34-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1200px) {
    .rule34-video-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .rule34-video-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .rule34-video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rule34-video-filter-form {
        flex-direction: column;
    }

    .rule34-filter-group {
        width: 100%;
    }
}

.rule34-video-card {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.rule34-video-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 12px 32px rgba(255, 23, 68, 0.3);
}

.rule34-video-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rule34-video-thumbnail,
.rule34-video-thumbnail-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.08) 0%, rgba(255, 105, 180, 0.12) 100%);
}

.rule34-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    background: #111;
}

.rule34-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rule34-video-card:hover .rule34-video-play-overlay,
.rule34-video-play-overlay {
    opacity: 1;
}

.rule34-video-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd4e0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rule34-video-thumbnail-placeholder span {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 0 0.75rem;
}

.rule34-video-card:hover .rule34-video-thumbnail img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.rule34-video-meta {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(255, 23, 68, 0.05) 100%);
}

.rule34-video-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rule34-video-meta-line {
    font-size: 0.88rem;
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    opacity: 0.85;
}

.rule34-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 23, 68, 0.2);
}

.rule34-video-tag {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.45) 0%, rgba(255, 105, 180, 0.3) 100%);
    border: 1px solid rgba(255, 23, 68, 0.55);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffd4e0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rule34-video-tag-more {
    color: #ff9ab9;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rule34-video-scraper-pagination {
    margin: 3rem 0 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.rule34-video-scraper-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.rule34-video-scraper-pagination .page-numbers li {
    display: inline-block;
}

.rule34-video-scraper-pagination .page-numbers a,
.rule34-video-scraper-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.rule34-video-scraper-pagination .page-numbers a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.rule34-video-scraper-pagination .page-numbers .current {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
}

.rule34-video-scraper-pagination .page-numbers .prev a,
.rule34-video-scraper-pagination .page-numbers .next a {
    padding: 0.75rem 1.5rem;
}

.rule34-video-scraper-notice {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.25);
    color: var(--text-primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 10px;
}

/* Tags Styling */
.rule34-video-tags-container {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 23, 68, 0.2);
}

.rule34-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rule34-video-tag {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.4) 0%, rgba(255, 105, 180, 0.3) 100%);
    border: 1px solid rgba(255, 23, 68, 0.6);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFD4E5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    pointer-events: none;
}

.rule34-video-tag:hover {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.6) 0%, rgba(255, 105, 180, 0.5) 100%);
    border-color: var(--secondary);
    color: #ffffff;
}

.rule34-video-tag-more {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* Card Link Styling */
.rule34-video-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.rule34-video-card:hover .rule34-video-card-link {
    color: var(--text-primary);
}

/* Single Video Page Styling */
.rule34-video-single {
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 0;
}

.rule34-video-single .site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rule34-video-post {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.rule34-video-post .entry-header {
    margin-bottom: 2rem;
}

.rule34-video-post .entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.rule34-video-post .entry-thumbnail {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.rule34-video-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.rule34-video-meta-block {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.08) 0%, rgba(255, 105, 180, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.rule34-video-meta-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.rule34-video-meta-item strong {
    color: var(--secondary);
    font-weight: 600;
}

.rule34-video-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.08) 0%, rgba(255, 23, 68, 0.05) 100%);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
}

.rule34-video-description {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.entry-content {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.rule34-video-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.rule34-video-footer p {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.rule34-video-footer a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rule34-video-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Video Categories and Tags */
.video-categories,
.video-tags {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(255, 23, 68, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.video-categories strong,
.video-tags strong {
    color: var(--secondary);
    font-weight: 600;
    margin-right: 1rem;
}

.video-categories a,
.video-tags a {
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3) 0%, rgba(255, 105, 180, 0.2) 100%);
    border: 1px solid rgba(255, 23, 68, 0.5);
    border-radius: 6px;
    color: #FFB6C1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.video-categories a:hover,
.video-tags a:hover {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.5) 0%, rgba(255, 105, 180, 0.4) 100%);
    border-color: var(--secondary);
    color: #ffffff;
    text-decoration: none;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }

    .rule34-video-post {
        padding: 1rem;
    }

    .rule34-video-meta-block {
        flex-direction: column;
        gap: 0.75rem;
    }
}

