/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    line-height: 1.6;
}

/* Main Container Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header Section */
.site-header {
    margin-bottom: 30px;
}

.site-header h1 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 8px;
}

.site-header p {
    color: #aaa;
    font-size: 15px;
}

/* Search Box Form Styles */
.search-container {
    margin: 0 auto 30px auto;
    display: flex;
    gap: 10px;
    background: #222;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    outline: none;
    background-color: #333;
    color: #fff;
}

.search-container input::placeholder {
    color: #999;
}

.search-container button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: #45a049;
}

/* Information Layout Styles */
.info-container {
    margin: 0 auto 25px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Top Row (ID Left, Time Right) */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.id-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 6px 10px 6px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 14px;
}

.id-container strong {
    color: #00d4ff;
}

.video-time {
    display: inline-block;
    background-color: #222;
    color: #ffcc00;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px; 
    font-weight: bold;
    border: 1px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Bottom Row (Title Centered) */
.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
}

.video-title {
    font-size: 18px;
    margin: 0;
    color: #ffffff;
    word-wrap: break-word;
    letter-spacing: 0.5px;
}

/* Reusable Copy Button Style */
.btn-copy {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background-color: #45a049;
}

/* Thumbnail Preview Styles */
.thumbnail-container {
    width: 100%; 
    margin: 0 auto 20px auto;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background-color: #000;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Action Buttons Styles */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-image {
    background-color: #00d4ff;
    color: #000;
}
.btn-image:hover { 
    background-color: #00b8e6; 
}

.error { 
    color: #ff4d4d; 
    margin: 20px 0; 
}

/* SEO Content Section Styles (Keeps AdSense Happy) */
.seo-content {
    text-align: left;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.seo-content h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.seo-content h3 {
    font-size: 18px;
    color: #fff;
    margin: 20px 0 10px 0;
}

.seo-content p {
    color: #bbb;
    margin-bottom: 15px;
    font-size: 14px;
}

.seo-content details {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.seo-content summary {
    font-weight: bold;
    color: #00d4ff;
}

.seo-content details p {
    margin-top: 10px;
    margin-bottom: 0;
    color: #ccc;
}

/* Site Footer */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #777;
    font-size: 13px;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}