@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* tc-scoped:tc-wp-tool-root */

.tc-wp-tool-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flow-root;
  isolation: isolate;
  position: relative;
}
.tc-wp-tool-root img,
.tc-wp-tool-root video,
.tc-wp-tool-root svg,
.tc-wp-tool-root iframe {
  max-width: 100%;
  height: auto;
}

.tc-wp-tool-root{
    --rpv-primary-color: #1f2937;
    --rpv-primary-light: #374151;
    --rpv-secondary-color: #0f766e;
    --rpv-secondary-light: #14b8a6;
    --rpv-accent-color: #ff4500;
    --rpv-accent-light: #ff7a45;
    --rpv-success-color: #15803d;
    --rpv-success-light: #22c55e;
    --rpv-danger-color: #dc2626;
    --rpv-danger-light: #b91c1c;
    --rpv-progress-color: #ff4500;
    --rpv-progress-bg: #ffe8df;
    --rpv-bg-primary: #fff7f3;
    --rpv-bg-secondary: #ffffff;
    --rpv-bg-tertiary: #f1f5f9;
    --rpv-glass-bg: rgba(255, 255, 255, 0.78);
    --rpv-glass-border: rgba(255, 69, 0, 0.16);
    --rpv-text-primary: #172033;
    --rpv-text-secondary: #3f4b5f;
    --rpv-text-muted: #64748b;
    --rpv-text-white: #ffffff;
    --rpv-shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.08);
    --rpv-shadow-md: 0 8px 20px rgba(31, 41, 55, 0.1);
    --rpv-shadow-lg: 0 18px 42px rgba(31, 41, 55, 0.13);
    --rpv-shadow-xl: 0 24px 60px rgba(31, 41, 55, 0.18);
    --rpv-reddit-orange: #ff4500;
    --rpv-reddit-orange-light: #ff7a45;
}.tc-wp-tool-root .rpv-wrapper, .tc-wp-tool-root .rpv-wrapper *{
    box-sizing: border-box;
}.tc-wp-tool-root .rpv-wrapper{
    width: 100%;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 69, 0, 0.14), transparent 34%),
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.13), transparent 30%),
        linear-gradient(135deg, #fff7f3 0%, #fff 42%, #eef7f6 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    color: var(--rpv-text-primary);
}.tc-wp-tool-root .rpv-wrapper::before{
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at 25% 25%, rgba(255, 69, 0, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 75% 75%, rgba(15, 118, 110, 0.08) 0%, transparent 44%);
    pointer-events: none;
    z-index: 0;
}.tc-wp-tool-root .rpv-container{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 44px;
    position: relative;
    z-index: 1;
}.tc-wp-tool-root .rpv-header{
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0 12px;
    animation: rpv-fadeInDown 1s ease-out;
}.tc-wp-tool-root .rpv-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}.tc-wp-tool-root .rpv-logo-icon{
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rpv-reddit-orange), var(--rpv-reddit-orange-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    box-shadow: var(--rpv-shadow-lg);
    animation: rpv-pulse 3s ease-in-out infinite;
}.tc-wp-tool-root .rpv-reddit-icon{
    width: 50px;
    height: 50px;
    background: var(--rpv-reddit-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    animation: rpv-redditFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    margin: 0 6px;
}.tc-wp-tool-root .rpv-logo-text{
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rpv-reddit-orange), #b83200 52%, var(--rpv-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}.tc-wp-tool-root .rpv-subtitle{
    color: var(--rpv-text-secondary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 auto 24px;
    max-width: 680px;
    text-shadow: none;
}.tc-wp-tool-root .rpv-features-bar{
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}.tc-wp-tool-root .rpv-feature-item{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rpv-text-primary);
    font-size: 14px;
    font-weight: 700;
    background: var(--rpv-glass-bg);
    backdrop-filter: blur(20px);
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid var(--rpv-glass-border);
    transition: all 0.3s ease;
    box-shadow: var(--rpv-shadow-sm);
}.tc-wp-tool-root .rpv-feature-item:hover{
    transform: translateY(-2px);
    box-shadow: var(--rpv-shadow-md);
    background: #ffffff;
    border-color: rgba(255, 69, 0, 0.28);
}.tc-wp-tool-root .rpv-feature-icon{
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--rpv-success-color), var(--rpv-success-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}.tc-wp-tool-root .rpv-search-container{
    background: var(--rpv-bg-secondary);
    border: 1px solid rgba(255, 69, 0, 0.14);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--rpv-shadow-lg);
    margin-bottom: 24px;
    animation: rpv-fadeInUp 1s ease-out 0.2s both;
}.tc-wp-tool-root .rpv-search-form{
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
}.tc-wp-tool-root .rpv-search-input{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 16px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    color: var(--rpv-text-primary) !important;
    font-family: inherit !important;
}.tc-wp-tool-root .rpv-search-input:focus{
    border-color: var(--rpv-reddit-orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.13) !important;
    transform: translateY(-1px);
}.tc-wp-tool-root .rpv-search-input::placeholder{
    color: var(--rpv-text-muted);
    font-weight: 400;
}.tc-wp-tool-root .rpv-search-btn{
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--rpv-reddit-orange), var(--rpv-reddit-orange-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(255, 69, 0, 0.24);
    font-family: inherit;
    white-space: nowrap;
}.tc-wp-tool-root .rpv-search-btn:hover:not(:disabled){
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 69, 0, 0.3);
    background: linear-gradient(135deg, #e63e00, var(--rpv-reddit-orange));
}.tc-wp-tool-root .rpv-search-btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}.tc-wp-tool-root .rpv-user-info{
    background: var(--rpv-bg-secondary);
    border: 1px solid rgba(255, 69, 0, 0.14);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--rpv-shadow-lg);
    margin-bottom: 30px;
    display: none;
    animation: rpv-slideInDown 0.8s ease-out;
}.tc-wp-tool-root .rpv-user-header{
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}.tc-wp-tool-root .rpv-user-avatar{
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rpv-reddit-orange), var(--rpv-reddit-orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    box-shadow: var(--rpv-shadow-lg);
    flex-shrink: 0;
}.tc-wp-tool-root .rpv-user-details h2{
    font-size: 2rem;
    color: var(--rpv-text-primary);
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.2;
}.tc-wp-tool-root .rpv-user-description{
    color: var(--rpv-text-secondary);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}.tc-wp-tool-root .rpv-user-stats{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 24px;
}.tc-wp-tool-root .rpv-stat-card{
    background: linear-gradient(135deg, #ffffff, #fff4ee);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 69, 0, 0.14);
    transition: all 0.3s ease;
}.tc-wp-tool-root .rpv-stat-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--rpv-shadow-md);
}.tc-wp-tool-root .rpv-stat-number{
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rpv-reddit-orange);
    margin-bottom: 5px;
}.tc-wp-tool-root .rpv-stat-label{
    font-size: 0.9rem;
    color: var(--rpv-text-secondary);
    font-weight: 600;
}.tc-wp-tool-root .rpv-posts-section{
    display: none;
    margin-bottom: 40px;
}.tc-wp-tool-root .rpv-section-title{
    color: var(--rpv-text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--rpv-glass-border);
    box-shadow: var(--rpv-shadow-sm);
}.tc-wp-tool-root .rpv-posts-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 28px;
    align-items: stretch;
}.tc-wp-tool-root .rpv-post-card{
    background: var(--rpv-bg-secondary);
    border: 1.5px solid rgba(255, 69, 0, 0.14);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.11), 0 1.5px 6px rgba(31, 41, 55, 0.06);
    transition: box-shadow 0.3s, transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    animation: rpv-slideUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}.tc-wp-tool-root .rpv-post-card-inner{
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}.tc-wp-tool-root .rpv-post-card::before{
    content: '';
    position: absolute;
    top: -1.5px;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--rpv-reddit-orange), var(--rpv-secondary-color));
    border-radius: 24px 24px 0 0;
    z-index: 1;
}.tc-wp-tool-root .rpv-post-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(31, 41, 55, 0.16), 0 2px 8px rgba(31, 41, 55, 0.09);
    border-color: var(--rpv-reddit-orange-light);
}.tc-wp-tool-root .rpv-post-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--rpv-bg-tertiary);
    gap: 12px;
}.tc-wp-tool-root .rpv-post-title{
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--rpv-primary-color);
    line-height: 1.3;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow-wrap: anywhere;
}.tc-wp-tool-root .rpv-post-title.rpv-full{
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
}.tc-wp-tool-root .rpv-show-title-btn{
    background: linear-gradient(135deg, var(--rpv-primary-color), var(--rpv-primary-light));
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 10px;
    transition: all 0.2s;
    align-self: flex-start;
}.tc-wp-tool-root .rpv-show-title-btn:hover{
    background: linear-gradient(135deg, var(--rpv-reddit-orange), var(--rpv-secondary-color));
}.tc-wp-tool-root .rpv-post-body-content{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    min-width: 0;
}.tc-wp-tool-root .rpv-post-meta{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--rpv-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
}.tc-wp-tool-root .rpv-post-text{
    color: var(--rpv-text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}.tc-wp-tool-root .rpv-subreddit-badge{
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 69, 0, 0.1);
    color: #b83200;
    border: 1px solid rgba(255, 69, 0, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}.tc-wp-tool-root .isTitleTruncated, .tc-wp-tool-root .\$\{isTitleTruncated,
.\? {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpv-media-container {
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.1);
    background: #050505;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpv-video-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 18px;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    transition: opacity 0.2s;
}

.rpv-video-loading-spinner {
    border: 5px solid #eee;
    border-top: 5px solid var(--rpv-reddit-orange);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: rpv-spin 1s linear infinite;
    margin-right: 16px;
}

.rpv-image-preview,
.rpv-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rpv-image-preview {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rpv-image-preview:hover {
    transform: scale(1.02);
}

.rpv-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.rpv-video-player {
    border-radius: 18px;
}

.rpv-media-controls {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.rpv-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: none;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.rpv-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.rpv-control-btn:hover::before {
    left: 100%;
}

.rpv-stream-audio-btn {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.rpv-stream-audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.34);
}

.rpv-stream-audio-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rpv-stream-audio-btn.loading {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.rpv-download-btn {
    background: linear-gradient(135deg, var(--rpv-success-color), var(--rpv-success-light));
    color: white;
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.25);
}

.rpv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.35);
}

.rpv-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rpv-download-btn.downloading {
    background: linear-gradient(135deg, var(--rpv-accent-color), var(--rpv-accent-light));
}

.rpv-post-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid var(--rpv-bg-tertiary);
}

.rpv-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff, #fff5ef);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 69, 0, 0.12);
    transition: all 0.3s ease;
    min-width: 0;
}

.rpv-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--rpv-shadow-sm);
}

.rpv-stat-value {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

.rpv-upvotes .rpv-stat-value {
    color: var(--rpv-reddit-orange);
}

.rpv-comments .rpv-stat-value {
    color: var(--rpv-secondary-color);
}

.rpv-awards .rpv-stat-value {
    color: #b77900;
}

.rpv-ratio .rpv-stat-value {
    color: var(--rpv-success-color);
}

.rpv-loading {
    text-align: center;
    padding: 42px 16px;
    color: var(--rpv-text-primary);
    font-size: 1.1rem;
    display: none;
}

.rpv-loading p {
    margin: 10px 0 0;
}

.rpv-spinner {
    border: 4px solid var(--rpv-bg-tertiary);
    border-top: 4px solid var(--rpv-reddit-orange);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: rpv-spin 1s linear infinite;
    margin: 20px auto;
}

.rpv-error-message {
    background: rgba(220, 38, 38, 0.09);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--rpv-danger-color);
    padding: 18px;
    border-radius: 15px;
    text-align: center;
    margin: 18px 0 0;
    font-weight: 700;
    display: none;
}

.rpv-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.92);
    animation: rpv-fadeIn 0.3s ease;
}

.rpv-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.rpv-modal img {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
}

.rpv-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f8fafc;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.rpv-close:hover {
    color: var(--rpv-reddit-orange);
}

.rpv-download-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rpv-bg-secondary);
    border: 1px solid rgba(255, 69, 0, 0.16);
    border-radius: 16px;
    padding: 24px;
    min-width: 350px;
    max-width: calc(100vw - 40px);
    box-shadow: var(--rpv-shadow-xl);
    z-index: 1000;
    display: none;
    color: var(--rpv-text-primary);
}

.rpv-download-progress.rpv-show {
    display: block;
    animation: rpv-slideInRight 0.4s ease-out;
}

.rpv-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}

.rpv-progress-text {
    font-weight: 800;
    font-size: 15px;
    color: var(--rpv-text-primary);
}

.rpv-cancel-btn {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: var(--rpv-danger-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-family: inherit;
}

.rpv-cancel-btn:hover {
    background: rgba(220, 38, 38, 0.15);
}

.rpv-progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--rpv-progress-bg);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.rpv-progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--rpv-progress-color), var(--rpv-secondary-light));
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 69, 0, 0.3);
}

.rpv-progress-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--rpv-text-secondary);
    font-weight: 600;
}

.rpv-expand-btn {
    background: linear-gradient(135deg, var(--rpv-primary-color), var(--rpv-primary-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rpv-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--rpv-shadow-sm);
}

.rpv-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
    height: 100%;
}

.rpv-gallery-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.rpv-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.rpv-gallery-image:hover {
    transform: scale(1.02);
}

.rpv-gallery-download-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--rpv-success-color), var(--rpv-success-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rpv-gallery-image-wrapper:hover .rpv-gallery-download-btn {
    opacity: 1;
}

.rpv-custom-play-pause-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(31, 41, 55, 0.86);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.22);
    transition: background 0.2s, opacity 0.2s;
    opacity: 0;
}

.rpv-video-container:hover .rpv-custom-play-pause-btn,
.rpv-video-container.rpv-paused .rpv-custom-play-pause-btn {
    opacity: 0.9;
}

.rpv-custom-play-pause-btn:hover {
    background: rgba(31, 41, 55, 1);
}

.rpv-search-btn:focus-visible,
.rpv-control-btn:focus-visible,
.rpv-show-title-btn:focus-visible,
.rpv-expand-btn:focus-visible,
.rpv-cancel-btn:focus-visible,
.rpv-gallery-download-btn:focus-visible,
.rpv-close:focus-visible {
    outline: 3px solid rgba(255, 69, 0, 0.35);
    outline-offset: 3px;
}

@keyframes rpv-redditFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

@keyframes rpv-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rpv-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rpv-slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rpv-slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rpv-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rpv-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rpv-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes rpv-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .rpv-container {
        max-width: 1200px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .rpv-posts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .rpv-search-form {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        position: relative;
    }

    .rpv-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .rpv-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rpv-post-card-inner {
        padding: 24px;
    }

    .rpv-section-title {
        font-size: 1.5rem;
        padding: 16px;
    }

    .rpv-search-form {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        position: relative;
        flex-direction: column;
    }

    .rpv-search-btn {
        width: 100%;
    }

    .rpv-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .rpv-container {
        padding: 18px 15px 34px;
    }

    .rpv-header {
        margin-bottom: 24px;
        padding-top: 14px;
    }

    .rpv-search-container,
    .rpv-user-info {
        padding: 20px;
        border-radius: 16px;
    }

    .rpv-user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rpv-user-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .rpv-user-details h2 {
        font-size: 1.5rem;
    }

    .rpv-user-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .rpv-post-card {
        border-radius: 18px;
    }

    .rpv-post-card::before {
        border-radius: 18px 18px 0 0;
    }

    .rpv-post-card-inner {
        padding: 20px;
    }

    .rpv-post-title {
        font-size: 1.3rem;
    }

    .rpv-stat-value {
        font-size: 1.1rem;
    }

    .rpv-stat-label {
        font-size: 0.8rem;
    }

    .rpv-media-container {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .rpv-search-form {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .rpv-search-input,
    .rpv-search-btn {
        width: 100%;
        font-size: 15px;
    }

    .rpv-search-input {
        padding: 14px 14px !important;
    }

    .rpv-search-btn {
        padding: 14px 18px;
        min-width: 0;
        white-space: normal;
    }

    .rpv-features-bar {
        gap: 10px;
    }

    .rpv-feature-item {
        padding: 10px 14px;
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        min-width: 145px;
    }

    .rpv-post-card-inner {
        padding: 15px;
    }

    .rpv-post-title {
        font-size: 1.1rem;
    }

    .rpv-media-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .rpv-control-btn {
        justify-content: center;
        width: 100%;
    }

    .rpv-post-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rpv-stat-item {
        padding: 10px;
    }

    .rpv-custom-play-pause-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .rpv-download-progress {
        min-width: auto;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .rpv-progress-header,
    .rpv-progress-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .rpv-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .rpv-reddit-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .rpv-logo-text {
        font-size: 1.8rem;
    }

    .rpv-subtitle {
        font-size: 16px;
    }

    .rpv-feature-item {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 130px;
    }

    .rpv-feature-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .rpv-search-container,
    .rpv-user-info {
        padding: 15px;
    }

    .rpv-user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .rpv-user-details h2 {
        font-size: 1.3rem;
    }

    .rpv-user-description {
        font-size: 14px;
    }

    .rpv-stat-number {
        font-size: 1.5rem;
    }

    .rpv-stat-label {
        font-size: 0.8rem;
    }

    .rpv-section-title {
        font-size: 1.3rem;
        padding: 15px;
    }

    .rpv-post-card-inner {
        padding: 12px;
    }

    .rpv-post-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .rpv-media-container {
        height: 200px;
    }

    .rpv-control-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .rpv-stat-item {
        padding: 8px;
    }

    .rpv-stat-value {
        font-size: 1rem;
    }

    .rpv-download-progress {
        padding: 15px;
        min-width: auto;
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 375px) {
    .rpv-container {
        padding: 12px 10px 28px;
    }

    .rpv-header {
        padding: 20px 0 8px;
        margin-bottom: 20px;
    }

    .rpv-logo {
        gap: 12px;
    }

    .rpv-features-bar {
        gap: 8px;
        margin-bottom: 20px;
    }

    .rpv-feature-item {
        flex-basis: 100%;
    }

    .rpv-search-container,
    .rpv-user-info {
        padding: 12px;
    }

    .rpv-user-header {
        gap: 10px;
    }

    .rpv-user-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rpv-section-title {
        font-size: 1.2rem;
        padding: 12px;
        margin-bottom: 20px;
    }

    .rpv-posts-grid {
        gap: 15px;
    }

    .rpv-post-card-inner {
        padding: 10px;
    }

    .rpv-post-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .rpv-media-container {
        height: 180px;
    }

    .rpv-post-stats {
        margin-top: 15px;
        padding-top: 15px;
        gap: 8px;
    }

    .rpv-stat-item {
        padding: 6px;
    }

    .rpv-stat-value {
        font-size: 0.9rem;
    }

    .rpv-stat-label {
        font-size: 0.7rem;
    }

    .rpv-control-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .rpv-download-progress {
        padding: 12px;
        width: calc(100% - 24px);
        left: 12px;
        right: 12px;
    }

    .rpv-progress-text {
        font-size: 14px;
    }

    .rpv-cancel-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

.tc-wp-tool-root {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  z-index: 0 !important;
}