/* Playback Speed Calculator Styles */
.psc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.psc-container::before {
    content: '';
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.psc-container::after {
    content: '';
    position: absolute;
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* All content above background */
.psc-container > * {
    position: relative;
    z-index: 1;
}

/* Main Content Layout */
.psc-main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .psc-main-content {
        grid-template-columns: 1fr;
    }
}

/* Card Styles */
.psc-card {
    background: #f9fafb;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.psc-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.psc-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.psc-card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.psc-results-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.psc-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Input Styles */
.psc-input-group {
    margin-bottom: 2.5rem;
}

.psc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.psc-time-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.psc-time-input {
    text-align: center;
}

.psc-time-input label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.psc-time-input input {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    transition: all 0.3s ease;
}

.psc-time-input input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.psc-time-input input:hover {
    background: #f9fafb;
}

/* Speed Buttons */
.psc-speed-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.psc-speed-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.psc-speed-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.psc-speed-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

/* Custom Speed Input */
.psc-custom-speed {
    position: relative;
}

.psc-custom-speed label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.psc-custom-speed input {
    width: 100%;
    padding: 1rem 2rem 1rem 1.5rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    transition: all 0.3s ease;
}

.psc-custom-speed input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.psc-speed-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
    margin-top: 1.25rem;
}

/* Reset Button */
.psc-reset-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fef2f2, #fce7e7);
    border: 2px solid #fca5a5;
    color: #dc2626;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psc-reset-btn:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #f87171;
    transform: scale(1.02);
}

/* Results Styles */
.psc-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.psc-empty-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 2px solid #a5b4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: #8b5cf6;
}

.psc-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.psc-empty-state p {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 24rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Results Grid */
.psc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .psc-results-grid {
        grid-template-columns: 1fr;
    }
}

.psc-result-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.psc-result-card:hover {
    transform: translateY(-2px);
}

.psc-original {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-color: #d1d5db;
}

.psc-new {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
}

.psc-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.psc-result-header i {
    color: #6b7280;
}

.psc-new .psc-result-header i {
    color: #3b82f6;
}

.psc-result-header span {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.psc-new .psc-result-header span {
    color: #3b82f6;
}

.psc-result-time {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.psc-result-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.psc-new .psc-result-subtitle {
    color: #3b82f6;
}

/* Time Saved */
.psc-time-saved {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #6ee7b7;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.psc-time-saved:hover {
    transform: translateY(-2px);
}

.psc-saved-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psc-saved-header i {
    font-size: 2rem;
    color: #059669;
}

.psc-saved-header span {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.psc-saved-time {
    font-size: 3.75rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.psc-saved-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

/* Statistics Grid */
.psc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .psc-stats-grid {
        grid-template-columns: 1fr;
    }
}

.psc-stat-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.psc-stat-card:hover {
    transform: translateY(-2px);
}

.psc-stat-boost {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #c4b5fd;
}

.psc-stat-efficiency {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
}

.psc-stat-faster {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
}

.psc-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.psc-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Progress Bar */
.psc-progress-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
}

.psc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.psc-progress-header span:first-child {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

.psc-progress-header span:last-child {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

.psc-progress-bar {
    width: 100%;
    height: 1rem;
    background: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.psc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 0.5rem;
    transition: width 1s ease-out;
    width: 0%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Feature Cards */
.psc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .psc-features-grid {
        grid-template-columns: 1fr;
    }
}

.psc-feature-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.psc-feature-card:hover {
    background: #f3f4f6;
    transform: translateY(-4px);
}

.psc-feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.psc-feature-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.psc-feature-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.psc-feature-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.psc-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.psc-feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psc-container {
        padding: 1rem;
    }
    
    .psc-title {
        font-size: 2.5rem;
    }
    
    .psc-description {
        font-size: 1rem;
    }
    
    .psc-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .psc-card {
        padding: 1.5rem;
    }
    
    .psc-time-inputs {
        gap: 0.5rem;
    }
    
    .psc-speed-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .psc-saved-time {
        font-size: 2.5rem;
    }
}