@keyframes spin {from {transform:rotate(0deg)} to {transform:rotate(360deg)}}
@keyframes fadeIn {from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:translateY(0)}}
@keyframes vccPulse {0% {opacity:0.35} 50% {opacity:0.8} 100% {opacity:0.35}}
.hidden {display:none !important}
/* Upload Button */
.upload-button {border:0;background-color:#4FAFFC;color:#fff;text-transform:uppercase;font-weight:700;border-radius:2em;padding:.7em 1.2em .7em 3.6em;font-size:1em;position:relative;cursor:pointer;transition:all 0.3s ease}
.upload-button:hover {background-color:#3a9ae8;transform:translateY(-2px)}
.upload-button:before {display:flex;align-items:center;justify-content:center;content:"^";font-size:1.6em;font-weight:700;background-color:#fff;color:#4FAFFC;border:1px solid currentColor;position:absolute;border-radius:50%;width:1.7em;height:1.7em;left:3px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;box-shadow:0 0 0 3px #fff}
#hero.content-grid-mod .upload-button::before {display:none}
#hero.content-grid-mod .upload-button {padding:10px 32px;font-family:"Inter",sans-serif}
/* Status Indicators */
.cd-vcc-status {background:#e8f5e8;border:1px solid #4caf50;border-radius:8px;padding:12px 16px;margin:10px 0;display:none}
.cd-vcc-status-inner {display:flex;align-items:center;gap:12px}
.cd-vcc-status.success {background:#e8f5e8;border-color:#4caf50;color:#2e7d32}
.cd-vcc-status.warning {background:#fff3e0;border-color:#ff9800;color:#e65100}
.cd-vcc-status.error {background:#ffebee;border-color:#f44336;color:#c62828}
.cd-vcc-status.info {background:#e3f2fd;border-color:#2196f3;color:#1565c0}
.cd-vcc-status .status-icon {font-size:20px;line-height:1}
.cd-vcc-status .status-text {font-weight:600;margin-bottom:2px}
.cd-vcc-status .status-details {font-size:12px!important;opacity:0.85}
/* Hints - every hint class is explicitly sized small and muted */
.cd-custom-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.55);margin:8px 0 0}
.cd-input-hint {display:block;font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.5);margin-top:5px}
.cd-vcc-hint {font-size:12px!important;line-height:1.5;color:rgba(255,255,255,0.55);margin:12px 0 0;max-width:960px}
.cd-vcc-support-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.5);margin:8px 0 0}
.cd-vcc-preview-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.5);margin:8px 0 0}
.cd-vcc-url-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.45);margin:5px 0 0}
.cd-upload-subtitle {font-size:15px;color:rgba(255,255,255,0.85);max-width:620px;text-align:center;margin:8px auto}
.cd-tool-message {font-size:13px;line-height:1.5;color:rgba(255,255,255,0.75);margin:12px 0}
/* Container */
.cd-vcc-container {animation:fadeIn 0.3s ease;background:rgba(35,67,106,0.5);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:16px}
/* Summary Cards */
.cd-vcc-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cd-vcc-summary-card {background:#1a3a5c;border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.cd-vcc-card-label {font-size:11px!important;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:rgba(255,255,255,0.55)}
.cd-vcc-card-value {font-size:30px;line-height:1.15;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;word-break:break-word}
.cd-vcc-card-meta {font-size:11px!important;line-height:1.45;color:rgba(255,255,255,0.6)}
.cd-vcc-best-card {border-color:rgba(72,196,216,0.55);background:linear-gradient(140deg,#1a3a5c,#17506a)}
.cd-vcc-best-card .cd-vcc-card-value {color:#7FE6F5}
.cd-vcc-saving-card .cd-vcc-card-value {color:#8BE58B}
.cd-vcc-saving-card .cd-vcc-card-value.is-negative {color:#FFB27A}
/* Toolbar */
.cd-vcc-toolbar {background:#1a3a5c;border-radius:10px;padding:10px 12px;display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.cd-settings-group {flex:1;min-width:220px}
.cd-settings-group label {display:block;color:rgba(255,255,255,0.9);font-size:12px!important;font-weight:500;margin-bottom:4px}
.cd-control-select {width:100%;max-width:320px;padding:6px 10px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}
.cd-control-select:focus {outline:none;border-color:#4FAFFC;background-color:rgba(79,175,252,0.1)}
.cd-control-select option {background:#1a3a5c;color:#fff}
.cd-vcc-toolbar-actions {display:flex;gap:8px;align-items:center;padding-top:18px}
.cd-vcc-btn {display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:12px!important;cursor:pointer;transition:all 0.2s ease}
.cd-vcc-btn:hover {background:rgba(79,175,252,0.2);border-color:#4FAFFC}
.cd-vcc-btn svg {fill:currentColor}
/* Codec Cards */
.cd-vcc-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.cd-vcc-cell {position:relative;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:12px;background:rgba(255,255,255,0.06);border:2px solid rgba(255,255,255,0.1);border-radius:10px;color:#fff;cursor:pointer;text-align:left;transition:border-color 0.2s ease,background 0.2s ease,transform 0.2s ease;min-width:0;font-family:inherit}
.cd-vcc-cell:hover {background:rgba(79,175,252,0.16);border-color:rgba(79,175,252,0.5);transform:translateY(-1px)}
.cd-vcc-cell.is-active {border-color:#4FAFFC;background:rgba(79,175,252,0.2)}
.cd-vcc-cell.is-best {border-color:#48C4D8;background:linear-gradient(140deg,rgba(72,196,216,0.22),rgba(79,175,252,0.12))}
.cd-vcc-cell.is-best::after {content:"SMALLEST";position:absolute;top:-9px;right:10px;background:#48C4D8;color:#08283a;font-size:9px;font-weight:800;letter-spacing:0.08em;padding:2px 6px;border-radius:4px}
.cd-vcc-cell.is-pending .cd-vcc-cell-size {color:rgba(255,255,255,0.35);animation:vccPulse 1.2s ease-in-out infinite}
.cd-vcc-cell.is-error {cursor:default;border-color:rgba(255,150,120,0.35);background:rgba(255,120,90,0.08)}
.cd-vcc-cell.is-error:hover {transform:none}
.cd-vcc-cell.is-error .cd-vcc-cell-size {color:rgba(255,178,122,0.85);font-size:16px}
.cd-vcc-cell-head {display:flex;align-items:center;justify-content:space-between;gap:8px}
.cd-vcc-cell-name {color:#fff;font-size:14px;font-weight:600;line-height:1.2}
.cd-vcc-cell-code {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.5);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cd-vcc-cell-size {font-size:22px;font-weight:700;line-height:1.15;color:#fff;font-variant-numeric:tabular-nums}
.cd-vcc-cell-saving {font-size:12px!important;font-weight:600;line-height:1.3;color:#8BE58B;font-variant-numeric:tabular-nums;min-height:16px}
.cd-vcc-cell-saving.is-negative {color:#FFB27A}
.cd-vcc-cell-bar {display:block;height:5px;border-radius:3px;background:rgba(255,255,255,0.12);overflow:hidden}
.cd-vcc-cell-bar i {display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#48C4D8,#4FAFFC);transition:width 0.35s ease}
.cd-vcc-cell-note {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.5);min-height:28px}
.cd-vcc-cell-play {font-size:10px!important;line-height:1.4;font-weight:600;color:rgba(255,255,255,0.5)}
.cd-vcc-cell-play[data-play="yes"] {color:#8BE58B}
.cd-vcc-cell-play[data-play="maybe"] {color:#F5D77A}
.cd-vcc-cell-play[data-play="no"] {color:#FFB27A}
/* Support Badges */
.cd-vcc-support-badge {flex-shrink:0;font-size:9px;font-weight:800;letter-spacing:0.06em;text-transform:uppercase;padding:2px 6px;border-radius:4px;background:rgba(255,255,255,0.14);color:rgba(255,255,255,0.85)}
.cd-vcc-support-badge[data-level="universal"] {background:rgba(139,229,139,0.22);color:#8BE58B}
.cd-vcc-support-badge[data-level="broad"] {background:rgba(127,230,245,0.22);color:#7FE6F5}
.cd-vcc-support-badge[data-level="patchy"] {background:rgba(245,215,122,0.22);color:#F5D77A}
.cd-vcc-support-badge[data-level="emerging"] {background:rgba(255,178,122,0.22);color:#FFB27A}
/* Browser Support Notice */
.cd-vcc-notice {background:rgba(245,185,79,0.1);border:1px solid rgba(245,185,79,0.4);border-radius:10px;padding:12px 14px}
.cd-vcc-notice-title {display:block;font-size:12px!important;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;color:#F5D77A;margin-bottom:6px}
.cd-vcc-notice-body {font-size:12px!important;line-height:1.55;color:rgba(255,255,255,0.8);margin:0}
/* Detail Panel */
.cd-vcc-detail {background:#1a3a5c;border-radius:12px;padding:14px}
.cd-vcc-detail-body{display:flex;gap:16px;align-items:flex-start}
.cd-vcc-detail-media{flex:1 1 58%;min-width:0}
.cd-vcc-detail-body .cd-vcc-result-info{flex:1 1 42%;min-width:0;margin:0}

.cd-vcc-detail-header {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cd-vcc-detail-title h4 {color:#fff;font-size:16px;font-weight:600;margin:0 0 3px}
.cd-vcc-detail-meta {font-size:11px!important;line-height:1.45;color:rgba(255,255,255,0.6)}
.cd-vcc-canvas-wrapper {background:#0f2840;border-radius:10px;padding:10px;display:flex;justify-content:center;align-items:center}
.cd-video-canvas {position:relative;background:#000;border-radius:8px;overflow:hidden;width:100%;max-width:100%;max-height:480px;aspect-ratio:var(--cd-video-ar, 16 / 9);margin:0 auto;transition:aspect-ratio 0.25s ease}
.cd-video-canvas video {width:100%;height:100%;border-radius:8px;display:block;background:#000;object-fit:contain}
.cd-preview-loader {position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,rgba(0,0,0,0.18),rgba(0,0,0,0.32));display:none;align-items:center;justify-content:center;z-index:5;border-radius:8px;min-height:120px;backdrop-filter:blur(2px)}
.cd-preview-loader.active {display:flex}
.cd-preview-spinner {width:28px;height:28px;border:3px solid rgba(255,255,255,0.25);border-top-color:#4FAFFC;border-radius:50%;animation:spin 0.7s linear infinite}
/* Result Info */
.cd-vcc-result-info {background:rgba(255,255,255,0.05);border-radius:10px;padding:10px 12px;margin-top:12px}
.cd-info-row {display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-bottom:1px solid rgba(255,255,255,0.1);gap:8px}
.cd-info-row:last-child {border-bottom:none}
.cd-info-label {color:rgba(255,255,255,0.7);font-size:12px!important;flex-shrink:0}
.cd-info-value {color:#fff;font-size:12px!important;font-weight:500;text-align:right;max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* URL Row */
.cd-vcc-url-row {display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}
.cd-vcc-url-input {flex:1;min-width:200px;padding:7px 10px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);border-radius:6px;color:rgba(255,255,255,0.85);font-size:12px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cd-vcc-url-input:focus {outline:none;border-color:#4FAFFC}
/* Buttons */
.cd-buttons-row {display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.cd-vcc-download-btn {display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 24px;background:linear-gradient(135deg,#48C4D8,#4FAFFC);border:none;border-radius:8px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(79,175,252,0.3);text-decoration:none}
.cd-vcc-download-btn:hover {transform:translateY(-1px);box-shadow:0 4px 12px rgba(79,175,252,0.4);color:#fff}
a.cd-vcc-download-btn,a.cd-vcc-download-btn:hover,a.cd-vcc-download-btn:focus,a.cd-vcc-download-btn:visited {color:#fff;text-decoration:none}
.cd-vcc-download-btn svg {width:16px;height:16px;flex-shrink:0;stroke:currentColor;fill:none}
.cd-vcc-start-over-btn {padding:9px 18px;background:transparent;border:1px solid rgba(255,255,255,0.3);border-radius:8px;color:rgba(255,255,255,0.7);font-size:13px;cursor:pointer;transition:all 0.3s ease}
.cd-vcc-start-over-btn:hover {border-color:rgba(255,255,255,0.6);color:#fff}
/* Loader */
.cd-tool-file-preview-wrapper {display:none}
.cd-tool-file-preview-wrapper.active {display:flex;align-items:center;justify-content:center}
.cd-tool-preview-loader {display:flex;flex-direction:column;align-items:center;gap:15px;padding:30px}
.cd-tool-preview-loader[data-loader-view="full"] {position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(17,17,17,0.9);z-index:9999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
.cd-tool-preview-loader img {width:50px;height:50px;animation:spin 1s infinite linear}
.cd-tool-preview-loader span {color:#fff;font-size:16px;font-weight:500}
/* Hero Overrides */
.content-grid-mod {position:relative}
#hero.content-grid-mod::before {background:radial-gradient(circle,rgba(0,101,173,1) 0%,rgba(3,31,51,1) 82%);background-size:300vw;background-repeat:no-repeat;background-position:right bottom;height:70%}
#hero.content-grid-mod::after {content:"";position:absolute;left:0;right:0;bottom:0;top:auto;margin:auto;height:30%;background-color:#0D1E32;background-image:url("../../../../assets/img/clouds.svg");background-size:700px;background-repeat:no-repeat;background-position:-360px -370px}
#hero.content-grid-mod {border-bottom:0;z-index:99}
#hero.content-grid-mod .converter-wrapper {background-color:#23436A;padding:50px;border-radius:24px;margin-top:76px;transition:height 0.3s ease-out}
.preview-active#hero.content-grid-mod .converter-wrapper.video-codec-converter-wrapper {padding:30px;max-width:100%;width:100%}
#hero.content-grid-mod .converter-wrapper .drop-area {display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 auto 40px;padding:50px 60px;height:auto;background-color:#355A90;color:#fff;border-radius:16px;text-align:center;border:2px solid transparent;width:100%;max-width:620px;box-sizing:border-box;transition:all 0.3s ease}
#hero.content-grid-mod .converter-wrapper .drop-area.highlight {box-shadow:0 10px 20px rgba(0,0,0,0.2);border:2px solid #4FAFFC}
#hero.content-grid-mod .converter-wrapper .drop-area.highlight > * {pointer-events:none}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-weight:300;font-size:38px;color:#fff;margin-bottom:20px;line-height:1.2}
#hero.content-grid-mod .converter-wrapper .drop-area p {font-size:16px;color:#fff;line-height:1.5;font-family:"Inter",sans-serif;margin:16px auto}
#hero.content-grid-mod .converter-wrapper .drop-area::before {content:"";display:flex;height:80px;width:80px;background-image:url("../../../../assets/img/upload.svg");background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}
#hero.content-grid-mod .cd-vcc-status {background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.3);color:#fff}
#hero.content-grid-mod .cd-vcc-status.success {background:rgba(76,175,80,0.2);border-color:rgba(76,175,80,0.5);color:#fff}
#hero.content-grid-mod .cd-vcc-status.warning {background:rgba(255,152,0,0.2);border-color:rgba(255,152,0,0.5);color:#fff}
#hero.content-grid-mod .cd-vcc-status.error {background:rgba(244,67,54,0.2);border-color:rgba(244,67,54,0.5);color:#fff}
/* Stock Assets */
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info {text-align:left}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info h4 {font-size:20px;font-weight:500;color:#fff;line-height:1.3;margin-bottom:0}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {display:flex;gap:15px;align-items:center}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item video {max-width:180px;max-height:100px;border-radius:8px;border:3px solid #fff;cursor:pointer;transition:transform 0.2s ease}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item video:hover {transform:scale(1.05)}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {width:80px;height:80px;background-image:url("../../../../assets/img/upload_area.svg");background-size:cover;background-repeat:no-repeat;display:none;border-radius:8px;background-color:#23436a;cursor:pointer}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {display:unset}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets {justify-content:flex-start}
/* Top Bar */
#hero .cd_header_top_bar {display:none}
.cd_header_top_bar {width:100%;background:#3f5fff;color:#fff;display:flex;align-items:center;justify-content:center;padding:10px 30px;height:auto;z-index:99;position:relative;font-size:14px}
.cd_header_top_bar .cd_header_top_bar_content a {color:#fff;text-transform:uppercase;text-decoration:underline;margin-left:8px}
/* Responsive */
@media (max-width:991px) {
#hero.content-grid-mod .converter-wrapper {padding:25px}
.preview-active#hero.content-grid-mod .converter-wrapper.video-codec-converter-wrapper {padding:20px;max-width:100%}
.cd-vcc-container {padding:15px}
.cd-vcc-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
.cd-vcc-card-value {font-size:26px}
.cd-vcc-toolbar-actions {padding-top:0}
}
@media (max-width:991px) {
.cd-vcc-detail-body{flex-direction:column}
.cd-vcc-detail-media,.cd-vcc-detail-body .cd-vcc-result-info{flex:none;width:100%}
}
@media (max-width:767px) {
#hero.content-grid-mod .converter-wrapper {padding:15px;margin-top:40px;border-radius:12px}
.preview-active#hero.content-grid-mod .converter-wrapper.video-codec-converter-wrapper {padding:12px}
#hero.content-grid-mod .converter-wrapper .drop-area {padding:30px 20px}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-size:24px;margin-bottom:16px}
#hero.content-grid-mod .converter-wrapper .drop-area::before {height:60px;width:60px}
.cd-vcc-container {padding:12px}
.cd-vcc-summary {grid-template-columns:minmax(0,1fr)}
.cd-vcc-card-value {font-size:24px}
.cd-vcc-grid {grid-template-columns:minmax(0,1fr)}
.cd-vcc-cell-note {min-height:0}
.cd-vcc-cell-size {font-size:20px}
.cd-vcc-detail-header {flex-direction:column}
.cd-video-canvas {max-height:360px}
.cd-buttons-row {flex-direction:column;align-items:stretch}
.cd-vcc-download-btn,.cd-vcc-start-over-btn {width:100%;justify-content:center;text-align:center}
.cd_header_top_bar {padding:10px 16px;font-size:13px;text-align:center}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {flex-direction:column;align-items:flex-start}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {flex-wrap:wrap}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item video {max-width:100px;max-height:60px}
}
@media (max-width:575px) {
.cd-vcc-cell-size {font-size:18px}
.cd-info-value {max-width:58%}
}
/* Print */
@media print {
.cd-vcc-toolbar,.cd-vcc-detail,.cd-buttons-row,.cd_header_top_bar {display:none !important}
}
.cd-custom-hint,.cd-input-hint,.cd-vcc-hint,.cd-vcc-preview-hint,.cd-vcc-support-hint,.cd-vcc-url-hint{font-size:12px!important}
