* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.container {
    background-color: white;
    padding: 2.2rem 2.5rem 2.7rem 2.5rem;
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    width: 95%;
    max-width: 520px;
    text-align: center;
    margin: 2.5rem auto 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
}

.platform-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    border-radius: 50%;
    margin-bottom: 1.1rem;
    margin-top: 0.2rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    position: relative;
    z-index: 2;
}

/* Platform-specific icon backgrounds */
.platform-icon.youtube {
    background: #FF0000;
    color: #fff;
}
.platform-icon.instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #4a6cf7 100%);
    color: #fff;
}
.platform-icon.tiktok {
    background: #000;
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(37,244,238,0.15), 0 2px 8px 0 rgba(254,44,85,0.10);
}

h1 {
    color: #222;
    margin-bottom: 0.5rem;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 0;
}

.subtitle {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
}

.other-tools {
    margin-bottom: 2.2rem;
}

.other-tools h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.tool-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4fa;
    color: #1976D2;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tool-button i {
    font-size: 1.2rem;
}

.tool-button:hover {
    background: #1976D2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

.input-section {
    margin-bottom: 2.2rem;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    margin-bottom: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    background: #fafbfc;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
    background: #fff;
}

button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(33,150,243,0.08);
}

button:hover {
    background-color: #1976D2;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

#results {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

.error {
    color: #f44336;
    background-color: #ffebee;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.success {
    color: #4CAF50;
    background-color: #E8F5E9;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
    width: 100%;
}

.preview-thumb {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.preview-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.preview-info p {
    color: #666;
    font-size: 1rem;
}

#formats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#formats-table th, #formats-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#formats-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#formats-table td {
    font-size: 0.95rem;
    color: #333;
}

#formats-table td:first-child {
    font-weight: 500;
}

#formats-table td:nth-child(2) {
    color: #1976D2;
    font-weight: 600;
}

#formats-table td:nth-child(3) {
    color: #666;
    font-size: 0.9rem;
}

#formats-table tr:hover {
    background-color: #f8fafd;
}

#formats-table button {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

#formats-table button:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25,118,210,0.15);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 1.2rem 0.5rem 1.7rem 0.5rem;
        max-width: 98vw;
    }
    h1 {
        font-size: 1.5rem;
    }
    .platform-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }
    .tool-button {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile responsiveness for the table */
@media (max-width: 480px) {
    #formats-table th, #formats-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    #formats-table button {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    #formats-table td:nth-child(3) {
        font-size: 0.8rem;
    }
} 