 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #121212;
            color: #f0f0f0;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            background: #1e1e1e;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
            margin-bottom: 30px;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        h1 {
            font-size: 1.8rem;
            color: #ff6b6b;
            display: inline-flex;
            align-items: baseline;
            flex-wrap: wrap;
        }
        
        .title-text {
            display: inline;
        }
        
        .show-more-btn {
            color: #ff6b6b;
            cursor: pointer;
            font-size: 1.2rem;
            margin-left: 10px;
            text-decoration: underline;
            transition: opacity 0.3s;
            white-space: nowrap;
            display: inline-block;
        }
        
        .show-more-btn:hover {
            opacity: 0.8;
        }
        
        .full-title {
            display: none;
        }
        
        .full-title.active {
            display: inline;
        }
        
        .truncated-title.hidden {
            display: none;
        }
        
        .back-link {
            color: #ff6b6b;
            text-decoration: none;
            padding: 10px 15px;
            background: #222;
            border-radius: 5px;
            transition: background 0.3s;
        }
        
        .back-link:hover {
            background: #333;
        }
        
        main {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
        }
        
        .media-container {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        }
        
        .media-container img, .media-container video {
            width: 100%;
            height: auto;
            display: block;
            max-height: 80vh;
            object-fit: contain;
        }
        
        .media-container video {
            background: #000;
        }
        
        .info-panel {
            background: #1e1e1e;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        .info-panel h2 {
            color: #ff6b6b;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }
        
        .stats {
            background: #2a2a2a;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .stats div {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .stats div:last-child {
            margin-bottom: 0;
        }
        
        .tags {
            margin-top: 20px;
        }
        
        .tags h3 {
            margin-bottom: 10px;
            color: #aaa;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .tag {
            background: #333;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .tag a {
            color: #f0f0f0;
            text-decoration: none;
        }
        
        .tag a:hover {
            color: #ff6b6b;
        }
        
        .no-tags {
            color: #888;
            font-style: italic;
            padding: 5px 0;
        }

        /* ADVERTISEMENT SECTION STYLES */
       .ad-section {
    margin-top: 30px;
    background: #2a2a2a;
    padding: 20px;
    height: 250px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    text-align: center;

    /* Flexbox for vertical + horizontal centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
 @media (max-width: 480px) {
    .ad-section {
       display:none;
        /* Flexbox removed — content flows normally from top */
    }
}



.ad-section h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ad-link {
    display: inline-block;
    background: #ff6b6b;
    color: #121212 !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.ad-link:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.ad-desc {
    color: #aaa;
    font-size: 0.85rem;
    margin: 10px 0 0;
    line-height: 1.4;
}
        
        .back-to-gallery {
            display: block;
            text-align: center;
            margin-top: 30px;
            padding: 15px;
            background: #ff6b6b;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            transition: background 0.3s;
        }
        
        .back-to-gallery:hover {
            background: #ff5252;
        }
        
        @media (max-width: 768px) {
            main {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 1.5rem;
            }
            
            .show-more-btn {
                font-size: 1rem;
            }
        }