:root {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --bg-color: #0f0f0f;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --input-bg: #222;
    --border-color: #333;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Content Pages */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.content-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-wrapper h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-wrapper p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Header */
header {
    text-align: center;
    margin-top: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Upload Section */
.upload-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.input-group {
    display: flex;
    gap: 10px;
    background: var(--input-bg);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 12px;
    display: flex;
    align-items: center;
}

input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-family);
    outline: none;
}

button#getBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: var(--font-family);
}

button#getBtn:hover {
    background-color: var(--primary-hover);
}

button#getBtn:active {
    transform: scale(0.98);
}

.error-message {
    color: #ff4d4d;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.hidden {
    display: none;
}

/* Thumbnail Card */
.thumbnail-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover usually looks better, though contain is safer for accuracy. Cover is standard for thumbnail previews */
    transition: transform 0.5s ease;
}

.thumbnail-card:hover .thumb-img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail-card:hover .badge {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quality-label {
    color: var(--text-primary);
    font-weight: 600;
}

.download-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    font-family: var(--font-family);
}

.download-btn:hover {
    background: white;
    color: black;
}

.open-link-wrapper {
    text-align: center;
}

.open-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.open-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumbnail-card {
    animation: fadeIn 0.5s ease backwards;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .input-group {
        flex-direction: column;
        padding: 15px;
    }

    button#getBtn {
        width: 100%;
        padding: 12px;
    }

    .logo i {
        font-size: 2rem;
    }
}

/* Guide Section */
.guide-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.guide-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}/ *   A r t i c l e   S e c t i o n   * /  
 . a r t i c l e - s e c t i o n   {  
         w i d t h :   1 0 0 % ;  
         m a x - w i d t h :   9 0 0 p x ;  
         m a r g i n :   3 r e m   a u t o ;  
         p a d d i n g :   2 r e m ;  
         b a c k g r o u n d :   v a r ( - - c a r d - b g ) ;  
         b o r d e r - r a d i u s :   1 6 p x ;  
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;  
 }  
  
 . a r t i c l e - c o n t e n t   {  
         c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ;  
         l i n e - h e i g h t :   1 . 8 ;  
 }  
  
 . a r t i c l e - c o n t e n t   h 2 ,  
 . a r t i c l e - c o n t e n t   h 3   {  
         c o l o r :   v a r ( - - t e x t - p r i m a r y ) ;  
         m a r g i n - t o p :   2 r e m ;  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . a r t i c l e - c o n t e n t   h 2   {  
         f o n t - s i z e :   1 . 8 r e m ;  
         b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;  
         p a d d i n g - b o t t o m :   1 0 p x ;  
 }  
  
 . a r t i c l e - c o n t e n t   h 3   {  
         f o n t - s i z e :   1 . 4 r e m ;  
 }  
  
 . a r t i c l e - c o n t e n t   p   {  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
         f o n t - s i z e :   1 r e m ;  
 }  
  
 . a r t i c l e - c o n t e n t   u l ,  
 . a r t i c l e - c o n t e n t   o l   {  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
         p a d d i n g - l e f t :   2 r e m ;  
 }  
  
 . a r t i c l e - c o n t e n t   l i   {  
         m a r g i n - b o t t o m :   0 . 5 r e m ;  
 }  
  
 . a r t i c l e - c o n t e n t   s t r o n g   {  
         c o l o r :   v a r ( - - t e x t - p r i m a r y ) ;  
 }  
 